diff --git a/components/style/properties.mako.rs b/components/style/properties.mako.rs index a1acc73ae29..f41f2feaad2 100644 --- a/components/style/properties.mako.rs +++ b/components/style/properties.mako.rs @@ -608,7 +608,7 @@ pub mod longhands { /// baseline | sub | super | top | text-top | middle | bottom | text-bottom /// | | pub fn parse(_context: &ParserContext, input: &mut Parser) -> Result { - input.try(specified::LengthOrPercentage::parse_non_negative) + input.try(specified::LengthOrPercentage::parse) .map(SpecifiedValue::LengthOrPercentage) .or_else(|()| { match_ignore_ascii_case! { try!(input.expect_ident()),