mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue