mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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:
parent
b314a115ca
commit
b684bab5f1
Notes:
sideshowbarker
2024-07-17 01:11:48 +09:00
Author: https://github.com/AtkinsSJ
Commit: b684bab5f1
Pull-request: https://github.com/SerenityOS/serenity/pull/20519
4 changed files with 23 additions and 1 deletions
|
@ -71,6 +71,7 @@ struct PseudoClassMetadata {
|
|||
None,
|
||||
ANPlusB,
|
||||
ANPlusBOf,
|
||||
CompoundSelector,
|
||||
ForgivingSelectorList,
|
||||
LanguageRanges,
|
||||
SelectorList,
|
||||
|
@ -164,6 +165,8 @@ PseudoClassMetadata pseudo_class_metadata(PseudoClass pseudo_class)
|
|||
parameter_type = "ANPlusB"_string;
|
||||
} else if (argument_string == "<an+b-of>"sv) {
|
||||
parameter_type = "ANPlusBOf"_string;
|
||||
} else if (argument_string == "<compound-selector>"sv) {
|
||||
parameter_type = "CompoundSelector"_string;
|
||||
} else if (argument_string == "<forgiving-selector-list>"sv) {
|
||||
parameter_type = "ForgivingSelectorList"_string;
|
||||
} else if (argument_string == "<language-ranges>"sv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue