Properly parse background-size in background longhand (fixes #15199)

This commit is contained in:
Anthony Ramine 2017-04-18 14:10:16 +02:00
parent 7f825d2119
commit efdc67d5a1
2 changed files with 3 additions and 11 deletions

View file

@ -494,11 +494,9 @@ ${helpers.single_keyword("background-origin",
let width = let width =
try!(specified::LengthOrPercentageOrAuto::parse_non_negative(context, input)); try!(specified::LengthOrPercentageOrAuto::parse_non_negative(context, input));
let height = if input.is_exhausted() { let height = input.try(|input| {
specified::LengthOrPercentageOrAuto::Auto specified::LengthOrPercentageOrAuto::parse_non_negative(context, input)
} else { }).unwrap_or(specified::LengthOrPercentageOrAuto::Auto);
try!(specified::LengthOrPercentageOrAuto::parse_non_negative(context, input))
};
Ok(SpecifiedValue::Explicit(ExplicitSize { Ok(SpecifiedValue::Explicit(ExplicitSize {
width: width, width: width,

View file

@ -12,12 +12,6 @@
[background_specified_repeat] [background_specified_repeat]
expected: FAIL expected: FAIL
[background_specified_attachment]
expected: FAIL
[background_specified_origin]
expected: FAIL
[background_specified_color] [background_specified_color]
expected: FAIL expected: FAIL