1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:18:11 +00:00

LibWeb: Make :host() take a <compound-selector>

This matches the spec:
https://drafts.csswg.org/css-scoping-1/#selectordef-host
This commit is contained in:
Sam Atkins 2023-08-12 13:47:45 +01:00 committed by Andreas Kling
parent b314a115ca
commit b684bab5f1
4 changed files with 23 additions and 1 deletions

View file

@ -496,6 +496,7 @@ void dump_selector(StringBuilder& builder, CSS::Selector const& selector)
builder.append(")"sv);
break;
}
case CSS::PseudoClassMetadata::ParameterType::CompoundSelector:
case CSS::PseudoClassMetadata::ParameterType::ForgivingSelectorList:
case CSS::PseudoClassMetadata::ParameterType::SelectorList: {
builder.append("(["sv);