diff --git a/components/style/properties/shorthand/padding.mako.rs b/components/style/properties/shorthand/padding.mako.rs index a0e94f8bdcb..c07a80b1e04 100644 --- a/components/style/properties/shorthand/padding.mako.rs +++ b/components/style/properties/shorthand/padding.mako.rs @@ -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)} diff --git a/tests/wpt/metadata/quirks-mode/unitless-length.html.ini b/tests/wpt/metadata/quirks-mode/unitless-length.html.ini index 65232359b5a..e3cbb4dc262 100644 --- a/tests/wpt/metadata/quirks-mode/unitless-length.html.ini +++ b/tests/wpt/metadata/quirks-mode/unitless-length.html.ini @@ -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