1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 02:18:12 +00:00

LibWeb: Make CSS selector parsing use StyleComponentValueRules

Also added some pseudo-classes that were handled in the deprecated
parser:
- :disabled
- :enabled
- :checked
- :nth-child
- :nth-last-child
- :not
This commit is contained in:
Sam Atkins 2021-06-30 16:27:37 +01:00 committed by Andreas Kling
parent f7c79de0c5
commit a558916e1f
5 changed files with 167 additions and 108 deletions

View file

@ -78,6 +78,7 @@ public:
// FIXME: We don't need this field on every single SimpleSelector, but it's also annoying to malloc it somewhere.
// Only used when "pseudo_class" is "NthChild" or "NthLastChild".
NthChildPattern nth_child_pattern;
// FIXME: This wants to be a Selector, rather than parsing it each time it is used.
String not_selector {};
};