mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibWeb: Implement :nth-last-child pseudo-class
This commit is contained in:
parent
e87eaa3991
commit
c4bd4cbd76
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