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:
Alastor Wu 2019-06-25 00:32:07 +00:00 committed by Emilio Cobos Álvarez
parent 5db88db8fc
commit 84a5ab2ba8
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
9 changed files with 50 additions and 41 deletions

View file

@ -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,
}
}