mdn-data 2.0.20 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +3 -3
- package/css/at-rules.json +14 -1
- package/css/definitions.json +2 -1
- package/css/properties.json +27 -12
- package/css/properties.schema.json +1 -0
- package/css/readme.md +32 -0
- package/css/selectors.json +3 -3
- package/css/syntaxes.json +12 -3
- package/package.json +3 -4
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -14,12 +14,12 @@ For example, the [CSSTree](https://github.com/csstree/csstree/) CSS parser.
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
[](https://www.npmjs.com/package/mdn-data)
|
|
17
|
-
[](https://github.com/mdn/data/actions/workflows/lint.yml)
|
|
18
18
|
|
|
19
19
|
## Repository contents
|
|
20
20
|
|
|
21
|
-
There's a top-level directory for each broad area covered: for example,
|
|
22
|
-
|
|
21
|
+
There's a top-level directory for each broad area covered: for example, `api`
|
|
22
|
+
and `css`. Inside each of these directories is one or more
|
|
23
23
|
JSON files containing the data.
|
|
24
24
|
|
|
25
25
|
### api
|
package/css/at-rules.json
CHANGED
|
@@ -273,8 +273,9 @@
|
|
|
273
273
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"
|
|
274
274
|
},
|
|
275
275
|
"@import": {
|
|
276
|
-
"syntax": "@import [ <string> | <url> ] [ <media-query-list
|
|
276
|
+
"syntax": "@import [ <string> | <url> ]\n [ layer | layer(<layer-name>) ]?\n [ supports( [ <supports-condition> | <declaration> ] ) ]?\n <media-query-list>? ;",
|
|
277
277
|
"groups": [
|
|
278
|
+
"CSS Conditional Rules",
|
|
278
279
|
"Media Queries"
|
|
279
280
|
],
|
|
280
281
|
"status": "standard",
|
|
@@ -292,6 +293,18 @@
|
|
|
292
293
|
"status": "standard",
|
|
293
294
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@keyframes"
|
|
294
295
|
},
|
|
296
|
+
"@layer": {
|
|
297
|
+
"syntax": "@layer [ <layer-name># | <layer-name>? {\n <stylesheet>\n} ]",
|
|
298
|
+
"interfaces": [
|
|
299
|
+
"CSSLayerBlockRule",
|
|
300
|
+
"CSSLayerStatementRule"
|
|
301
|
+
],
|
|
302
|
+
"groups": [
|
|
303
|
+
"CSS Cascading and Inheritance"
|
|
304
|
+
],
|
|
305
|
+
"status": "standard",
|
|
306
|
+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@layer"
|
|
307
|
+
},
|
|
295
308
|
"@media": {
|
|
296
309
|
"syntax": "@media <media-query-list> {\n <group-rule-body>\n}",
|
|
297
310
|
"interfaces": [
|
package/css/definitions.json
CHANGED
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
"CSS Angles",
|
|
8
8
|
"CSS Animations",
|
|
9
9
|
"CSS Backgrounds and Borders",
|
|
10
|
+
"CSS Basic User Interface",
|
|
10
11
|
"CSS Box Model",
|
|
11
12
|
"CSS Box Alignment",
|
|
12
13
|
"CSS Break",
|
|
14
|
+
"CSS Cascading and Inheritance",
|
|
13
15
|
"CSS Charsets",
|
|
14
16
|
"CSS Color",
|
|
15
17
|
"CSS Columns",
|
|
@@ -55,7 +57,6 @@
|
|
|
55
57
|
"CSS Transitions",
|
|
56
58
|
"CSS Types",
|
|
57
59
|
"CSS Units",
|
|
58
|
-
"CSS Basic User Interface",
|
|
59
60
|
"CSS Variables",
|
|
60
61
|
"CSS Will Change",
|
|
61
62
|
"CSS Writing Modes",
|
package/css/properties.json
CHANGED
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"
|
|
951
951
|
},
|
|
952
952
|
"-moz-force-broken-image-icon": {
|
|
953
|
-
"syntax": "
|
|
953
|
+
"syntax": "0 | 1",
|
|
954
954
|
"media": "visual",
|
|
955
955
|
"inherited": false,
|
|
956
956
|
"animationType": "discrete",
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
"-webkit-tap-highlight-color": {
|
|
1571
1571
|
"syntax": "<color>",
|
|
1572
1572
|
"media": "visual",
|
|
1573
|
-
"inherited":
|
|
1573
|
+
"inherited": true,
|
|
1574
1574
|
"animationType": "discrete",
|
|
1575
1575
|
"percentages": "no",
|
|
1576
1576
|
"groups": [
|
|
@@ -4187,7 +4187,7 @@
|
|
|
4187
4187
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/contain"
|
|
4188
4188
|
},
|
|
4189
4189
|
"content": {
|
|
4190
|
-
"syntax": "normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?",
|
|
4190
|
+
"syntax": "normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> ]+ ]?",
|
|
4191
4191
|
"media": "all",
|
|
4192
4192
|
"inherited": false,
|
|
4193
4193
|
"animationType": "discrete",
|
|
@@ -4219,7 +4219,7 @@
|
|
|
4219
4219
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/content-visibility"
|
|
4220
4220
|
},
|
|
4221
4221
|
"counter-increment": {
|
|
4222
|
-
"syntax": "[ <
|
|
4222
|
+
"syntax": "[ <counter-name> <integer>? ]+ | none",
|
|
4223
4223
|
"media": "all",
|
|
4224
4224
|
"inherited": false,
|
|
4225
4225
|
"animationType": "discrete",
|
|
@@ -4235,7 +4235,7 @@
|
|
|
4235
4235
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/counter-increment"
|
|
4236
4236
|
},
|
|
4237
4237
|
"counter-reset": {
|
|
4238
|
-
"syntax": "[ <
|
|
4238
|
+
"syntax": "[ <counter-name> <integer>? ]+ | none",
|
|
4239
4239
|
"media": "all",
|
|
4240
4240
|
"inherited": false,
|
|
4241
4241
|
"animationType": "discrete",
|
|
@@ -4251,7 +4251,7 @@
|
|
|
4251
4251
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/counter-reset"
|
|
4252
4252
|
},
|
|
4253
4253
|
"counter-set": {
|
|
4254
|
-
"syntax": "[ <
|
|
4254
|
+
"syntax": "[ <counter-name> <integer>? ]+ | none",
|
|
4255
4255
|
"media": "all",
|
|
4256
4256
|
"inherited": false,
|
|
4257
4257
|
"animationType": "discrete",
|
|
@@ -4691,7 +4691,7 @@
|
|
|
4691
4691
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-size"
|
|
4692
4692
|
},
|
|
4693
4693
|
"font-size-adjust": {
|
|
4694
|
-
"syntax": "none | <number>",
|
|
4694
|
+
"syntax": "none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]",
|
|
4695
4695
|
"media": "visual",
|
|
4696
4696
|
"inherited": true,
|
|
4697
4697
|
"animationType": "number",
|
|
@@ -4770,7 +4770,7 @@
|
|
|
4770
4770
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-style"
|
|
4771
4771
|
},
|
|
4772
4772
|
"font-synthesis": {
|
|
4773
|
-
"syntax": "none | [ weight || style ]",
|
|
4773
|
+
"syntax": "none | [ weight || style || small-caps ]",
|
|
4774
4774
|
"media": "visual",
|
|
4775
4775
|
"inherited": true,
|
|
4776
4776
|
"animationType": "discrete",
|
|
@@ -5515,6 +5515,21 @@
|
|
|
5515
5515
|
"status": "standard",
|
|
5516
5516
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/inline-size"
|
|
5517
5517
|
},
|
|
5518
|
+
"input-security": {
|
|
5519
|
+
"syntax": "auto | none",
|
|
5520
|
+
"media": "interactive",
|
|
5521
|
+
"inherited": false,
|
|
5522
|
+
"animationType": "byComputedValueType",
|
|
5523
|
+
"percentages": "no",
|
|
5524
|
+
"groups": [
|
|
5525
|
+
"CSS Basic User Interface"
|
|
5526
|
+
],
|
|
5527
|
+
"initial": "auto",
|
|
5528
|
+
"appliesto": "sensitiveTextInputs",
|
|
5529
|
+
"computed": "asSpecified",
|
|
5530
|
+
"order": "perGrammar",
|
|
5531
|
+
"status": "standard"
|
|
5532
|
+
},
|
|
5518
5533
|
"inset": {
|
|
5519
5534
|
"syntax": "<'top'>{1,4}",
|
|
5520
5535
|
"media": "visual",
|
|
@@ -7713,7 +7728,7 @@
|
|
|
7713
7728
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/scale"
|
|
7714
7729
|
},
|
|
7715
7730
|
"scrollbar-color": {
|
|
7716
|
-
"syntax": "auto |
|
|
7731
|
+
"syntax": "auto | <color>{2}",
|
|
7717
7732
|
"media": "visual",
|
|
7718
7733
|
"inherited": true,
|
|
7719
7734
|
"animationType": "color",
|
|
@@ -7729,7 +7744,7 @@
|
|
|
7729
7744
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"
|
|
7730
7745
|
},
|
|
7731
7746
|
"scrollbar-gutter": {
|
|
7732
|
-
"syntax": "auto |
|
|
7747
|
+
"syntax": "auto | stable && both-edges?",
|
|
7733
7748
|
"media": "visual",
|
|
7734
7749
|
"inherited": false,
|
|
7735
7750
|
"animationType": "discrete",
|
|
@@ -7738,7 +7753,7 @@
|
|
|
7738
7753
|
"CSS Overflow"
|
|
7739
7754
|
],
|
|
7740
7755
|
"initial": "auto",
|
|
7741
|
-
"appliesto": "
|
|
7756
|
+
"appliesto": "scrollingBoxes",
|
|
7742
7757
|
"computed": "asSpecified",
|
|
7743
7758
|
"order": "perGrammar",
|
|
7744
7759
|
"status": "standard",
|
|
@@ -9160,7 +9175,7 @@
|
|
|
9160
9175
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/word-break"
|
|
9161
9176
|
},
|
|
9162
9177
|
"word-spacing": {
|
|
9163
|
-
"syntax": "normal | <length
|
|
9178
|
+
"syntax": "normal | <length>",
|
|
9164
9179
|
"media": "visual",
|
|
9165
9180
|
"inherited": true,
|
|
9166
9181
|
"animationType": "length",
|
package/css/readme.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# MDN CSS data
|
|
2
|
+
|
|
3
|
+
This folder contains data about the different features of the [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) language.
|
|
4
|
+
|
|
5
|
+
## Different types of CSS data
|
|
6
|
+
|
|
7
|
+
The CSS data is split into these parts:
|
|
8
|
+
|
|
9
|
+
* **at-rules**:
|
|
10
|
+
[data](https://github.com/mdn/data/blob/master/css/at-rules.json) |
|
|
11
|
+
[schema](https://github.com/mdn/data/blob/master/css/at-rules.schema.json) |
|
|
12
|
+
[docs](https://github.com/mdn/data/blob/master/css/at-rules.md)
|
|
13
|
+
* **properties**:
|
|
14
|
+
[data](https://github.com/mdn/data/blob/master/css/properties.json) |
|
|
15
|
+
[schema](https://github.com/mdn/data/blob/master/css/properties.schema.json) |
|
|
16
|
+
[docs](https://github.com/mdn/data/blob/master/css/properties.md)
|
|
17
|
+
* **selectors**:
|
|
18
|
+
[data](https://github.com/mdn/data/blob/master/css/selectors.json) |
|
|
19
|
+
[schema](https://github.com/mdn/data/blob/master/css/selectors.schema.json) |
|
|
20
|
+
[docs](https://github.com/mdn/data/blob/master/css/selectors.md)
|
|
21
|
+
* **syntaxes**:
|
|
22
|
+
[data](https://github.com/mdn/data/blob/master/css/syntaxes.json) |
|
|
23
|
+
[schema](https://github.com/mdn/data/blob/master/css/syntaxes.schema.json) |
|
|
24
|
+
[docs](https://github.com/mdn/data/blob/master/css/syntaxes.md)
|
|
25
|
+
* **types**:
|
|
26
|
+
[data](https://github.com/mdn/data/blob/master/css/types.json) |
|
|
27
|
+
[schema](https://github.com/mdn/data/blob/master/css/types.schema.json) |
|
|
28
|
+
[docs](https://github.com/mdn/data/blob/master/css/types.md)
|
|
29
|
+
* **units**:
|
|
30
|
+
[data](https://github.com/mdn/data/blob/master/css/units.json) |
|
|
31
|
+
[schema](https://github.com/mdn/data/blob/master/css/units.schema.json) |
|
|
32
|
+
[docs](https://github.com/mdn/data/blob/master/css/units.md)
|
package/css/selectors.json
CHANGED
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:has"
|
|
298
298
|
},
|
|
299
299
|
":host()": {
|
|
300
|
-
"syntax": ":host( <compound-selector
|
|
300
|
+
"syntax": ":host( <compound-selector> )",
|
|
301
301
|
"groups": [
|
|
302
302
|
"Pseudo-classes",
|
|
303
303
|
"Selectors"
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:host()"
|
|
307
307
|
},
|
|
308
308
|
":host-context()": {
|
|
309
|
-
"syntax": ":host-context( <compound-selector
|
|
309
|
+
"syntax": ":host-context( <compound-selector> )",
|
|
310
310
|
"groups": [
|
|
311
311
|
"Pseudo-classes",
|
|
312
312
|
"Selectors"
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/::selection"
|
|
1025
1025
|
},
|
|
1026
1026
|
"::slotted": {
|
|
1027
|
-
"syntax": "::slotted( <compound-selector
|
|
1027
|
+
"syntax": "::slotted( <compound-selector> )",
|
|
1028
1028
|
"groups": [
|
|
1029
1029
|
"Pseudo-elements",
|
|
1030
1030
|
"Selectors"
|
package/css/syntaxes.json
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"syntax": "space-between | space-around | space-evenly | stretch"
|
|
154
154
|
},
|
|
155
155
|
"content-list": {
|
|
156
|
-
"syntax": "[ <string> | contents | <image> | <quote> | <target> | <leader()> ]+"
|
|
156
|
+
"syntax": "[ <string> | contents | <image> | <counter> | <quote> | <target> | <leader()> ]+"
|
|
157
157
|
},
|
|
158
158
|
"content-position": {
|
|
159
159
|
"syntax": "center | start | end | flex-start | flex-end"
|
|
@@ -164,8 +164,14 @@
|
|
|
164
164
|
"contrast()": {
|
|
165
165
|
"syntax": "contrast( [ <number-percentage> ] )"
|
|
166
166
|
},
|
|
167
|
+
"counter": {
|
|
168
|
+
"syntax": "<counter()> | <counters()>"
|
|
169
|
+
},
|
|
167
170
|
"counter()": {
|
|
168
|
-
"syntax": "counter( <
|
|
171
|
+
"syntax": "counter( <counter-name>, <counter-style>? )"
|
|
172
|
+
},
|
|
173
|
+
"counter-name": {
|
|
174
|
+
"syntax": "<custom-ident>"
|
|
169
175
|
},
|
|
170
176
|
"counter-style": {
|
|
171
177
|
"syntax": "<counter-style-name> | symbols()"
|
|
@@ -174,7 +180,7 @@
|
|
|
174
180
|
"syntax": "<custom-ident>"
|
|
175
181
|
},
|
|
176
182
|
"counters()": {
|
|
177
|
-
"syntax": "counters( <
|
|
183
|
+
"syntax": "counters( <counter-name>, <string>, <counter-style>? )"
|
|
178
184
|
},
|
|
179
185
|
"cross-fade()": {
|
|
180
186
|
"syntax": "cross-fade( <cf-mixing-image> , <cf-final-image>? )"
|
|
@@ -368,6 +374,9 @@
|
|
|
368
374
|
"keyframe-selector": {
|
|
369
375
|
"syntax": "from | to | <percentage>"
|
|
370
376
|
},
|
|
377
|
+
"layer()": {
|
|
378
|
+
"syntax": "layer( <layer-name> )"
|
|
379
|
+
},
|
|
371
380
|
"leader()": {
|
|
372
381
|
"syntax": "leader( <leader-type> )"
|
|
373
382
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdn-data",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.24",
|
|
4
4
|
"description": "Open Web data by the Mozilla Developer Network",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -28,12 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://developer.mozilla.org",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"ajv": "^
|
|
32
|
-
"better-ajv-errors": "^
|
|
31
|
+
"ajv": "^6.12.6",
|
|
32
|
+
"better-ajv-errors": "^1.1.2"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"lint": "node test/lint",
|
|
36
|
-
"travis": "npm test",
|
|
37
36
|
"test": "npm run lint"
|
|
38
37
|
}
|
|
39
38
|
}
|