mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Bug 1348487 - stylo: Don't allow combinators in :-moz-any.
This commit is contained in:
parent
bb54f0a429
commit
b8dead37f6
1 changed files with 4 additions and 0 deletions
|
@ -341,6 +341,10 @@ impl<'a> ::selectors::Parser for SelectorParser<'a> {
|
|||
let selectors = parser.parse_comma_separated(|input| {
|
||||
ComplexSelector::parse(self, input)
|
||||
})?;
|
||||
// Selectors inside `:-moz-any` may not include combinators.
|
||||
if selectors.iter().any(|s| s.next.is_some()) {
|
||||
return Err(())
|
||||
}
|
||||
NonTSPseudoClass::MozAny(selectors)
|
||||
}
|
||||
_ => return Err(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue