return true for is_superselector of subselector pseudos
This commit is contained in:
parent
457eccc59b
commit
b609e7a6ab
@ -349,7 +349,7 @@ impl SimpleSelector {
|
|||||||
}) = their_simple
|
}) = their_simple
|
||||||
{
|
{
|
||||||
if SUBSELECTOR_PSEUDOS.contains(&normalized_name.as_str()) {
|
if SUBSELECTOR_PSEUDOS.contains(&normalized_name.as_str()) {
|
||||||
sel.components.iter().all(|complex| {
|
return sel.components.iter().all(|complex| {
|
||||||
if complex.components.len() != 1 {
|
if complex.components.len() != 1 {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user