mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: restrict CSS properties for '::cue'.
According to the spec [1], only those CSS properties listed on the spec can be applied on the `::cue`. [1] https://www.w3.org/TR/webvtt1/#the-cue-pseudo-element Differential Revision: https://phabricator.services.mozilla.com/D34262
This commit is contained in:
parent
5db88db8fc
commit
84a5ab2ba8
9 changed files with 50 additions and 41 deletions
|
@ -186,6 +186,7 @@ impl PseudoElement {
|
|||
PseudoElement::FirstLetter => Some(PropertyFlags::APPLIES_TO_FIRST_LETTER),
|
||||
PseudoElement::FirstLine => Some(PropertyFlags::APPLIES_TO_FIRST_LINE),
|
||||
PseudoElement::Placeholder => Some(PropertyFlags::APPLIES_TO_PLACEHOLDER),
|
||||
PseudoElement::Cue => Some(PropertyFlags::APPLIES_TO_CUE),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue