aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-04-22 11:13:25 -0500
committerbors-servo <metajack+bors@gmail.com>2015-04-22 11:13:25 -0500
commit8efd70b01b0ff9b42722e6b9d88940f6944ebba2 (patch)
treecd4351c14cacc99fc8fe5fef0fd540c6d0af140b
parentc4b7979450a3b884ed727e0c1d306897d255aef9 (diff)
parent53c88f0413a00abd7f35e8fe823e359013db91f2 (diff)
downloadservo-8efd70b01b0ff9b42722e6b9d88940f6944ebba2.tar.gz
servo-8efd70b01b0ff9b42722e6b9d88940f6944ebba2.zip
Auto merge of #5794 - SimonSapin:negative-vertical-align, r=Manishearth
http://dev.w3.org/csswg/css2/visudet.html#propdef-vertical-align <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5794) <!-- Reviewable:end -->
-rw-r--r--components/style/properties.mako.rs2
1 files changed, 1 insertions, 1 deletions
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
/// | <percentage> | <length>
pub fn parse(_context: &ParserContext, input: &mut Parser) -> Result<SpecifiedValue, ()> {
- 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()),