return true for is_superselector of subselector pseudos

This commit is contained in:
ConnorSkees 2020-06-07 18:20:51 -04:00
parent 457eccc59b
commit b609e7a6ab

View File

@ -349,7 +349,7 @@ impl SimpleSelector {
}) = their_simple
{
if SUBSELECTOR_PSEUDOS.contains(&normalized_name.as_str()) {
sel.components.iter().all(|complex| {
return sel.components.iter().all(|complex| {
if complex.components.len() != 1 {
return false;
};