Skip to content

Commit

Permalink
support __qem unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Sep 15, 2024
1 parent 175a532 commit 0d36535
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/gosub_css3/src/stylesheet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ impl CssValue {
value.trim_end_matches("rem").parse::<f32>().unwrap() * 16.0
} else if value.ends_with("em") {
value.trim_end_matches("em").parse::<f32>().unwrap() * 16.0
} else if value.ends_with("__qem") {
value.trim_end_matches("__qem").parse::<f32>().unwrap() * 16.0
} else {
0.0
}
Expand Down

0 comments on commit 0d36535

Please sign in to comment.