Skip to content

Commit 7ebbdfa

Browse files
skyclouds2001bsmth
andauthored
feat(css): Allow at-rule descriptors also contain mdn_url key (#805)
feat(css): make at-rule descriptor also contain mdn_url key Co-authored-by: Brian Smith <[email protected]>
1 parent 14605dc commit 7ebbdfa

File tree

2 files changed

+67
-32
lines changed

2 files changed

+67
-32
lines changed

css/at-rules.json

Lines changed: 63 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"percentages": "no",
2424
"computed": "asSpecified",
2525
"order": "orderOfAppearance",
26-
"status": "standard"
26+
"status": "standard",
27+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/additive-symbols"
2728
},
2829
"fallback": {
2930
"syntax": "<counter-style-name>",
@@ -32,7 +33,8 @@
3233
"percentages": "no",
3334
"computed": "asSpecified",
3435
"order": "uniqueOrder",
35-
"status": "standard"
36+
"status": "standard",
37+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/fallback"
3638
},
3739
"negative": {
3840
"syntax": "<symbol> <symbol>?",
@@ -41,7 +43,8 @@
4143
"percentages": "no",
4244
"computed": "asSpecified",
4345
"order": "orderOfAppearance",
44-
"status": "standard"
46+
"status": "standard",
47+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/negative"
4548
},
4649
"pad": {
4750
"syntax": "<integer> && <symbol>",
@@ -50,7 +53,8 @@
5053
"percentages": "no",
5154
"computed": "asSpecified",
5255
"order": "uniqueOrder",
53-
"status": "standard"
56+
"status": "standard",
57+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/pad"
5458
},
5559
"prefix": {
5660
"syntax": "<symbol>",
@@ -59,7 +63,8 @@
5963
"percentages": "no",
6064
"computed": "asSpecified",
6165
"order": "uniqueOrder",
62-
"status": "standard"
66+
"status": "standard",
67+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/prefix"
6368
},
6469
"range": {
6570
"syntax": "[ [ <integer> | infinite ]{2} ]# | auto",
@@ -68,7 +73,8 @@
6873
"percentages": "no",
6974
"computed": "asSpecified",
7075
"order": "orderOfAppearance",
71-
"status": "standard"
76+
"status": "standard",
77+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/range"
7278
},
7379
"speak-as": {
7480
"syntax": "auto | bullets | numbers | words | spell-out | <counter-style-name>",
@@ -77,7 +83,8 @@
7783
"percentages": "no",
7884
"computed": "asSpecified",
7985
"order": "uniqueOrder",
80-
"status": "standard"
86+
"status": "standard",
87+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/speak-as"
8188
},
8289
"suffix": {
8390
"syntax": "<symbol>",
@@ -86,7 +93,8 @@
8693
"percentages": "no",
8794
"computed": "asSpecified",
8895
"order": "uniqueOrder",
89-
"status": "standard"
96+
"status": "standard",
97+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/suffix"
9098
},
9199
"symbols": {
92100
"syntax": "<symbol>+",
@@ -95,7 +103,8 @@
95103
"percentages": "no",
96104
"computed": "asSpecified",
97105
"order": "orderOfAppearance",
98-
"status": "standard"
106+
"status": "standard",
107+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/symbols"
99108
},
100109
"system": {
101110
"syntax": "cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",
@@ -104,7 +113,8 @@
104113
"percentages": "no",
105114
"computed": "asSpecified",
106115
"order": "uniqueOrder",
107-
"status": "standard"
116+
"status": "standard",
117+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style/system"
108118
}
109119
},
110120
"status": "standard",
@@ -123,7 +133,7 @@
123133
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@document"
124134
},
125135
"@font-palette-values": {
126-
"syntax": "@font-palette-values <dashed-ident> { <declaration-list> }",
136+
"syntax": "@font-palette-values <dashed-ident> {\n <declaration-list>\n}",
127137
"groups": [
128138
"CSS Fonts"
129139
],
@@ -135,7 +145,8 @@
135145
"percentages": "no",
136146
"computed": "asSpecified",
137147
"order": "uniqueOrder",
138-
"status": "standard"
148+
"status": "standard",
149+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values/base-palette"
139150
},
140151
"font-family": {
141152
"syntax": "<family-name>#",
@@ -144,7 +155,8 @@
144155
"percentages": "no",
145156
"computed": "asSpecified",
146157
"order": "orderOfAppearance",
147-
"status": "standard"
158+
"status": "standard",
159+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values/font-family"
148160
},
149161
"override-colors": {
150162
"syntax": "[ <integer [0,∞]> <color> ]#",
@@ -153,7 +165,8 @@
153165
"percentages": "no",
154166
"computed": "asSpecified",
155167
"order": "orderOfAppearance",
156-
"status": "standard"
168+
"status": "standard",
169+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values/override-colors"
157170
}
158171
},
159172
"status": "standard",
@@ -175,7 +188,8 @@
175188
"percentages": "asSpecified",
176189
"computed": "asSpecified",
177190
"order": "orderOfAppearance",
178-
"status": "experimental"
191+
"status": "experimental",
192+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/ascent-override"
179193
},
180194
"descent-override": {
181195
"syntax": "normal | <percentage>",
@@ -184,7 +198,8 @@
184198
"percentages": "asSpecified",
185199
"computed": "asSpecified",
186200
"order": "orderOfAppearance",
187-
"status": "experimental"
201+
"status": "experimental",
202+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/descent-override"
188203
},
189204
"font-display": {
190205
"syntax": "[ auto | block | swap | fallback | optional ]",
@@ -193,7 +208,8 @@
193208
"initial": "auto",
194209
"computed": "asSpecified",
195210
"order": "uniqueOrder",
196-
"status": "experimental"
211+
"status": "experimental",
212+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-display"
197213
},
198214
"font-family": {
199215
"syntax": "<family-name>",
@@ -202,7 +218,8 @@
202218
"percentages": "no",
203219
"computed": "asSpecified",
204220
"order": "uniqueOrder",
205-
"status": "standard"
221+
"status": "standard",
222+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-family"
206223
},
207224
"font-feature-settings": {
208225
"syntax": "normal | <feature-tag-value>#",
@@ -211,7 +228,8 @@
211228
"percentages": "no",
212229
"computed": "asSpecified",
213230
"order": "orderOfAppearance",
214-
"status": "standard"
231+
"status": "standard",
232+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-feature-settings"
215233
},
216234
"font-variation-settings": {
217235
"syntax": "normal | [ <string> <number> ]#",
@@ -220,7 +238,8 @@
220238
"percentages": "no",
221239
"computed": "asSpecified",
222240
"order": "orderOfAppearance",
223-
"status": "standard"
241+
"status": "standard",
242+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-variation-settings"
224243
},
225244
"font-stretch": {
226245
"syntax": "<font-stretch-absolute>{1,2}",
@@ -229,7 +248,8 @@
229248
"percentages": "no",
230249
"computed": "asSpecified",
231250
"order": "uniqueOrder",
232-
"status": "standard"
251+
"status": "standard",
252+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-stretch"
233253
},
234254
"font-style": {
235255
"syntax": "normal | italic | oblique <angle>{0,2}",
@@ -238,7 +258,8 @@
238258
"percentages": "no",
239259
"computed": "asSpecified",
240260
"order": "uniqueOrder",
241-
"status": "standard"
261+
"status": "standard",
262+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-style"
242263
},
243264
"font-weight": {
244265
"syntax": "<font-weight-absolute>{1,2}",
@@ -247,7 +268,8 @@
247268
"percentages": "no",
248269
"computed": "asSpecified",
249270
"order": "uniqueOrder",
250-
"status": "standard"
271+
"status": "standard",
272+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/font-weight"
251273
},
252274
"line-gap-override": {
253275
"syntax": "normal | <percentage>",
@@ -256,7 +278,8 @@
256278
"percentages": "asSpecified",
257279
"computed": "asSpecified",
258280
"order": "orderOfAppearance",
259-
"status": "experimental"
281+
"status": "experimental",
282+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/line-gap-override"
260283
},
261284
"size-adjust": {
262285
"syntax": "<percentage>",
@@ -265,7 +288,8 @@
265288
"percentages": "asSpecified",
266289
"computed": "asSpecified",
267290
"order": "orderOfAppearance",
268-
"status": "experimental"
291+
"status": "experimental",
292+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/size-adjust"
269293
},
270294
"src": {
271295
"syntax": "[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",
@@ -274,7 +298,8 @@
274298
"percentages": "no",
275299
"computed": "asSpecified",
276300
"order": "orderOfAppearance",
277-
"status": "standard"
301+
"status": "standard",
302+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/src"
278303
},
279304
"unicode-range": {
280305
"syntax": "<unicode-range>#",
@@ -283,7 +308,8 @@
283308
"percentages": "no",
284309
"computed": "asSpecified",
285310
"order": "orderOfAppearance",
286-
"status": "standard"
311+
"status": "standard",
312+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-face/unicode-range"
287313
}
288314
},
289315
"status": "standard",
@@ -399,7 +425,8 @@
399425
"percentages": "no",
400426
"computed": "asSpecified",
401427
"order": "orderOfAppearance",
402-
"status": "standard"
428+
"status": "standard",
429+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@page/page-orientation"
403430
},
404431
"size": {
405432
"syntax": "<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",
@@ -411,7 +438,8 @@
411438
"percentages": "no",
412439
"computed": "asSpecifiedRelativeToAbsoluteLengths",
413440
"order": "orderOfAppearance",
414-
"status": "standard"
441+
"status": "standard",
442+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@page/size"
415443
}
416444
},
417445
"status": "standard",
@@ -445,7 +473,8 @@
445473
"initial": "n/a (required)",
446474
"computed": "asSpecified",
447475
"order": "uniqueOrder",
448-
"status": "experimental"
476+
"status": "experimental",
477+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property/syntax"
449478
},
450479
"inherits": {
451480
"syntax": "true | false",
@@ -454,7 +483,8 @@
454483
"initial": "auto",
455484
"computed": "asSpecified",
456485
"order": "uniqueOrder",
457-
"status": "experimental"
486+
"status": "experimental",
487+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property/inherits"
458488
},
459489
"initial-value": {
460490
"syntax": "<declaration-value>?",
@@ -463,7 +493,8 @@
463493
"percentages": "no",
464494
"computed": "asSpecified",
465495
"order": "uniqueOrder",
466-
"status": "experimental"
496+
"status": "experimental",
497+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property/initial-value"
467498
}
468499
},
469500
"status": "experimental",

css/at-rules.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@
9898
"nonstandard",
9999
"experimental"
100100
]
101+
},
102+
"mdn_url": {
103+
"type": "string",
104+
"pattern": "^https://developer.mozilla.org/docs/Web/CSS/"
101105
}
102106
},
103107
"required": [

0 commit comments

Comments
 (0)