Skip to content

Commit 8d17ec8

Browse files
skyclouds2001bsmth
andauthored
feat(css): consistent naming for function-like pseudo-classes (#865)
Co-authored-by: Brian Smith <[email protected]>
1 parent 7798a1c commit 8d17ec8

File tree

1 file changed

+35
-18
lines changed

1 file changed

+35
-18
lines changed

css/selectors.json

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"status": "standard",
180180
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:defined"
181181
},
182-
":dir": {
182+
":dir()": {
183183
"syntax": ":dir( [ ltr | rtl ] )",
184184
"groups": [
185185
"Pseudo-classes",
@@ -287,7 +287,7 @@
287287
"status": "standard",
288288
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:future"
289289
},
290-
":has": {
290+
":has()": {
291291
"syntax": ":has( <forgiving-relative-selector-list> )",
292292
"groups": [
293293
"Pseudo-classes",
@@ -350,7 +350,7 @@
350350
"status": "standard",
351351
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:invalid"
352352
},
353-
":is": {
353+
":is()": {
354354
"syntax": ":is( <forgiving-selector-list> )",
355355
"groups": [
356356
"Pseudo-classes",
@@ -359,7 +359,7 @@
359359
"status": "standard",
360360
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:is"
361361
},
362-
":lang": {
362+
":lang()": {
363363
"syntax": ":lang( <language-code> )",
364364
"groups": [
365365
"Pseudo-classes",
@@ -423,7 +423,7 @@
423423
"status": "standard",
424424
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:modal"
425425
},
426-
":not": {
426+
":not()": {
427427
"syntax": ":not( <complex-selector-list> )",
428428
"groups": [
429429
"Pseudo-classes",
@@ -432,7 +432,7 @@
432432
"status": "standard",
433433
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:not"
434434
},
435-
":nth-child": {
435+
":nth-child()": {
436436
"syntax": ":nth-child( <nth> [ of <complex-selector-list> ]? )",
437437
"groups": [
438438
"Pseudo-classes",
@@ -441,7 +441,7 @@
441441
"status": "standard",
442442
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:nth-child"
443443
},
444-
":nth-last-child": {
444+
":nth-last-child()": {
445445
"syntax": ":nth-last-child( <nth> [ of <complex-selector-list> ]? )",
446446
"groups": [
447447
"Pseudo-classes",
@@ -450,7 +450,7 @@
450450
"status": "standard",
451451
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:nth-last-child"
452452
},
453-
":nth-last-of-type": {
453+
":nth-last-of-type()": {
454454
"syntax": ":nth-last-of-type( <nth> )",
455455
"groups": [
456456
"Pseudo-classes",
@@ -459,7 +459,7 @@
459459
"status": "standard",
460460
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:nth-last-of-type"
461461
},
462-
":nth-of-type": {
462+
":nth-of-type()": {
463463
"syntax": ":nth-of-type( <nth> )",
464464
"groups": [
465465
"Pseudo-classes",
@@ -659,7 +659,7 @@
659659
"status": "standard",
660660
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:visited"
661661
},
662-
":where": {
662+
":where()": {
663663
"syntax": ":where( <complex-selector-list> )",
664664
"groups": [
665665
"Pseudo-classes",
@@ -911,7 +911,16 @@
911911
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::before"
912912
},
913913
"::cue": {
914-
"syntax": "::cue | ::cue( <selector> )",
914+
"syntax": "::cue",
915+
"groups": [
916+
"Pseudo-elements",
917+
"Selectors"
918+
],
919+
"status": "standard",
920+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::cue"
921+
},
922+
"::cue()": {
923+
"syntax": "::cue( <selector> )",
915924
"groups": [
916925
"Pseudo-elements",
917926
"Selectors"
@@ -920,7 +929,15 @@
920929
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::cue"
921930
},
922931
"::cue-region": {
923-
"syntax": "::cue-region | ::cue-region( <selector> )",
932+
"syntax": "::cue-region",
933+
"groups": [
934+
"Pseudo-elements",
935+
"Selectors"
936+
],
937+
"status": "standard"
938+
},
939+
"::cue-region()": {
940+
"syntax": "::cue-region( <selector> )",
924941
"groups": [
925942
"Pseudo-elements",
926943
"Selectors"
@@ -963,7 +980,7 @@
963980
"status": "standard",
964981
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::marker"
965982
},
966-
"::part": {
983+
"::part()": {
967984
"syntax": "::part( <ident>+ )",
968985
"groups": [
969986
"Pseudo-elements",
@@ -990,7 +1007,7 @@
9901007
"status": "standard",
9911008
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::selection"
9921009
},
993-
"::slotted": {
1010+
"::slotted()": {
9941011
"syntax": "::slotted( <compound-selector> )",
9951012
"groups": [
9961013
"Pseudo-elements",
@@ -1026,7 +1043,7 @@
10261043
"status": "standard",
10271044
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::view-transition"
10281045
},
1029-
"::view-transition-group": {
1046+
"::view-transition-group()": {
10301047
"syntax": "::view-transition-group([ '*' | <custom-ident> ])",
10311048
"groups": [
10321049
"Pseudo-elements",
@@ -1035,7 +1052,7 @@
10351052
"status": "standard",
10361053
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::view-transition-group"
10371054
},
1038-
"::view-transition-image-pair": {
1055+
"::view-transition-image-pair()": {
10391056
"syntax": "::view-transition-image-pair([ '*' | <custom-ident> ])",
10401057
"groups": [
10411058
"Pseudo-elements",
@@ -1044,7 +1061,7 @@
10441061
"status": "standard",
10451062
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair"
10461063
},
1047-
"::view-transition-new": {
1064+
"::view-transition-new()": {
10481065
"syntax": "::view-transition-new([ '*' | <custom-ident> ])",
10491066
"groups": [
10501067
"Pseudo-elements",
@@ -1053,7 +1070,7 @@
10531070
"status": "standard",
10541071
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::view-transition-new"
10551072
},
1056-
"::view-transition-old": {
1073+
"::view-transition-old()": {
10571074
"syntax": "::view-transition-old([ '*' | <custom-ident> ])",
10581075
"groups": [
10591076
"Pseudo-elements",

0 commit comments

Comments
 (0)