mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb/CSS: Add support for pseudo-classes taking <an+b>#
This commit is contained in:
Notes:
github-actions[bot]
2025-08-13 08:48:47 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/e7890429aaa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5830
@@ -70,6 +70,7 @@ struct PseudoClassMetadata {
|
||||
enum class ParameterType {
|
||||
None,
|
||||
ANPlusB,
|
||||
ANPlusBList,
|
||||
ANPlusBOf,
|
||||
CompoundSelector,
|
||||
ForgivingSelectorList,
|
||||
@@ -168,6 +169,8 @@ PseudoClassMetadata pseudo_class_metadata(PseudoClass pseudo_class)
|
||||
if (is_valid_as_function) {
|
||||
if (argument_string == "<an+b>"sv) {
|
||||
parameter_type = "ANPlusB"_string;
|
||||
} else if (argument_string == "<an+b>#"sv) {
|
||||
parameter_type = "ANPlusBList"_string;
|
||||
} else if (argument_string == "<an+b-of>"sv) {
|
||||
parameter_type = "ANPlusBOf"_string;
|
||||
} else if (argument_string == "<compound-selector>"sv) {
|
||||
|
||||
Reference in New Issue
Block a user