Support CSS shadow parts

This commit is contained in:
Basilisk-Dev 2026-05-11 19:33:30 -04:00 committed by wuggy
commit a852c0a86a
10 changed files with 1882 additions and 29 deletions

View file

@ -125,7 +125,8 @@ nsCSSPseudoClasses::HasStringArg(Type aType)
aType == Type::mozSystemMetric ||
aType == Type::mozLocaleDir ||
aType == Type::mozDir ||
aType == Type::dir;
aType == Type::dir ||
aType == Type::part;
}
bool
@ -210,5 +211,6 @@ nsCSSPseudoClasses::IsUserActionPseudoClass(Type aType)
/* static */ bool
nsCSSPseudoClasses::IsHybridPseudoElement(Type aType)
{
return aType == Type::slotted;
return aType == Type::slotted ||
aType == Type::part;
}