diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-03-17 19:13:51 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-18 11:34:02 +0100 |
commit | 5b0187477ba82449051225bbc23628320bbe2520 (patch) | |
tree | c3a193b0dfe0d2c97ed7f5f8e51c180b879c8dd2 /Userland/Shell/Formatter.h | |
parent | 0e4c35b4b22fce5b045a903d77ff5d4a18b320ab (diff) | |
download | serenity-5b0187477ba82449051225bbc23628320bbe2520.zip |
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) {}
```
Diffstat (limited to 'Userland/Shell/Formatter.h')
0 files changed, 0 insertions, 0 deletions