1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:47:35 +00:00

LibWeb: Add 'PseudoElement' as a CSS SimpleSelector::Type

Same reasoning again! This is the last one.

While I was at it, I added the two remaining CSS2.2 pseudo-elements,
::first-line and ::first-letter. All 4 are handled in the new CSS
parser, including with the compatibility single-colon syntax. I have
not added support to the old parser.
This commit is contained in:
Sam Atkins 2021-07-12 16:34:18 +01:00 committed by Andreas Kling
parent 4af7d41879
commit 8cae79cc8d
4 changed files with 66 additions and 12 deletions

View file

@ -24,6 +24,7 @@ public:
Class,
Attribute,
PseudoClass,
PseudoElement,
};
Type type { Type::Invalid };
@ -71,6 +72,8 @@ public:
None,
Before,
After,
FirstLine,
FirstLetter,
};
PseudoElement pseudo_element { PseudoElement::None };