mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 10:15:07 +00:00
LibWeb: Add support for pseudo-class functions that take an ident param
This is prep work for `:dir()`, though other pseudo-classes may well use it in the future too.
This commit is contained in:
parent
9522f761a3
commit
5b125811f1
4 changed files with 33 additions and 0 deletions
|
@ -73,6 +73,7 @@ struct PseudoClassMetadata {
|
|||
ANPlusBOf,
|
||||
CompoundSelector,
|
||||
ForgivingSelectorList,
|
||||
Ident,
|
||||
LanguageRanges,
|
||||
SelectorList,
|
||||
} parameter_type;
|
||||
|
@ -169,6 +170,8 @@ PseudoClassMetadata pseudo_class_metadata(PseudoClass pseudo_class)
|
|||
parameter_type = "CompoundSelector"_string;
|
||||
} else if (argument_string == "<forgiving-selector-list>"sv) {
|
||||
parameter_type = "ForgivingSelectorList"_string;
|
||||
} else if (argument_string == "<ident>"sv) {
|
||||
parameter_type = "Ident"_string;
|
||||
} else if (argument_string == "<language-ranges>"sv) {
|
||||
parameter_type = "LanguageRanges"_string;
|
||||
} else if (argument_string == "<selector-list>"sv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue