mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibWeb: Add 'PseudoClass' as a CSS SimpleSelector::Type
Same reasoning as the previous commit.
This commit is contained in:
parent
96b2356cbb
commit
4af7d41879
6 changed files with 230 additions and 234 deletions
|
@ -49,6 +49,8 @@ u32 Selector::specificity() const
|
|||
|
||||
Selector::SimpleSelector::NthChildPattern Selector::SimpleSelector::NthChildPattern::parse(StringView const& args)
|
||||
{
|
||||
// FIXME: Remove this when the DeprecatedCSSParser is gone.
|
||||
// The new Parser::parse_nth_child_pattern() does the same as this, using Tokens.
|
||||
CSS::Selector::SimpleSelector::NthChildPattern pattern;
|
||||
if (args.equals_ignoring_case("odd")) {
|
||||
pattern.step_size = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue