Skip to content

Commit

Permalink
Implement the unitless length quirk for margin-*
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Apr 27, 2017
1 parent 72186c2 commit bcc6d45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 54 deletions.
1 change: 1 addition & 0 deletions components/style/properties/longhand/margin.mako.rs
Expand Up @@ -15,6 +15,7 @@
${helpers.predefined_type("margin-%s" % side[0], "LengthOrPercentageOrAuto",
"computed::LengthOrPercentageOrAuto::Length(Au(0))",
alias=maybe_moz_logical_alias(product, side, "-moz-margin-%s"),
allow_quirks=not side[1],
animation_value_type="ComputedValue", logical = side[1], spec = spec,
allowed_in_page_rule=True)}
% endfor
54 changes: 0 additions & 54 deletions tests/wpt/metadata/quirks-mode/unitless-length.html.ini
Expand Up @@ -12,15 +12,6 @@
expected:
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)]
expected: FAIL

Expand Down Expand Up @@ -84,15 +75,6 @@
expected:
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)]
expected: FAIL

Expand Down Expand Up @@ -156,15 +138,6 @@
expected:
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)]
expected: FAIL

Expand Down Expand Up @@ -204,15 +177,6 @@
expected:
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)]
expected: FAIL

Expand Down Expand Up @@ -276,15 +240,6 @@
expected:
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)]
expected: FAIL

Expand Down Expand Up @@ -348,15 +303,6 @@
expected:
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)]
expected: FAIL

Expand Down

0 comments on commit bcc6d45

Please sign in to comment.