mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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:
parent
4af7d41879
commit
8cae79cc8d
4 changed files with 66 additions and 12 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue