Issue #2137 - Part 1: Modify :not() selector to accept a complex selector list

This commit is contained in:
FranklinDM 2023-03-10 00:20:44 +08:00 committed by roytam1
commit 82fa9fb80b
7 changed files with 83 additions and 35 deletions

View file

@ -1952,6 +1952,17 @@ static bool SelectorMatches(Element* aElement,
}
break;
case CSSPseudoClassType::mozAnyPrivate:
{
if (!SelectorListMatches(aElement,
pseudoClass,
aNodeMatchContext,
aTreeMatchContext)) {
return false;
}
}
break;
case CSSPseudoClassType::host:
{
// In order to match :host, the element must be a shadow root host,