fix(render): render logo and parse named colors

This commit is contained in:
SGavrl committed 2026-07-02 20:34:32 +00:00
1 parent bd4845b52c
commit cd3571ddc0
3 files changed
+25 -14

No files matched your search

+3
View File
@@ -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));
}