From 16dd554534ceb81063d0522ff2f2c4f89bb95666 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 25 Apr 2017 01:16:57 +0200 Subject: [PATCH] Implement the unitless length quirk for text-indent --- .../properties/longhand/inherited_text.mako.rs | 3 ++- .../quirks-mode/unitless-length.html.ini | 18 ------------------ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/components/style/properties/longhand/inherited_text.mako.rs b/components/style/properties/longhand/inherited_text.mako.rs index 779bb9532f5..27edd52c0f0 100644 --- a/components/style/properties/longhand/inherited_text.mako.rs +++ b/components/style/properties/longhand/inherited_text.mako.rs @@ -184,7 +184,8 @@ ${helpers.predefined_type("text-indent", "LengthOrPercentage", "computed::LengthOrPercentage::Length(Au(0))", animation_value_type="ComputedValue", - spec="https://drafts.csswg.org/css-text/#propdef-text-indent")} + spec="https://drafts.csswg.org/css-text/#propdef-text-indent", + allow_quirks=True)} // Also known as "word-wrap" (which is more popular because of IE), but this is the preferred // name per CSS-TEXT 6.2. diff --git a/tests/wpt/metadata/quirks-mode/unitless-length.html.ini b/tests/wpt/metadata/quirks-mode/unitless-length.html.ini index e3cbb4dc262..60709b5ab99 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 - [text-indent: 1 (quirks)] - expected: FAIL - [top: 1 (quirks)] expected: if os == "mac": FAIL @@ -45,9 +42,6 @@ expected: if os == "mac": FAIL - [text-indent: +1 (quirks)] - expected: FAIL - [top: +1 (quirks)] expected: if os == "mac": FAIL @@ -78,9 +72,6 @@ expected: if os == "mac": FAIL - [text-indent: -1 (quirks)] - expected: FAIL - [top: -1 (quirks)] expected: if os == "mac": FAIL @@ -111,9 +102,6 @@ expected: if os == "mac": FAIL - [text-indent: 1.5 (quirks)] - expected: FAIL - [top: 1.5 (quirks)] expected: if os == "mac": FAIL @@ -144,9 +132,6 @@ expected: if os == "mac": FAIL - [text-indent: +1.5 (quirks)] - expected: FAIL - [top: +1.5 (quirks)] expected: if os == "mac": FAIL @@ -177,9 +162,6 @@ expected: if os == "mac": FAIL - [text-indent: -1.5 (quirks)] - expected: FAIL - [top: -1.5 (quirks)] expected: if os == "mac": FAIL