mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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 style_traits::ToCss;
|
||||
use values::HasViewportPercentage;
|
||||
use values::specified::AllowQuirks;
|
||||
|
||||
impl HasViewportPercentage for SpecifiedValue {
|
||||
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() {
|
||||
Ok(SpecifiedValue::Normal)
|
||||
} else {
|
||||
specified::LengthOrPercentage::parse(context, input)
|
||||
specified::LengthOrPercentage::parse_quirky(context, input, AllowQuirks::Yes)
|
||||
.map(SpecifiedValue::Specified)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
||||
[word-spacing: 1 (quirks)]
|
||||
expected: FAIL
|
||||
|
||||
[bottom: +1 (quirks)]
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
@ -51,9 +48,6 @@
|
|||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
||||
[word-spacing: +1 (quirks)]
|
||||
expected: FAIL
|
||||
|
||||
[bottom: -1 (quirks)]
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
@ -78,9 +72,6 @@
|
|||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
||||
[word-spacing: -1 (quirks)]
|
||||
expected: FAIL
|
||||
|
||||
[bottom: 1.5 (quirks)]
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
@ -105,9 +96,6 @@
|
|||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
||||
[word-spacing: 1.5 (quirks)]
|
||||
expected: FAIL
|
||||
|
||||
[bottom: +1.5 (quirks)]
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
@ -132,9 +120,6 @@
|
|||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
||||
[word-spacing: +1.5 (quirks)]
|
||||
expected: FAIL
|
||||
|
||||
[bottom: -1.5 (quirks)]
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
@ -159,9 +144,6 @@
|
|||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
||||
[word-spacing: -1.5 (quirks)]
|
||||
expected: FAIL
|
||||
|
||||
[bottom: \\31 (quirks)]
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue