mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #16045 - mbrubeck:any, r=emilio
Bug 1348487 - stylo: Don't allow combinators in :-moz-any. https://bugzilla.mozilla.org/show_bug.cgi?id=1348487
This commit is contained in:
commit
17098ddc8f
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