Fix origin/clip parsing behavior in mask and background shorthands

This commit is contained in:
Nazım Can Altınova 2016-10-02 01:23:48 +03:00
parent 36222cf543
commit 1b35a3d9a8
4 changed files with 38 additions and 22 deletions

View file

@ -106,8 +106,8 @@ fn mask_shorthand_should_parse_origin_and_clip_correctly() {
let mut parser = Parser::new("padding-box");
let result = mask::parse_value(&context, &mut parser).unwrap();
// TODO(#13466): We should fix origin/clip parsing behavior.
assert_eq!(result.mask_origin.unwrap(), parse_longhand!(mask_origin, "padding-box"));
assert_eq!(result.mask_clip.unwrap(), parse_longhand!(mask_clip, "padding-box"));
}
#[test]

View file

@ -1,5 +0,0 @@
[background-335.htm]
type: testharness
[background_specified_box_one_clip]
expected: FAIL