mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implement the unitless length quirk for word-spacing
This commit is contained in:
parent
59a7819aa9
commit
d53eb777e1
2 changed files with 2 additions and 19 deletions
|
@ -499,6 +499,7 @@ ${helpers.single_keyword("text-align-last",
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use style_traits::ToCss;
|
use style_traits::ToCss;
|
||||||
use values::HasViewportPercentage;
|
use values::HasViewportPercentage;
|
||||||
|
use values::specified::AllowQuirks;
|
||||||
|
|
||||||
impl HasViewportPercentage for SpecifiedValue {
|
impl HasViewportPercentage for SpecifiedValue {
|
||||||
fn has_viewport_percentage(&self) -> bool {
|
fn has_viewport_percentage(&self) -> bool {
|
||||||
|
@ -574,7 +575,7 @@ ${helpers.single_keyword("text-align-last",
|
||||||
if input.try(|input| input.expect_ident_matching("normal")).is_ok() {
|
if input.try(|input| input.expect_ident_matching("normal")).is_ok() {
|
||||||
Ok(SpecifiedValue::Normal)
|
Ok(SpecifiedValue::Normal)
|
||||||
} else {
|
} else {
|
||||||
specified::LengthOrPercentage::parse(context, input)
|
specified::LengthOrPercentage::parse_quirky(context, input, AllowQuirks::Yes)
|
||||||
.map(SpecifiedValue::Specified)
|
.map(SpecifiedValue::Specified)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
|
||||||
[word-spacing: 1 (quirks)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[bottom: +1 (quirks)]
|
[bottom: +1 (quirks)]
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
@ -51,9 +48,6 @@
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
|
||||||
[word-spacing: +1 (quirks)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[bottom: -1 (quirks)]
|
[bottom: -1 (quirks)]
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
@ -78,9 +72,6 @@
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
|
||||||
[word-spacing: -1 (quirks)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[bottom: 1.5 (quirks)]
|
[bottom: 1.5 (quirks)]
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
@ -105,9 +96,6 @@
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
|
||||||
[word-spacing: 1.5 (quirks)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[bottom: +1.5 (quirks)]
|
[bottom: +1.5 (quirks)]
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
@ -132,9 +120,6 @@
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
|
||||||
[word-spacing: +1.5 (quirks)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[bottom: -1.5 (quirks)]
|
[bottom: -1.5 (quirks)]
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
@ -159,9 +144,6 @@
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
|
||||||
[word-spacing: -1.5 (quirks)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[bottom: \\31 (quirks)]
|
[bottom: \\31 (quirks)]
|
||||||
expected:
|
expected:
|
||||||
if os == "mac": FAIL
|
if os == "mac": FAIL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue