Implement the unitless length quirk for padding

This commit is contained in:
Anthony Ramine 2017-04-25 01:12:55 +02:00
parent 3f947395ad
commit dd6d3d62c6
2 changed files with 2 additions and 19 deletions

View file

@ -5,4 +5,5 @@
<%namespace name="helpers" file="/helpers.mako.rs" />
${helpers.four_sides_shorthand("padding", "padding-%s", "specified::LengthOrPercentage::parse",
spec="https://drafts.csswg.org/css-box-3/#propdef-padding")}
spec="https://drafts.csswg.org/css-box-3/#propdef-padding",
allow_quirks=True)}

View file

@ -12,9 +12,6 @@
expected:
if os == "mac": FAIL
[padding: 1 (quirks)]
expected: FAIL
[text-indent: 1 (quirks)]
expected: FAIL
@ -48,9 +45,6 @@
expected:
if os == "mac": FAIL
[padding: +1 (quirks)]
expected: FAIL
[text-indent: +1 (quirks)]
expected: FAIL
@ -84,9 +78,6 @@
expected:
if os == "mac": FAIL
[padding: -1 (quirks)]
expected: FAIL
[text-indent: -1 (quirks)]
expected: FAIL
@ -120,9 +111,6 @@
expected:
if os == "mac": FAIL
[padding: 1.5 (quirks)]
expected: FAIL
[text-indent: 1.5 (quirks)]
expected: FAIL
@ -156,9 +144,6 @@
expected:
if os == "mac": FAIL
[padding: +1.5 (quirks)]
expected: FAIL
[text-indent: +1.5 (quirks)]
expected: FAIL
@ -192,9 +177,6 @@
expected:
if os == "mac": FAIL
[padding: -1.5 (quirks)]
expected: FAIL
[text-indent: -1.5 (quirks)]
expected: FAIL