mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 21:57:18 +00:00
LibWeb: Implement :nth-last-child pseudo-class
This commit is contained in:
parent
e87eaa3991
commit
c4bd4cbd76
Notes:
sideshowbarker
2024-07-18 18:19:37 +09:00
Author: https://github.com/miere43
Commit: c4bd4cbd76
Pull-request: https://github.com/SerenityOS/serenity/pull/7030
Reviewed-by: https://github.com/awesomekling
4 changed files with 15 additions and 3 deletions
|
@ -37,6 +37,7 @@ public:
|
|||
FirstOfType,
|
||||
LastOfType,
|
||||
NthChild,
|
||||
NthLastChild,
|
||||
};
|
||||
PseudoClass pseudo_class { PseudoClass::None };
|
||||
|
||||
|
@ -69,7 +70,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" == PseudoClass::NthChild.
|
||||
// Only used when "pseudo_class" is "NthChild" or "NthLastChild".
|
||||
NthChildPattern nth_child_pattern;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue