mdn-data 2.0.19 → 2.0.23

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
@@ -14,12 +14,12 @@ 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
 
21
- There's a top-level directory for each broad area covered: for example, "api",
22
- "css", "svg". Inside each of these directories is one or more
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
@@ -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",
@@ -1687,6 +1687,22 @@
1687
1687
  "order": "uniqueOrder",
1688
1688
  "status": "nonstandard"
1689
1689
  },
1690
+ "accent-color": {
1691
+ "syntax": "auto | <color>",
1692
+ "media": "interactive",
1693
+ "inherited": true,
1694
+ "animationType": "byComputedValueType",
1695
+ "percentages": "no",
1696
+ "groups": [
1697
+ "CSS Basic User Interface"
1698
+ ],
1699
+ "initial": "auto",
1700
+ "appliesto": "allElements",
1701
+ "computed": "asAutoOrColor",
1702
+ "order": "perGrammar",
1703
+ "status": "standard",
1704
+ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/accent-color"
1705
+ },
1690
1706
  "align-content": {
1691
1707
  "syntax": "normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",
1692
1708
  "media": "visual",
@@ -4289,7 +4305,7 @@
4289
4305
  "syntax": "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",
4290
4306
  "media": "all",
4291
4307
  "inherited": false,
4292
- "animationType": "discrete",
4308
+ "animationType": "notAnimatable",
4293
4309
  "percentages": "no",
4294
4310
  "groups": [
4295
4311
  "CSS Display"
@@ -4675,7 +4691,7 @@
4675
4691
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-size"
4676
4692
  },
4677
4693
  "font-size-adjust": {
4678
- "syntax": "none | <number>",
4694
+ "syntax": "none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]",
4679
4695
  "media": "visual",
4680
4696
  "inherited": true,
4681
4697
  "animationType": "number",
@@ -4754,7 +4770,7 @@
4754
4770
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-style"
4755
4771
  },
4756
4772
  "font-synthesis": {
4757
- "syntax": "none | [ weight || style ]",
4773
+ "syntax": "none | [ weight || style || small-caps ]",
4758
4774
  "media": "visual",
4759
4775
  "inherited": true,
4760
4776
  "animationType": "discrete",
@@ -7697,7 +7713,7 @@
7697
7713
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/scale"
7698
7714
  },
7699
7715
  "scrollbar-color": {
7700
- "syntax": "auto | dark | light | <color>{2}",
7716
+ "syntax": "auto | <color>{2}",
7701
7717
  "media": "visual",
7702
7718
  "inherited": true,
7703
7719
  "animationType": "color",
@@ -7713,7 +7729,7 @@
7713
7729
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"
7714
7730
  },
7715
7731
  "scrollbar-gutter": {
7716
- "syntax": "auto | [ stable | always ] && both? && force?",
7732
+ "syntax": "auto | stable && both-edges?",
7717
7733
  "media": "visual",
7718
7734
  "inherited": false,
7719
7735
  "animationType": "discrete",
@@ -7722,7 +7738,7 @@
7722
7738
  "CSS Overflow"
7723
7739
  ],
7724
7740
  "initial": "auto",
7725
- "appliesto": "allElements",
7741
+ "appliesto": "scrollingBoxes",
7726
7742
  "computed": "asSpecified",
7727
7743
  "order": "perGrammar",
7728
7744
  "status": "standard",
@@ -9144,7 +9160,7 @@
9144
9160
  "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/word-break"
9145
9161
  },
9146
9162
  "word-spacing": {
9147
- "syntax": "normal | <length-percentage>",
9163
+ "syntax": "normal | <length>",
9148
9164
  "media": "visual",
9149
9165
  "inherited": true,
9150
9166
  "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)
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdn-data",
3
- "version": "2.0.19",
3
+ "version": "2.0.23",
4
4
  "description": "Open Web data by the Mozilla Developer Network",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -33,7 +33,6 @@
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
  }