mdn-data 2.0.30 → 2.0.32

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/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)
package/css/at-rules.json CHANGED
@@ -122,6 +122,43 @@
122
122
  "status": "nonstandard",
123
123
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@document"
124
124
  },
125
+ "@font-palette-values": {
126
+ "syntax": "@font-palette-values <dashed-ident> { <declaration-list> }",
127
+ "groups": [
128
+ "CSS Fonts"
129
+ ],
130
+ "descriptors": {
131
+ "base-palette": {
132
+ "syntax": "light | dark | <integer [0,∞]>",
133
+ "media": "all",
134
+ "initial": "n/a (required)",
135
+ "percentages": "no",
136
+ "computed": "asSpecified",
137
+ "order": "uniqueOrder",
138
+ "status": "standard"
139
+ },
140
+ "font-family": {
141
+ "syntax": "<family-name>#",
142
+ "media": "all",
143
+ "initial": "n/a (required)",
144
+ "percentages": "no",
145
+ "computed": "asSpecified",
146
+ "order": "orderOfAppearance",
147
+ "status": "standard"
148
+ },
149
+ "override-colors": {
150
+ "syntax": "[ <integer [0,∞]> <absolute-color-base> ]#",
151
+ "media": "all",
152
+ "initial": "n/a (required)",
153
+ "percentages": "no",
154
+ "computed": "asSpecified",
155
+ "order": "orderOfAppearance",
156
+ "status": "standard"
157
+ }
158
+ },
159
+ "status": "standard",
160
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@font-palette-values"
161
+ },
125
162
  "@font-face": {
126
163
  "syntax": "@font-face {\n [ font-family: <family-name>; ] ||\n [ src: <src>; ] ||\n [ unicode-range: <unicode-range>; ] ||\n [ font-variant: <font-variant>; ] ||\n [ font-feature-settings: <font-feature-settings>; ] ||\n [ font-variation-settings: <font-variation-settings>; ] ||\n [ font-stretch: <font-stretch>; ] ||\n [ font-weight: <font-weight>; ] ||\n [ font-style: <font-style>; ] ||\n [ size-adjust: <size-adjust>; ] ||\n [ ascent-override: <ascent-override>; ] ||\n [ descent-override: <descent-override>; ] ||\n [ line-gap-override: <line-gap-override>; ]\n}",
127
164
  "interfaces": [
@@ -361,6 +398,18 @@
361
398
  "order": "orderOfAppearance",
362
399
  "status": "standard"
363
400
  },
401
+ "page-orientation": {
402
+ "syntax": "upright | rotate-left | rotate-right ",
403
+ "media": [
404
+ "visual",
405
+ "paged"
406
+ ],
407
+ "initial": "upright",
408
+ "percentages": "no",
409
+ "computed": "asSpecified",
410
+ "order": "orderOfAppearance",
411
+ "status": "standard"
412
+ },
364
413
  "size": {
365
414
  "syntax": "<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",
366
415
  "media": [
@@ -58,6 +58,7 @@
58
58
  "CSS Types",
59
59
  "CSS Units",
60
60
  "CSS Variables",
61
+ "CSS View Transitions",
61
62
  "CSS Will Change",
62
63
  "CSS Writing Modes",
63
64
  "CSSOM View",