mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
vertical-align
can take negative lengths and percentages.
http://dev.w3.org/csswg/css2/visudet.html#propdef-vertical-align
This commit is contained in:
parent
886805d76c
commit
53c88f0413
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
|
/// baseline | sub | super | top | text-top | middle | bottom | text-bottom
|
||||||
/// | <percentage> | <length>
|
/// | <percentage> | <length>
|
||||||
pub fn parse(_context: &ParserContext, input: &mut Parser) -> Result<SpecifiedValue, ()> {
|
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)
|
.map(SpecifiedValue::LengthOrPercentage)
|
||||||
.or_else(|()| {
|
.or_else(|()| {
|
||||||
match_ignore_ascii_case! { try!(input.expect_ident()),
|
match_ignore_ascii_case! { try!(input.expect_ident()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue