summaryrefslogtreecommitdiff
path: root/Userland/Shell/Formatter.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-17 19:13:51 +0000
committerAndreas Kling <kling@serenityos.org>2022-03-18 11:34:02 +0100
commit5b0187477ba82449051225bbc23628320bbe2520 (patch)
treec3a193b0dfe0d2c97ed7f5f8e51c180b879c8dd2 /Userland/Shell/Formatter.h
parent0e4c35b4b22fce5b045a903d77ff5d4a18b320ab (diff)
downloadserenity-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