mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +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
Notes:
sideshowbarker
2024-07-18 09:04:21 +09:00
Author: https://github.com/AtkinsSJ
Commit: 4af7d41879
Pull-request: https://github.com/SerenityOS/serenity/pull/8723
Reviewed-by: https://github.com/kleinesfilmroellchen
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