mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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 -->
This commit is contained in:
commit
8efd70b01b
1 changed files with 1 additions and 1 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue