Implement the unitless length quirk for margin-*

This commit is contained in:
Anthony Ramine 2017-04-24 17:48:16 +02:00
parent 72186c200c
commit bcc6d4580d
2 changed files with 1 additions and 54 deletions

View file

@ -15,6 +15,7 @@
${helpers.predefined_type("margin-%s" % side[0], "LengthOrPercentageOrAuto", ${helpers.predefined_type("margin-%s" % side[0], "LengthOrPercentageOrAuto",
"computed::LengthOrPercentageOrAuto::Length(Au(0))", "computed::LengthOrPercentageOrAuto::Length(Au(0))",
alias=maybe_moz_logical_alias(product, side, "-moz-margin-%s"), alias=maybe_moz_logical_alias(product, side, "-moz-margin-%s"),
allow_quirks=not side[1],
animation_value_type="ComputedValue", logical = side[1], spec = spec, animation_value_type="ComputedValue", logical = side[1], spec = spec,
allowed_in_page_rule=True)} allowed_in_page_rule=True)}
% endfor % endfor

View file

@ -12,15 +12,6 @@
expected: expected:
if os == "mac": FAIL if os == "mac": FAIL
[margin-left: 1 (quirks)]
expected: FAIL
[margin-top: 1 (quirks)]
expected: FAIL
[margin-bottom: 1 (quirks)]
expected: FAIL
[margin: 1 (quirks)] [margin: 1 (quirks)]
expected: FAIL expected: FAIL
@ -84,15 +75,6 @@
expected: expected:
if os == "mac": FAIL if os == "mac": FAIL
[margin-left: +1 (quirks)]
expected: FAIL
[margin-top: +1 (quirks)]
expected: FAIL
[margin-bottom: +1 (quirks)]
expected: FAIL
[margin: +1 (quirks)] [margin: +1 (quirks)]
expected: FAIL expected: FAIL
@ -156,15 +138,6 @@
expected: expected:
if os == "mac": FAIL if os == "mac": FAIL
[margin-left: -1 (quirks)]
expected: FAIL
[margin-top: -1 (quirks)]
expected: FAIL
[margin-bottom: -1 (quirks)]
expected: FAIL
[margin: -1 (quirks)] [margin: -1 (quirks)]
expected: FAIL expected: FAIL
@ -204,15 +177,6 @@
expected: expected:
if os == "mac": FAIL if os == "mac": FAIL
[margin-left: 1.5 (quirks)]
expected: FAIL
[margin-top: 1.5 (quirks)]
expected: FAIL
[margin-bottom: 1.5 (quirks)]
expected: FAIL
[margin: 1.5 (quirks)] [margin: 1.5 (quirks)]
expected: FAIL expected: FAIL
@ -276,15 +240,6 @@
expected: expected:
if os == "mac": FAIL if os == "mac": FAIL
[margin-left: +1.5 (quirks)]
expected: FAIL
[margin-top: +1.5 (quirks)]
expected: FAIL
[margin-bottom: +1.5 (quirks)]
expected: FAIL
[margin: +1.5 (quirks)] [margin: +1.5 (quirks)]
expected: FAIL expected: FAIL
@ -348,15 +303,6 @@
expected: expected:
if os == "mac": FAIL if os == "mac": FAIL
[margin-left: -1.5 (quirks)]
expected: FAIL
[margin-top: -1.5 (quirks)]
expected: FAIL
[margin-bottom: -1.5 (quirks)]
expected: FAIL
[margin: -1.5 (quirks)] [margin: -1.5 (quirks)]
expected: FAIL expected: FAIL