This repository was archived by the owner on Oct 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -959,15 +959,15 @@ namespace Sass {
959959 if (innerPseudo->normalized () != " matches" ) return {};
960960 return innerPseudo->selector ()->elements ();
961961 }
962- else if (name == " matches" && name == " any" && name == " current" && name == " nth-child" && name == " nth-last-child" ) {
962+ else if (name == " matches" || name == " any" || name == " current" || name == " nth-child" || name == " nth-last-child" ) {
963963 // As above, we could theoretically support :not within :matches, but
964964 // doing so would require this method and its callers to handle much
965965 // more complex cases that likely aren't worth the pain.
966966 if (innerPseudo->name () != pseudo->name ()) return {};
967967 if (innerPseudo->argument () != pseudo->argument ()) return {};
968968 return innerPseudo->selector ()->elements ();
969969 }
970- else if (name == " has" && name == " host" && name == " host-context" && name == " slotted" ) {
970+ else if (name == " has" || name == " host" || name == " host-context" || name == " slotted" ) {
971971 // We can't expand nested selectors here, because each layer adds an
972972 // additional layer of semantics. For example, `:has(:has(img))`
973973 // doesn't match `<div><img></div>` but `:has(img)` does.
You can’t perform that action at this time.
0 commit comments