Skip to content

Commit

Permalink
Bug 1348487 - stylo: Don't allow combinators in :-moz-any.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Mar 20, 2017
1 parent bb54f0a commit b8dead3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/style/gecko/selector_parser.rs
Expand Up @@ -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(())
Expand Down

0 comments on commit b8dead3

Please sign in to comment.