mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Don't support a list of selectors in ::slotted yet.
Bug: 1425757 Reviewed-by: xidorn MozReview-Commit-ID: G0I0gM2sWTh
This commit is contained in:
parent
c2cacb69f3
commit
b556ddbf55
3 changed files with 66 additions and 39 deletions
|
@ -555,18 +555,16 @@ where
|
|||
{
|
||||
match *selector {
|
||||
Component::Combinator(_) => unreachable!(),
|
||||
Component::Slotted(ref selectors) => {
|
||||
Component::Slotted(ref selector) => {
|
||||
context.shared.nesting_level += 1;
|
||||
let result =
|
||||
element.assigned_slot().is_some() &&
|
||||
selectors.iter().any(|s| {
|
||||
matches_complex_selector(
|
||||
s.iter(),
|
||||
element,
|
||||
context.shared,
|
||||
flags_setter,
|
||||
)
|
||||
});
|
||||
matches_complex_selector(
|
||||
selector.iter(),
|
||||
element,
|
||||
context.shared,
|
||||
flags_setter,
|
||||
);
|
||||
context.shared.nesting_level -= 1;
|
||||
result
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue