1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 23:50:59 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 5b0187477b LibWeb: Implement :nth-[last-]child(n of foo) syntax
In Selectors level 4, `:nth-child()` and `:nth-last-child()` can both
optionally take a selector-list argument. This selector-list acts as a
filter, so that only elements matching the list are counted. For
example, this means that the following are equivalent:

```css
:nth-child(2n+1 of p) {}
p:nth-of-type(2n+1) {}
```
2022-03-18 11:34:02 +01:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
Parser.cpp LibWeb: Implement :nth-[last-]child(n of foo) syntax 2022-03-18 11:34:02 +01:00
Parser.h LibWeb: Implement :nth-[last-]child(n of foo) syntax 2022-03-18 11:34:02 +01:00
StyleBlockRule.h LibWeb: Make StyleBlockRule more accessible to outsiders 2021-12-09 21:30:31 +01:00
StyleComponentValueRule.h LibWeb: Implement StyleComponentValueRule::to_string() 2021-11-24 22:57:46 +01:00
StyleDeclarationRule.h LibWeb: Add an enum for !important 2022-02-12 16:13:27 +00:00
StyleFunctionRule.h LibWeb: Parse and resolve UnresolvedStyleValues 2021-12-09 21:30:31 +01:00
StyleRule.h LibWeb: Ignore malformed at-rules in CSS parser 2022-02-12 11:24:17 +01:00
StyleRules.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
Token.cpp LibWeb: Implement CSS::Token::to_string() 2021-11-24 22:57:46 +01:00
Token.h LibWeb: Implement CSS::Token::to_string() 2021-11-24 22:57:46 +01:00
Tokenizer.cpp LibWeb: Don't verify that a dimension unit isn't whitespace 2022-02-02 18:29:05 +01:00
Tokenizer.h LibWeb: Pass correct values to would_start_an_identifier() 2021-12-27 22:56:08 +01:00