diff --git a/components/selectors/matching.rs b/components/selectors/matching.rs index a0a2dc46aa0..206e98a77d6 100644 --- a/components/selectors/matching.rs +++ b/components/selectors/matching.rs @@ -122,6 +122,7 @@ fn may_match(mut selector: &ComplexSelector, loop { match selector.next { None => break, + Some((ref cs, Combinator::Child)) | Some((ref cs, Combinator::Descendant)) => selector = &**cs, Some((ref cs, _)) => { selector = &**cs;