mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
PropertyDeclaration with CSSWideKeyword is parsed
Addresses #15401 The desired result is for `CSSWideKeyword`s to return false (they are parsed) and other Custom declaration values to return true (they are unparsed).
This commit is contained in:
parent
0a3b373a6a
commit
ec87545774
2 changed files with 24 additions and 1 deletions
|
@ -1174,7 +1174,9 @@ impl PropertyDeclaration {
|
|||
pub fn value_is_unparsed(&self) -> bool {
|
||||
match *self {
|
||||
PropertyDeclaration::WithVariables(..) => true,
|
||||
PropertyDeclaration::Custom(..) => true,
|
||||
PropertyDeclaration::Custom(_, ref value) => {
|
||||
!matches!(value.borrow(), DeclaredValue::CSSWideKeyword(..))
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue