mdn-data 2.0.21 → 2.0.25

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 ADDED
@@ -0,0 +1,29 @@
1
+ # Changelog
2
+
3
+ ### [2.0.25](https://www.github.com/mdn/data/compare/v2.0.24...v2.0.25) (2021-12-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * change branch reference to main ([a473261](https://www.github.com/mdn/data/commit/a473261308cf82ee387cec886c70ef3d570fc957))
9
+ * remove old clashing workflow ([af9a18c](https://www.github.com/mdn/data/commit/af9a18ce3af2cbca83582debf3c3d3fc0ace7402))
10
+
11
+
12
+ ### Miscellaneous Chores
13
+
14
+ * release 2.0.25 ([db5a54b](https://www.github.com/mdn/data/commit/db5a54ba4f3c28b52d0801e115fd5ff0a0052743))
15
+ * release 2.0.25 ([0f453ee](https://www.github.com/mdn/data/commit/0f453eedadbd9065d552203260210bdfafa9d7ff))
16
+
17
+ ### [2.0.24](https://www.github.com/mdn/data/compare/v2.0.24...v2.0.24) (2021-12-17)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * release 2.0.24 ([4d00c38](https://www.github.com/mdn/data/commit/4d00c386efe1cfbf536bb3bc80fed6d687f9ad04))
23
+
24
+ ### [2.0.24](https://www.github.com/mdn/data/compare/v2.0.23...v2.0.24) (2021-12-15)
25
+
26
+
27
+ ### Miscellaneous Chores
28
+
29
+ * release 2.0.24 ([abff6ff](https://www.github.com/mdn/data/commit/abff6ff0fb88e834c65a2cc05f346b105a9b2e99))
package/README.md CHANGED
@@ -14,7 +14,7 @@ For example, the [CSSTree](https://github.com/csstree/csstree/) CSS parser.
14
14
 
15
15
 
16
16
  [![NPM version](https://img.shields.io/npm/v/mdn-data.svg)](https://www.npmjs.com/package/mdn-data)
17
- [![Build Status](https://api.travis-ci.com/mdn/data.svg?branch=master)](https://travis-ci.com/mdn/data)
17
+ [![lint](https://github.com/mdn/data/actions/workflows/lint.yml/badge.svg)](https://github.com/mdn/data/actions/workflows/lint.yml)
18
18
 
19
19
  ## Repository contents
20
20
 
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": [
@@ -405,6 +418,17 @@
405
418
  "status": "experimental",
406
419
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property"
407
420
  },
421
+ "@scroll-timeline": {
422
+ "syntax": "@scroll-timeline <timeline-name> { <declaration-list> }",
423
+ "interfaces": [
424
+ "ScrollTimeline"
425
+ ],
426
+ "groups": [
427
+ "CSS Animations"
428
+ ],
429
+ "status": "standard",
430
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@scroll-timeline"
431
+ },
408
432
  "@supports": {
409
433
  "syntax": "@supports <supports-condition> {\n <group-rule-body>\n}",
410
434
  "interfaces": [
@@ -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",
@@ -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": "<integer [0,1]>",
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": false,
1573
+ "inherited": true,
1574
1574
  "animationType": "discrete",
1575
1575
  "percentages": "no",
1576
1576
  "groups": [
@@ -3940,15 +3940,15 @@
3940
3940
  "syntax": "<color>",
3941
3941
  "media": "visual",
3942
3942
  "inherited": true,
3943
- "animationType": "color",
3943
+ "animationType": "byComputedValueType",
3944
3944
  "percentages": "no",
3945
3945
  "groups": [
3946
3946
  "CSS Color"
3947
3947
  ],
3948
- "initial": "variesFromBrowserToBrowser",
3949
- "appliesto": "allElements",
3950
- "computed": "translucentValuesRGBAOtherwiseRGB",
3951
- "order": "uniqueOrder",
3948
+ "initial": "canvastext",
3949
+ "appliesto": "allElementsAndText",
3950
+ "computed": "computedColor",
3951
+ "order": "perGrammar",
3952
3952
  "alsoAppliesTo": [
3953
3953
  "::first-letter",
3954
3954
  "::first-line",
@@ -3974,7 +3974,7 @@
3974
3974
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color-adjust"
3975
3975
  },
3976
3976
  "color-scheme": {
3977
- "syntax": "normal | [ light | dark | <custom-ident> ]+",
3977
+ "syntax": "normal | [ light | dark | <custom-ident> ]+ && only?",
3978
3978
  "media": "visual",
3979
3979
  "inherited": true,
3980
3980
  "animationType": "discrete",
@@ -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": "[ <custom-ident> <integer>? ]+ | none",
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": "[ <custom-ident> <integer>? ]+ | none",
4238
+ "syntax": "[ <counter-name> <integer>? | <reversed-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": "[ <custom-ident> <integer>? ]+ | none",
4254
+ "syntax": "[ <counter-name> <integer>? ]+ | none",
4255
4255
  "media": "all",
4256
4256
  "inherited": false,
4257
4257
  "animationType": "discrete",
@@ -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",
@@ -6782,15 +6797,15 @@
6782
6797
  "syntax": "<alpha-value>",
6783
6798
  "media": "visual",
6784
6799
  "inherited": false,
6785
- "animationType": "number",
6786
- "percentages": "no",
6800
+ "animationType": "byComputedValueType",
6801
+ "percentages": "mapToRange0To1",
6787
6802
  "groups": [
6788
6803
  "CSS Color"
6789
6804
  ],
6790
- "initial": "1.0",
6805
+ "initial": "1",
6791
6806
  "appliesto": "allElements",
6792
- "computed": "specifiedValueClipped0To1",
6793
- "order": "uniqueOrder",
6807
+ "computed": "specifiedValueNumberClipped0To1",
6808
+ "order": "perGrammar",
6794
6809
  "alsoAppliesTo": [
6795
6810
  "::placeholder"
6796
6811
  ],
@@ -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-percentage>",
9178
+ "syntax": "normal | <length>",
9164
9179
  "media": "visual",
9165
9180
  "inherited": true,
9166
9181
  "animationType": "length",
@@ -49,6 +49,7 @@
49
49
  "logicalHeightOfContainingBlock",
50
50
  "logicalWidthOfContainingBlock",
51
51
  "logicalHeightOrWidthOfContainingBlock",
52
+ "mapToRange0To1",
52
53
  "maxZoomFactor",
53
54
  "minZoomFactor",
54
55
  "no",
@@ -236,6 +237,7 @@
236
237
  "sameAsWidthAndHeight",
237
238
  "scrollContainers",
238
239
  "scrollingBoxes",
240
+ "sensitiveTextInputs",
239
241
  "tableCaptionElements",
240
242
  "tableCellElements",
241
243
  "tableElements",
@@ -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-list> )",
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-list> )",
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-list> )",
1027
+ "syntax": "::slotted( <compound-selector> )",
1028
1028
  "groups": [
1029
1029
  "Pseudo-elements",
1030
1030
  "Selectors"
package/css/syntaxes.json CHANGED
@@ -102,7 +102,7 @@
102
102
  "syntax": "<url>"
103
103
  },
104
104
  "color": {
105
- "syntax": "<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"
105
+ "syntax": "<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"
106
106
  },
107
107
  "color-stop": {
108
108
  "syntax": "<color-stop-length> | <color-stop-angle>"
@@ -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( <custom-ident>, <counter-style>? )"
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( <custom-ident>, <string>, <counter-style>? )"
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>? )"
@@ -326,6 +332,9 @@
326
332
  "hue-rotate()": {
327
333
  "syntax": "hue-rotate( <angle> )"
328
334
  },
335
+ "hwb()": {
336
+ "syntax": "hwb( [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
337
+ },
329
338
  "id-selector": {
330
339
  "syntax": "<hash-token>"
331
340
  },
@@ -368,6 +377,9 @@
368
377
  "keyframe-selector": {
369
378
  "syntax": "from | to | <percentage>"
370
379
  },
380
+ "layer()": {
381
+ "syntax": "layer( <layer-name> )"
382
+ },
371
383
  "leader()": {
372
384
  "syntax": "leader( <leader-type> )"
373
385
  },
package/l10n/css.json CHANGED
@@ -970,6 +970,9 @@
970
970
  "ja": "両方の値が length の場合は、length 値として補完されます。両方の値がパーセント値の場合は、パーセント値として補完されます。それ以外の場合は、両方の値が calc() 関数にコンバートされ、length とパーセント値の合計になります (または各値が 0)。そして、これらの <code>calc()</code> 関数は、それぞれ半分ずつ補完された実数を持ちます",
971
971
  "ru": " когда оба значения являются длинами, они интерполируются как длины; когда оба значения являются процентами, они интерполируются как проценты; в остальных случаях, оба значения преобразуются функцией <code>calc()</code> в сумму длины и процента (каждый из них может быть равен нулю), а затем эта функция интерполирует каждую половину как вещественные числа."
972
972
  },
973
+ "mapToRange0To1": {
974
+ "en-US": "map to the range <code>[0,1]</code>"
975
+ },
973
976
  "maskElements": {
974
977
  "de": "{{SVGElement(\"mask\")}} Elemente",
975
978
  "en-US": "{{SVGElement(\"mask\")}} elements",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdn-data",
3
- "version": "2.0.21",
3
+ "version": "2.0.25",
4
4
  "description": "Open Web data by the Mozilla Developer Network",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "homepage": "https://developer.mozilla.org",
30
30
  "devDependencies": {
31
- "ajv": "^5.0.1",
32
- "better-ajv-errors": "^0.5.1"
31
+ "ajv": "^6.12.6",
32
+ "better-ajv-errors": "^1.1.2"
33
33
  },
34
34
  "scripts": {
35
35
  "lint": "node test/lint",