aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/gecko/selector_parser.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs
index 8b3b019dc77..25785beee02 100644
--- a/components/style/gecko/selector_parser.rs
+++ b/components/style/gecko/selector_parser.rs
@@ -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(())