fix(render): render logo and parse named colors
This commit is contained in:
1 parent
bd4845b52c
commit
cd3571ddc0
3 files changed
+25
-14
No files matched your search
@@ -59,6 +59,9 @@ pub fn layout_dom(tree: &DomTree, viewport: (f32, f32)) -> DomLayout {
|
||||
if let Some(inline) = node.get_attribute("style") {
|
||||
crate::style::apply_inline(style, inline);
|
||||
}
|
||||
if let Some(color) = node.get_attribute("color") {
|
||||
crate::style::apply_inline(style, &format!("color: {}", color));
|
||||
}
|
||||
if let Some(bgcolor) = node.get_attribute("bgcolor") {
|
||||
crate::style::apply_inline(style, &format!("background-color: {}", bgcolor));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user