Add support for the 'rem' css unit

This commit is contained in:
Michael Wu 2014-12-11 16:29:03 -05:00
parent d67bcfa7ce
commit 94c019dce5
3 changed files with 20 additions and 7 deletions

View file

@ -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, ()> {