mdn-data 2.0.30 → 2.0.31

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.31](https://github.com/mdn/data/compare/v2.0.30...v2.0.31) (2023-02-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * scroll-timeline-axis and scroll-timeline-name are properties ([#631](https://github.com/mdn/data/issues/631)) ([7bb3805](https://github.com/mdn/data/commit/7bb3805b883fd75f79826bd5cd1582e1cc1bcc55))
9
+
3
10
  ## [2.0.30](https://github.com/mdn/data/compare/v2.0.29...v2.0.30) (2022-10-28)
4
11
 
5
12
 
package/README.md CHANGED
@@ -1,27 +1,22 @@
1
- # MDN data
1
+ # Welcome to MDN data
2
2
 
3
- > **Note:** We are in the process of deprecating the `mdn/data` package in favor of [`w3c/webref`](https://github.com/w3c/webref). If this could present a problem to your project, please contact us via our [GitHub discussions](https://github.com/mdn/mdn-community/discussions/categories/platform). Thank you.
4
-
5
- [https://github.com/mdn/data](https://github.com/mdn/data)
6
-
7
- Maintained by the [MDN team at Mozilla](https://wiki.mozilla.org/MDN).
8
-
9
- This repository contains general data for Web technologies.
10
-
11
- This data is used in MDN documentation, to build
12
- [information boxes](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
13
- or [sidebar navigation](https://developer.mozilla.org/en-US/docs/Web/API/Window).
14
- External tools have started to make use of this data as well.
15
- For example, the [CSSTree](https://github.com/csstree/csstree/) CSS parser.
3
+ > **Note**
4
+ > We are in the process of deprecating the `mdn/data` package in favor of [`w3c/webref`](https://github.com/w3c/webref).
5
+ > If you depend on this project, let us know in our community [GitHub discussions](https://github.com/mdn/mdn-community/discussions/categories/platform).
6
+ > Thank you.
16
7
 
17
8
  [![NPM version](https://img.shields.io/npm/v/mdn-data.svg)](https://www.npmjs.com/package/mdn-data)
18
9
  [![lint](https://github.com/mdn/data/actions/workflows/lint.yml/badge.svg)](https://github.com/mdn/data/actions/workflows/lint.yml)
19
10
 
11
+ This repository contains general data for Web technologies and is maintained by the [MDN team at Mozilla](https://wiki.mozilla.org/MDN).
12
+
20
13
  ## Repository contents
21
14
 
22
- There's a top-level directory for each broad area covered: for example, `api`
23
- and `css`. Inside each of these directories is one or more
24
- JSON files containing the data.
15
+ The data in this repository is used in MDN Web Docs to build [information boxes](https://developer.mozilla.org/en-US/docs/Web/CSS/background) and [sidebar navigation](https://developer.mozilla.org/en-US/docs/Web/API/Window).
16
+ External tools make use of this data as well, for example, the [CSSTree](https://github.com/csstree/csstree/) CSS parser.
17
+
18
+ There's a top-level directory for each broad area covered: for example, `api` and `css`.
19
+ Inside each of these directories is one or more JSON files containing the data.
25
20
 
26
21
  ### api
27
22
 
@@ -34,13 +29,14 @@ Contains data about Web APIs:
34
29
  Contains data about:
35
30
 
36
31
  - CSS at-rules
32
+ - CSS functions
37
33
  - CSS properties
38
34
  - CSS selectors
39
35
  - CSS syntaxes
40
36
  - CSS types
41
37
  - CSS units
42
38
 
43
- Read more about [CSS data](https://github.com/mdn/data/blob/master/css/readme.md) and the format of the files.
39
+ For more information, see the [CSS data](./css/README.md) documentation and the [Updating CSS JSON DB](./docs/updating_css_json.md) guide.
44
40
 
45
41
  ### l10n
46
42
 
@@ -53,8 +49,9 @@ If you find a problem, please [file an issue](https://github.com/mdn/data/issues
53
49
 
54
50
  ## Contributing
55
51
 
56
- We're very happy to accept contributions to this data. Please familiarize yourself
57
- with the schema for the data you're editing, and send us a pull request. See also the [Contributing file](https://github.com/mdn/data/blob/master/CONTRIBUTING.md) for more information.
52
+ We're very happy to accept contributions to this data.
53
+ Please familiarize yourself with the schema for the data you're editing, and send us a pull request.
54
+ See the [CONTRIBUTING.md](./CONTRIBUTING.md) document for more information.
58
55
 
59
56
  ## See also
60
57
 
package/css/README.md ADDED
@@ -0,0 +1,40 @@
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
+ ## How to update the CSS JSON DB
6
+
7
+ A guide to making changes is provided in the [How to update the CSS JSON DB](../docs/updating_css_json.md) document.
8
+
9
+ ## Different types of CSS data
10
+
11
+ The CSS data is split into these parts:
12
+
13
+ - **at-rules**:
14
+ [data](https://github.com/mdn/data/blob/main/css/at-rules.json) |
15
+ [schema](https://github.com/mdn/data/blob/main/css/at-rules.schema.json) |
16
+ [docs](https://github.com/mdn/data/blob/main/css/at-rules.md)
17
+ - **functions**:
18
+ [data](https://github.com/mdn/data/blob/main/css/functions.json) |
19
+ [schema](https://github.com/mdn/data/blob/main/css/functions.schema.json) |
20
+ [docs](https://github.com/mdn/data/blob/main/css/functions.md)
21
+ - **properties**:
22
+ [data](https://github.com/mdn/data/blob/main/css/properties.json) |
23
+ [schema](https://github.com/mdn/data/blob/main/css/properties.schema.json) |
24
+ [docs](https://github.com/mdn/data/blob/main/css/properties.md)
25
+ - **selectors**:
26
+ [data](https://github.com/mdn/data/blob/main/css/selectors.json) |
27
+ [schema](https://github.com/mdn/data/blob/main/css/selectors.schema.json) |
28
+ [docs](https://github.com/mdn/data/blob/main/css/selectors.md)
29
+ - **syntaxes**:
30
+ [data](https://github.com/mdn/data/blob/main/css/syntaxes.json) |
31
+ [schema](https://github.com/mdn/data/blob/main/css/syntaxes.schema.json) |
32
+ [docs](https://github.com/mdn/data/blob/main/css/syntaxes.md)
33
+ - **types**:
34
+ [data](https://github.com/mdn/data/blob/main/css/types.json) |
35
+ [schema](https://github.com/mdn/data/blob/main/css/types.schema.json) |
36
+ [docs](https://github.com/mdn/data/blob/main/css/types.md)
37
+ - **units**:
38
+ [data](https://github.com/mdn/data/blob/main/css/units.json) |
39
+ [schema](https://github.com/mdn/data/blob/main/css/units.schema.json) |
40
+ [docs](https://github.com/mdn/data/blob/main/css/units.md)
@@ -0,0 +1,537 @@
1
+ {
2
+ "attr()": {
3
+ "syntax": "attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )",
4
+ "groups": [
5
+ "CSS Generated Content"
6
+ ],
7
+ "status": "standard",
8
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/attr"
9
+ },
10
+ "blur()": {
11
+ "syntax": "blur( <length> )",
12
+ "groups": [
13
+ "Filter Effects"
14
+ ],
15
+ "status": "standard",
16
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/blur"
17
+ },
18
+ "brightness()": {
19
+ "syntax": "brightness( <number-percentage> )",
20
+ "groups": [
21
+ "Filter Effects"
22
+ ],
23
+ "status": "standard",
24
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/brightness"
25
+ },
26
+ "calc()": {
27
+ "syntax": "calc( <calc-sum> )",
28
+ "groups": [
29
+ "CSS Units",
30
+ "CSS Lengths"
31
+ ],
32
+ "status": "standard",
33
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/calc"
34
+ },
35
+ "circle()": {
36
+ "syntax": "circle( [ <shape-radius> ]? [ at <position> ]? )",
37
+ "groups": [
38
+ "CSS Shapes"
39
+ ],
40
+ "status": "standard",
41
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/circle"
42
+ },
43
+ "clamp()": {
44
+ "syntax": "clamp( <calc-sum>#{3} )",
45
+ "groups": [
46
+ "CSS Fonts"
47
+ ],
48
+ "status": "standard",
49
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/clamp"
50
+ },
51
+ "conic-gradient()": {
52
+ "syntax": "conic-gradient( [ from <angle> ]? [ at <position> ]?, <angular-color-stop-list> )",
53
+ "groups": [
54
+ "CSS Backgrounds and Borders",
55
+ "CSS Color"
56
+ ],
57
+ "status": "standard",
58
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/conic-gradient"
59
+ },
60
+ "contrast()": {
61
+ "syntax": "contrast( [ <number-percentage> ] )",
62
+ "groups": [
63
+ "Filter Effects",
64
+ "CSS Color"
65
+ ],
66
+ "status": "standard",
67
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/contrast"
68
+ },
69
+ "counter()": {
70
+ "syntax": "counter( <custom-ident>, <counter-style>? )",
71
+ "groups": [
72
+ "CSS Lists and Counters"
73
+ ],
74
+ "status": "standard",
75
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/counter"
76
+ },
77
+ "counters()": {
78
+ "syntax": "counters( <custom-ident>, <string>, <counter-style>? )",
79
+ "groups": [
80
+ "CSS Lists and Counters"
81
+ ],
82
+ "status": "standard",
83
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/counters"
84
+ },
85
+ "cross-fade()": {
86
+ "syntax": "cross-fade( <cf-mixing-image> , <cf-final-image>? )",
87
+ "groups": [
88
+ "Filter Effects",
89
+ "CSS Color"
90
+ ],
91
+ "status": "standard",
92
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/cross-fade"
93
+ },
94
+ "drop-shadow()": {
95
+ "syntax": "drop-shadow( <length>{2,3} <color>? )",
96
+ "groups": [
97
+ "Filter Effects",
98
+ "CSS Color"
99
+ ],
100
+ "status": "standard",
101
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/drop-shadow"
102
+ },
103
+ "element()": {
104
+ "syntax": "element( <id-selector> )",
105
+ "groups": [
106
+ "CSS Miscellaneous"
107
+ ],
108
+ "status": "standard",
109
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/element"
110
+ },
111
+ "ellipse()": {
112
+ "syntax": "ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )",
113
+ "groups": [
114
+ "CSS Shapes"
115
+ ],
116
+ "status": "standard",
117
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/ellipse"
118
+ },
119
+ "env()": {
120
+ "syntax": "env( <custom-ident> , <declaration-value>? )",
121
+ "groups": [
122
+ "CSS Box Model"
123
+ ],
124
+ "status": "standard",
125
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/env"
126
+ },
127
+ "fit-content()": {
128
+ "syntax": "fit-content( [ <length> | <percentage> ] )",
129
+ "groups": [
130
+ "CSS Box Model"
131
+ ],
132
+ "status": "standard",
133
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fit-content"
134
+ },
135
+ "grayscale()": {
136
+ "syntax": "grayscale( <number-percentage> )",
137
+ "groups": [
138
+ "Filter Effects",
139
+ "CSS Color"
140
+ ],
141
+ "status": "standard",
142
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/grayscale"
143
+ },
144
+ "hsl()": {
145
+ "syntax": "hsl( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsl( <hue>, <percentage>, <percentage>, <alpha-value>? )",
146
+ "groups": [
147
+ "CSS Color"
148
+ ],
149
+ "status": "standard",
150
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/hsl"
151
+ },
152
+ "hsla()": {
153
+ "syntax": "hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )",
154
+ "groups": [
155
+ "CSS Color"
156
+ ],
157
+ "status": "nonstandard",
158
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/hsla"
159
+ },
160
+ "hue-rotate()": {
161
+ "syntax": "hue-rotate( <angle> )",
162
+ "groups": [
163
+ "Filter Effects",
164
+ "CSS Color"
165
+ ],
166
+ "status": "standard",
167
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/hue-rotate"
168
+ },
169
+ "image()": {
170
+ "syntax": "image( <image-tags>? [ <image-src>? , <color>? ]! )",
171
+ "groups": [
172
+ "CSS Images"
173
+ ],
174
+ "status": "standard",
175
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/image/image"
176
+ },
177
+ "image-set()": {
178
+ "syntax": "image-set( <image-set-option># )",
179
+ "groups": [
180
+ "CSS Images"
181
+ ],
182
+ "status": "standard",
183
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/image/image-set"
184
+ },
185
+ "inset()": {
186
+ "syntax": "inset( <length-percentage>{1,4} [ round <'border-radius'> ]? )",
187
+ "groups": [
188
+ "CSS Shapes"
189
+ ],
190
+ "status": "standard",
191
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/inset"
192
+ },
193
+ "invert()": {
194
+ "syntax": "invert( <number-percentage> )",
195
+ "groups": [
196
+ "Filter Effects",
197
+ "CSS Color"
198
+ ],
199
+ "status": "standard",
200
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/invert"
201
+ },
202
+ "leader()": {
203
+ "syntax": "leader( <leader-type> )",
204
+ "groups": [
205
+ "CSS Miscellaneous"
206
+ ],
207
+ "status": "nonstandard"
208
+ },
209
+ "linear-gradient()": {
210
+ "syntax": "linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )",
211
+ "groups": [
212
+ "CSS Backgrounds and Borders",
213
+ "CSS Color"
214
+ ],
215
+ "status": "standard",
216
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/linear-gradient"
217
+ },
218
+ "matrix()": {
219
+ "syntax": "matrix( <number>#{6} )",
220
+ "groups": [
221
+ "CSS Transforms"
222
+ ],
223
+ "status": "standard",
224
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/matrix"
225
+ },
226
+ "matrix3d()": {
227
+ "syntax": "matrix3d( <number>#{16} )",
228
+ "groups": [
229
+ "CSS Transforms"
230
+ ],
231
+ "status": "standard",
232
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/matrix3d"
233
+ },
234
+ "max()": {
235
+ "syntax": "max( <calc-sum># )",
236
+ "groups": [
237
+ "CSS Units",
238
+ "CSS Lengths"
239
+ ],
240
+ "status": "standard",
241
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/max"
242
+ },
243
+ "min()": {
244
+ "syntax": "min( <calc-sum># )",
245
+ "groups": [
246
+ "CSS Units",
247
+ "CSS Lengths"
248
+ ],
249
+ "status": "standard",
250
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/min"
251
+ },
252
+ "minmax()": {
253
+ "syntax": "minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )",
254
+ "groups": [
255
+ "CSS Units",
256
+ "CSS Lengths"
257
+ ],
258
+ "status": "standard",
259
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/minmax"
260
+ },
261
+ "opacity()": {
262
+ "syntax": "opacity( [ <number-percentage> ] )",
263
+ "groups": [
264
+ "Filter Effects",
265
+ "CSS Color"
266
+ ],
267
+ "status": "standard",
268
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/opacity"
269
+ },
270
+ "path()": {
271
+ "syntax": "path( [ <fill-rule>, ]? <string> )",
272
+ "groups": [
273
+ "CSS Shapes",
274
+ "CSS Motion Path"
275
+ ],
276
+ "status": "standard",
277
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/path"
278
+ },
279
+ "paint()": {
280
+ "syntax": "paint( <ident>, <declaration-value>? )",
281
+ "groups": [
282
+ "CSS Backgrounds and Borders"
283
+ ],
284
+ "status": "standard",
285
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/image/paint"
286
+ },
287
+ "perspective()": {
288
+ "syntax": "perspective( <length> )",
289
+ "groups": [
290
+ "CSS Transforms"
291
+ ],
292
+ "status": "standard",
293
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/perspective"
294
+ },
295
+ "polygon()": {
296
+ "syntax": "polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )",
297
+ "groups": [
298
+ "CSS Shapes"
299
+ ],
300
+ "status": "standard",
301
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/polygon"
302
+ },
303
+ "radial-gradient()": {
304
+ "syntax": "radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )",
305
+ "groups": [
306
+ "CSS Backgrounds and Borders",
307
+ "CSS Color"
308
+ ],
309
+ "status": "standard",
310
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/radial-gradient"
311
+ },
312
+ "repeating-linear-gradient()": {
313
+ "syntax": "repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )",
314
+ "groups": [
315
+ "CSS Backgrounds and Borders",
316
+ "CSS Color"
317
+ ],
318
+ "status": "standard",
319
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/repeating-linear-gradient"
320
+ },
321
+ "repeating-radial-gradient()": {
322
+ "syntax": "repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )",
323
+ "groups": [
324
+ "CSS Backgrounds and Borders",
325
+ "CSS Color"
326
+ ],
327
+ "status": "standard",
328
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-linear-gradient"
329
+ },
330
+ "rgb()": {
331
+ "syntax": "rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )",
332
+ "groups": [
333
+ "CSS Color"
334
+ ],
335
+ "status": "standard",
336
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/rgb"
337
+ },
338
+ "rgba()": {
339
+ "syntax": "rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )",
340
+ "groups": [
341
+ "CSS Color"
342
+ ],
343
+ "status": "nonstandard",
344
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/rgba"
345
+ },
346
+ "rotate()": {
347
+ "syntax": "rotate( [ <angle> | <zero> ] )",
348
+ "groups": [
349
+ "CSS Transforms"
350
+ ],
351
+ "status": "standard",
352
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotate"
353
+ },
354
+ "rotate3d()": {
355
+ "syntax": "rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )",
356
+ "groups": [
357
+ "CSS Transforms"
358
+ ],
359
+ "status": "standard",
360
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotate3d"
361
+ },
362
+ "rotateX()": {
363
+ "syntax": "rotateX( [ <angle> | <zero> ] )",
364
+ "groups": [
365
+ "CSS Transforms"
366
+ ],
367
+ "status": "standard",
368
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotateX"
369
+ },
370
+ "rotateY()": {
371
+ "syntax": "rotateY( [ <angle> | <zero> ] )",
372
+ "groups": [
373
+ "CSS Transforms"
374
+ ],
375
+ "status": "standard",
376
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotateY"
377
+ },
378
+ "rotateZ()": {
379
+ "syntax": "rotateZ( [ <angle> | <zero> ] )",
380
+ "groups": [
381
+ "CSS Transforms"
382
+ ],
383
+ "status": "standard",
384
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotateZ"
385
+ },
386
+ "saturate()": {
387
+ "syntax": "saturate( <number-percentage> )",
388
+ "groups": [
389
+ "Filter Effects",
390
+ "CSS Color"
391
+ ],
392
+ "status": "standard",
393
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/saturate"
394
+ },
395
+ "scale()": {
396
+ "syntax": "scale( <number> , <number>? )",
397
+ "groups": [
398
+ "CSS Transforms"
399
+ ],
400
+ "status": "standard",
401
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scale"
402
+ },
403
+ "scale3d()": {
404
+ "syntax": "scale3d( <number> , <number> , <number> )",
405
+ "groups": [
406
+ "CSS Transforms"
407
+ ],
408
+ "status": "standard",
409
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scale3d"
410
+ },
411
+ "scaleX()": {
412
+ "syntax": "scaleX( <number> )",
413
+ "groups": [
414
+ "CSS Transforms"
415
+ ],
416
+ "status": "standard",
417
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scaleX"
418
+ },
419
+ "scaleY()": {
420
+ "syntax": "scaleY( <number> )",
421
+ "groups": [
422
+ "CSS Transforms"
423
+ ],
424
+ "status": "standard",
425
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scaleY"
426
+ },
427
+ "scaleZ()": {
428
+ "syntax": "scaleZ( <number> )",
429
+ "groups": [
430
+ "CSS Transforms"
431
+ ],
432
+ "status": "standard",
433
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scaleZ"
434
+ },
435
+ "skew()": {
436
+ "syntax": "skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )",
437
+ "groups": [
438
+ "CSS Transforms"
439
+ ],
440
+ "status": "standard",
441
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/skew"
442
+ },
443
+ "skewX()": {
444
+ "syntax": "skewX( [ <angle> | <zero> ] )",
445
+ "groups": [
446
+ "CSS Transforms"
447
+ ],
448
+ "status": "standard",
449
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/skewX"
450
+ },
451
+ "skewY()": {
452
+ "syntax": "skewY( [ <angle> | <zero> ] )",
453
+ "groups": [
454
+ "CSS Transforms"
455
+ ],
456
+ "status": "standard",
457
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/skewY"
458
+ },
459
+ "sepia()": {
460
+ "syntax": "sepia( <number-percentage> )",
461
+ "groups": [
462
+ "Filter Effects",
463
+ "CSS Color"
464
+ ],
465
+ "status": "standard",
466
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/sepia"
467
+ },
468
+ "target-counter()": {
469
+ "syntax": "target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )",
470
+ "groups": [
471
+ "CSS Lists and Counters"
472
+ ],
473
+ "status": "nonstandard"
474
+ },
475
+ "target-counters()": {
476
+ "syntax": "target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )",
477
+ "groups": [
478
+ "CSS Lists and Counters"
479
+ ],
480
+ "status": "nonstandard"
481
+ },
482
+ "target-text()": {
483
+ "syntax": "target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )",
484
+ "groups": [
485
+ "CSS Miscellaneous"
486
+ ],
487
+ "status": "nonstandard"
488
+ },
489
+ "translate()": {
490
+ "syntax": "translate( <length-percentage> , <length-percentage>? )",
491
+ "groups": [
492
+ "CSS Transforms"
493
+ ],
494
+ "status": "standard",
495
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translate"
496
+ },
497
+ "translate3d()": {
498
+ "syntax": "translate3d( <length-percentage> , <length-percentage> , <length> )",
499
+ "groups": [
500
+ "CSS Transforms"
501
+ ],
502
+ "status": "standard",
503
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translate3d"
504
+ },
505
+ "translateX()": {
506
+ "syntax": "translateX( <length-percentage> )",
507
+ "groups": [
508
+ "CSS Transforms"
509
+ ],
510
+ "status": "standard",
511
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translateX"
512
+ },
513
+ "translateY()": {
514
+ "syntax": "translateY( <length-percentage> )",
515
+ "groups": [
516
+ "CSS Transforms"
517
+ ],
518
+ "status": "standard",
519
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translateY"
520
+ },
521
+ "translateZ()": {
522
+ "syntax": "translateZ( <length> )",
523
+ "groups": [
524
+ "CSS Transforms"
525
+ ],
526
+ "status": "standard",
527
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/translateZ"
528
+ },
529
+ "var()": {
530
+ "syntax": "var( <custom-property-name> , <declaration-value>? )",
531
+ "groups": [
532
+ "CSS Miscellaneous"
533
+ ],
534
+ "status": "standard",
535
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/var"
536
+ }
537
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "definitions": {
3
+ "status": {
4
+ "enum": [
5
+ "standard",
6
+ "nonstandard",
7
+ "experimental",
8
+ "obsolete"
9
+ ]
10
+ },
11
+ "mdn_url": {
12
+ "type": "string",
13
+ "pattern": "^https://developer.mozilla.org/docs/"
14
+ }
15
+ },
16
+ "type": "object",
17
+ "additionalProperties": {
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "required": [
21
+ "syntax",
22
+ "groups",
23
+ "status"
24
+ ],
25
+ "properties": {
26
+ "syntax": {
27
+ "type": "string"
28
+ },
29
+ "groups": {
30
+ "type": "array",
31
+ "minitems": 1,
32
+ "uniqueItems": true,
33
+ "items": {
34
+ "$ref": "definitions.json#/groupList"
35
+ }
36
+ },
37
+ "status": {
38
+ "$ref": "#/definitions/status"
39
+ },
40
+ "mdn_url": {
41
+ "$ref": "#/definitions/mdn_url"
42
+ }
43
+ }
44
+ }
45
+ }
package/css/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  module.exports = {
2
2
  atRules: require('./at-rules'),
3
+ functions: require('./functions'),
3
4
  selectors: require('./selectors'),
4
5
  types: require('./types'),
5
6
  properties: require('./properties'),
@@ -2264,7 +2264,7 @@
2264
2264
  "media": "visual",
2265
2265
  "inherited": false,
2266
2266
  "animationType": "discrete",
2267
- "percentages": "referToWidthOfBackgroundPositioningAreaMinusBackgroundImageHeight",
2267
+ "percentages": "referToWidthOfBackgroundPositioningAreaMinusBackgroundImageWidth",
2268
2268
  "groups": [
2269
2269
  "CSS Backgrounds and Borders"
2270
2270
  ],
@@ -2405,15 +2405,15 @@
2405
2405
  "CSS Logical Properties"
2406
2406
  ],
2407
2407
  "initial": [
2408
- "border-top-width",
2409
- "border-top-style",
2410
- "border-top-color"
2408
+ "border-block-width",
2409
+ "border-block-style",
2410
+ "border-block-color"
2411
2411
  ],
2412
2412
  "appliesto": "allElements",
2413
2413
  "computed": [
2414
- "border-top-width",
2415
- "border-top-style",
2416
- "border-top-color"
2414
+ "border-block-width",
2415
+ "border-block-style",
2416
+ "border-block-color"
2417
2417
  ],
2418
2418
  "order": "uniqueOrder",
2419
2419
  "status": "standard",
@@ -2972,15 +2972,15 @@
2972
2972
  "CSS Logical Properties"
2973
2973
  ],
2974
2974
  "initial": [
2975
- "border-top-width",
2976
- "border-top-style",
2977
- "border-top-color"
2975
+ "border-inline-width",
2976
+ "border-inline-style",
2977
+ "border-inline-color"
2978
2978
  ],
2979
2979
  "appliesto": "allElements",
2980
2980
  "computed": [
2981
- "border-top-width",
2982
- "border-top-style",
2983
- "border-top-color"
2981
+ "border-inline-width",
2982
+ "border-inline-style",
2983
+ "border-inline-color"
2984
2984
  ],
2985
2985
  "order": "uniqueOrder",
2986
2986
  "status": "standard",
@@ -5566,6 +5566,22 @@
5566
5566
  "status": "standard",
5567
5567
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/hyphenate-character"
5568
5568
  },
5569
+ "hyphenate-limit-chars": {
5570
+ "syntax": "[ auto | <integer> ]{1,3}",
5571
+ "media": "visual",
5572
+ "inherited": true,
5573
+ "animationType": "discrete",
5574
+ "percentages": "no",
5575
+ "groups": [
5576
+ "CSS Text"
5577
+ ],
5578
+ "initial": "auto",
5579
+ "appliesto": "allElements",
5580
+ "computed": "asSpecified",
5581
+ "order": "perGrammar",
5582
+ "status": "standard",
5583
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/hyphenate-limit-chars"
5584
+ },
5569
5585
  "hyphens": {
5570
5586
  "syntax": "none | manual | auto",
5571
5587
  "media": "visual",
@@ -8594,7 +8610,7 @@
8594
8610
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y"
8595
8611
  },
8596
8612
  "scroll-timeline": {
8597
- "syntax": "<scroll-timeline-name> || <scroll-timeline-axis>",
8613
+ "syntax": "<'scroll-timeline-name'> || <'scroll-timeline-axis'>",
8598
8614
  "media": "visual",
8599
8615
  "inherited": false,
8600
8616
  "animationType": [
@@ -8619,7 +8635,7 @@
8619
8635
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/scroll-timeline"
8620
8636
  },
8621
8637
  "scroll-timeline-axis": {
8622
- "syntax": "block | inline | vertical | horizontal",
8638
+ "syntax": "[ block | inline | vertical | horizontal ]#",
8623
8639
  "media": "interactive",
8624
8640
  "inherited": false,
8625
8641
  "animationType": "notAnimatable",
@@ -8635,7 +8651,7 @@
8635
8651
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/scroll-timeline-axis"
8636
8652
  },
8637
8653
  "scroll-timeline-name": {
8638
- "syntax": "none | <custom-ident>",
8654
+ "syntax": "none | <custom-ident>#",
8639
8655
  "media": "interactive",
8640
8656
  "inherited": false,
8641
8657
  "animationType": "notAnimatable",
@@ -74,7 +74,7 @@
74
74
  "referToTotalPathLength",
75
75
  "referToWidthAndHeightOfElement",
76
76
  "referToWidthOfAffectedGlyph",
77
- "referToWidthOfBackgroundPositioningAreaMinusBackgroundImageHeight",
77
+ "referToWidthOfBackgroundPositioningAreaMinusBackgroundImageWidth",
78
78
  "referToWidthOfContainingBlock",
79
79
  "referToWidthOrHeightOfBorderImageArea",
80
80
  "referToReferenceBoxWhenSpecifiedOtherwiseBorderBox",
package/l10n/css.json CHANGED
@@ -1354,10 +1354,10 @@
1354
1354
  "ja": "作用する文字の幅に対する相対値",
1355
1355
  "ru": "зависит от ширины символа"
1356
1356
  },
1357
- "referToWidthOfBackgroundPositioningAreaMinusBackgroundImageHeight": {
1357
+ "referToWidthOfBackgroundPositioningAreaMinusBackgroundImageWidth": {
1358
1358
  "de": "bezieht sich auf die Breite des Hintergrundpositionsbereichs abzüglich der Höhe des Hintergrundbilds",
1359
- "en-US": "refer to width of background positioning area minus height of background image",
1360
- "fr": "fait référence à la largeur de la zone de positionement de l'arrière-plan moins la hauteur de l'image d'arrière-plan",
1359
+ "en-US": "refer to width of background positioning area minus width of background image",
1360
+ "fr": "fait référence à la largeur de la zone de positionement de l'arrière-plan moins la largeur de l'image d'arrière-plan",
1361
1361
  "ja": "背景配置領域の幅から背景画像の高さを引いたものに対する相対値",
1362
1362
  "ru": "относятся к ширине области позиционирования фона минус высота фонового изображения"
1363
1363
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdn-data",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "description": "Open Web data by the Mozilla Developer Network",
5
5
  "main": "index.js",
6
6
  "files": [
package/css/readme.md DELETED
@@ -1,32 +0,0 @@
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)