mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Downgrade selectors not() behavior to level 3.
MozReview-Commit-ID: 6p750Ml2wzm
This commit is contained in:
parent
cd8af86244
commit
a1e90d1b24
2 changed files with 108 additions and 77 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue