From 53c88f0413a00abd7f35e8fe823e359013db91f2 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 22 Apr 2015 17:19:00 +0200 Subject: [PATCH] `vertical-align` can take negative lengths and percentages. http://dev.w3.org/csswg/css2/visudet.html#propdef-vertical-align --- components/style/properties.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()),