Skip to content

Commit

Permalink
Implement the unitless length quirk for text-indent
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Apr 27, 2017
1 parent dd6d3d6 commit 16dd554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 2 additions & 1 deletion components/style/properties/longhand/inherited_text.mako.rs
Expand Up @@ -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.
Expand Down
18 changes: 0 additions & 18 deletions tests/wpt/metadata/quirks-mode/unitless-length.html.ini
Expand Up @@ -12,9 +12,6 @@
expected:
if os == "mac": FAIL

[text-indent: 1 (quirks)]
expected: FAIL

[top: 1 (quirks)]
expected:
if os == "mac": FAIL
Expand Down Expand Up @@ -45,9 +42,6 @@
expected:
if os == "mac": FAIL

[text-indent: +1 (quirks)]
expected: FAIL

[top: +1 (quirks)]
expected:
if os == "mac": FAIL
Expand Down Expand Up @@ -78,9 +72,6 @@
expected:
if os == "mac": FAIL

[text-indent: -1 (quirks)]
expected: FAIL

[top: -1 (quirks)]
expected:
if os == "mac": FAIL
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 16dd554

Please sign in to comment.