diff --git a/crates/svg/src/import/css.rs b/crates/svg/src/import/css.rs index 92b61a70a..30432771a 100644 --- a/crates/svg/src/import/css.rs +++ b/crates/svg/src/import/css.rs @@ -342,14 +342,37 @@ fn top_level_commas(list: &str) -> impl Iterator { /// Rules from every `x"#); + let t = only_text(&d); + assert_eq!(t.first_style().fill.color().map(|c| c.to_hex()).as_deref(), Some("#ff0000")); +} + #[test] fn css_selectors_reach_text() { let d = open(