Skip to content

Commit

Permalink
Implement the unitless length quirk for padding-*
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Apr 27, 2017
1 parent 37118e1 commit 3f94739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 62 deletions.
3 changes: 2 additions & 1 deletion components/style/properties/longhand/padding.mako.rs
Expand Up @@ -18,5 +18,6 @@
alias=maybe_moz_logical_alias(product, side, "-moz-padding-%s"),
animation_value_type="ComputedValue",
logical = side[1],
spec = spec)}
spec = spec,
allow_quirks=not side[1])}
% endfor
61 changes: 0 additions & 61 deletions tests/wpt/metadata/quirks-mode/unitless-length.html.ini
Expand Up @@ -12,18 +12,6 @@
expected:
if os == "mac": FAIL

[padding-top: 1 (quirks)]
expected: FAIL

[padding-right: 1 (quirks)]
expected: FAIL

[padding-bottom: 1 (quirks)]
expected: FAIL

[padding-left: 1 (quirks)]
expected: FAIL

[padding: 1 (quirks)]
expected: FAIL

Expand Down Expand Up @@ -60,18 +48,6 @@
expected:
if os == "mac": FAIL

[padding-top: +1 (quirks)]
expected: FAIL

[padding-right: +1 (quirks)]
expected: FAIL

[padding-bottom: +1 (quirks)]
expected: FAIL

[padding-left: +1 (quirks)]
expected: FAIL

[padding: +1 (quirks)]
expected: FAIL

Expand Down Expand Up @@ -144,18 +120,6 @@
expected:
if os == "mac": FAIL

[padding-top: 1.5 (quirks)]
expected: FAIL

[padding-right: 1.5 (quirks)]
expected: FAIL

[padding-bottom: 1.5 (quirks)]
expected: FAIL

[padding-left: 1.5 (quirks)]
expected: FAIL

[padding: 1.5 (quirks)]
expected: FAIL

Expand Down Expand Up @@ -192,18 +156,6 @@
expected:
if os == "mac": FAIL

[padding-top: +1.5 (quirks)]
expected: FAIL

[padding-right: +1.5 (quirks)]
expected: FAIL

[padding-bottom: +1.5 (quirks)]
expected: FAIL

[padding-left: +1.5 (quirks)]
expected: FAIL

[padding: +1.5 (quirks)]
expected: FAIL

Expand Down Expand Up @@ -1247,16 +1199,3 @@
[top: calc(2 * 2px) (standards)]
expected:
if os == "mac": FAIL

[padding: 1px 2 (quirks)]
expected: FAIL

[padding: 1 2px (quirks)]
expected: FAIL

[padding: 1 +2 (quirks)]
expected: FAIL

[padding: 1 -2 (quirks)]
expected: FAIL

0 comments on commit 3f94739

Please sign in to comment.