mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add support for the 'rem' css unit
This commit is contained in:
parent
d67bcfa7ce
commit
94c019dce5
3 changed files with 20 additions and 7 deletions
|
@ -125,7 +125,7 @@ fn parse_value_as_length(value: &ComponentValue) -> Result<Au, ()> {
|
|||
// http://dev.w3.org/csswg/mediaqueries3/ - Section 6
|
||||
// em units are relative to the initial font-size.
|
||||
let initial_font_size = longhands::font_size::get_initial_value();
|
||||
Ok(computed::compute_Au_with_font_size(length, initial_font_size))
|
||||
Ok(computed::compute_Au_with_font_size(length, initial_font_size, initial_font_size))
|
||||
}
|
||||
|
||||
fn parse_media_query_expression(iter: ParserIter) -> Result<Expression, ()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue