Skip to content

Commit 32f6307

Browse files
foolipddbeck
andauthored
Add :nth-child() features (#1130)
Co-authored-by: Daniel D. Beck <[email protected]>
1 parent ed7d780 commit 32f6307

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed

features/nth-child-of.dist.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated from: nth-child-of.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: ":nth-child() of <selector>"
5+
description: "The `of` syntax for the `:nth-child()` and `:nth-last-child()` CSS functional pseudo-classess match elements by the relative position of elements, counted from the first or last sibling matching a selector list."
6+
spec:
7+
- https://drafts.csswg.org/selectors-4/#the-nth-child-pseudo
8+
- https://drafts.csswg.org/selectors-4/#the-nth-last-child-pseudo
9+
group: css
10+
caniuse: css-nth-child-of
11+
status:
12+
baseline: low
13+
baseline_low_date: 2023-05-09
14+
support:
15+
chrome: "111"
16+
chrome_android: "111"
17+
edge: "111"
18+
firefox: "113"
19+
firefox_android: "113"
20+
safari: "9"
21+
safari_ios: "9"
22+
compat_features:
23+
- css.selectors.nth-child.of_syntax
24+
- css.selectors.nth-last-child.of_syntax

features/nth-child-of.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: ":nth-child() of <selector>"
2+
description: "The `of` syntax for the `:nth-child()` and `:nth-last-child()` CSS functional pseudo-classess match elements by the relative position of elements, counted from the first or last sibling matching a selector list."
3+
spec:
4+
- https://drafts.csswg.org/selectors-4/#the-nth-child-pseudo
5+
- https://drafts.csswg.org/selectors-4/#the-nth-last-child-pseudo
6+
group: css
7+
caniuse: css-nth-child-of
8+
compat_features:
9+
- css.selectors.nth-child.of_syntax
10+
- css.selectors.nth-last-child.of_syntax

features/nth-child.dist.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated from: nth-child.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: ":nth-child() (initial support)"
5+
description: "The `:nth-child()` and `:nth-last-child()` CSS functional pseudo-classes match elements by the relative position of elements (first, second, third, fourth, and so on), counted from the first or last sibling."
6+
spec:
7+
- https://drafts.csswg.org/selectors-3/#nth-child-pseudo
8+
- https://drafts.csswg.org/selectors-3/#nth-last-child-pseudo
9+
group: css
10+
status:
11+
baseline: high
12+
baseline_low_date: 2015-07-29
13+
baseline_high_date: 2018-01-29
14+
support:
15+
chrome: "4"
16+
chrome_android: "18"
17+
edge: "12"
18+
firefox: "3.5"
19+
firefox_android: "4"
20+
safari: "3.1"
21+
safari_ios: "2"
22+
compat_features:
23+
- css.selectors.nth-child
24+
- css.selectors.nth-last-child

features/nth-child.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: ":nth-child() (initial support)"
2+
description: "The `:nth-child()` and `:nth-last-child()` CSS functional pseudo-classes match elements by the relative position of elements (first, second, third, fourth, and so on), counted from the first or last sibling."
3+
spec:
4+
- https://drafts.csswg.org/selectors-3/#nth-child-pseudo
5+
- https://drafts.csswg.org/selectors-3/#nth-last-child-pseudo
6+
group: css
7+
compat_features:
8+
- css.selectors.nth-child
9+
- css.selectors.nth-last-child

0 commit comments

Comments
 (0)