Downgrade selectors not() behavior to level 3.

MozReview-Commit-ID: 6p750Ml2wzm
This commit is contained in:
Bobby Holley 2017-04-24 13:54:08 -07:00
parent cd8af86244
commit a1e90d1b24
2 changed files with 108 additions and 77 deletions

View file

@ -385,15 +385,7 @@ fn matches_simple_selector<E, F>(
matches_generic_nth_child(element, 0, 1, true, true, flags_setter)
}
Component::Negation(ref negated) => {
!negated.iter().all(|s| {
match matches_complex_selector_internal(s.iter(),
element,
relations,
flags_setter) {
SelectorMatchingResult::Matched => true,
_ => false,
}
})
!negated.iter().all(|ss| matches_simple_selector(ss, element, relations, flags_setter))
}
}
}