@webref/css 2.0.9 → 2.1.0

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.
@@ -0,0 +1,13 @@
1
+ {
2
+ "spec": {
3
+ "title": "CSS Cascading and Inheritance Level 6",
4
+ "url": "https://drafts.csswg.org/css-cascade-6/"
5
+ },
6
+ "properties": {},
7
+ "descriptors": {},
8
+ "valuespaces": {
9
+ "<selector-scope>": {
10
+ "value": "( <scope-start> [/ <scope-end>]? )"
11
+ }
12
+ }
13
+ }
package/css-color.json CHANGED
@@ -61,28 +61,34 @@
61
61
  },
62
62
  "valuespaces": {
63
63
  "<color>": {
64
- "value": "<hex-color> | <named-color> | currentcolor | transparent | <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <color()> | <device-cmyk()> | <system-color>"
64
+ "value": "<absolute-color-base> | currentcolor | <system-color> | <device-cmyk()>"
65
+ },
66
+ "<absolute-color>": {
67
+ "value": "<absolute-color-base> | <absolute-device-cmyk>"
68
+ },
69
+ "<absolute-color-base>": {
70
+ "value": "<hex-color> | <named-color> | transparent | <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <color()>"
65
71
  },
66
72
  "<hue>": {
67
73
  "value": "<number> | <angle>"
68
74
  },
69
75
  "<rgb()>": {
70
- "value": "rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? )"
76
+ "value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? )"
71
77
  },
72
78
  "<alpha-value>": {
73
79
  "value": "<number> | <percentage>"
74
80
  },
75
81
  "<hsl()>": {
76
- "value": "hsl( <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
82
+ "value": "hsl( [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
77
83
  },
78
84
  "<hwb()>": {
79
- "value": "hwb( <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
85
+ "value": "hwb( [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
80
86
  },
81
87
  "<lab()>": {
82
- "value": "lab( <percentage> <number> <number> [ / <alpha-value> ]? )"
88
+ "value": "lab( [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
83
89
  },
84
90
  "<lch()>": {
85
- "value": "lch( <percentage> <number> <hue> [ / <alpha-value> ]? )"
91
+ "value": "lch( [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
86
92
  },
87
93
  "<color()>": {
88
94
  "value": "color( [<ident> | <dashed-ident>] [ <number-percentage>+ ] [ / <alpha-value> ]? )"
@@ -90,6 +96,9 @@
90
96
  "<device-cmyk()>": {
91
97
  "value": "device-cmyk( <cmyk-component>{4} [ / <alpha-value> ]? , <color>? )"
92
98
  },
99
+ "<absolute-device-cmyk>": {
100
+ "value": "device-cmyk( <cmyk-component>{4} [ / <alpha-value> ]? , <absolute-color>? )"
101
+ },
93
102
  "<cmyk-component>": {
94
103
  "value": "<number> | <percentage>"
95
104
  }
@@ -7,10 +7,22 @@
7
7
  "descriptors": {},
8
8
  "valuespaces": {
9
9
  "<supports-feature>": {
10
- "value": "<supports-selector-fn> | <supports-decl>"
10
+ "value": "<supports-selector-fn> | <supports-font-technology-fn> | <supports-decl>"
11
11
  },
12
12
  "<supports-selector-fn>": {
13
13
  "value": "selector( <complex-selector> )"
14
+ },
15
+ "<supports-font-technology-fn>": {
16
+ "value": "font-technology ( <font-technology> )"
17
+ },
18
+ "<font-technology>": {
19
+ "value": "[ features-opentype | features-aat | features-graphite | color-colrv0 | color-colrv1 | color-svg | color-sbix | color-cbdt | variations | palettes | incremental ]"
20
+ },
21
+ "<media()>": {
22
+ "value": "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"
23
+ },
24
+ "<supports()>": {
25
+ "value": "supports( <declaration> )"
14
26
  }
15
27
  }
16
28
  }
package/css-env.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "descriptors": {},
8
8
  "valuespaces": {
9
9
  "<env()>": {
10
- "value": "env( <custom-ident> , <declaration-value>? )"
10
+ "value": "env( <custom-ident> <integer [0,∞]>*, <declaration-value>? )"
11
11
  }
12
12
  }
13
13
  }
package/css-fonts.json CHANGED
@@ -352,7 +352,7 @@
352
352
  },
353
353
  "font-palette": {
354
354
  "name": "font-palette",
355
- "value": "none | normal | light | dark | <palette-identifier>",
355
+ "value": "normal | light | dark | <palette-identifier>",
356
356
  "initial": "normal",
357
357
  "appliesTo": "all elements and text",
358
358
  "inherited": "yes",
@@ -408,7 +408,7 @@
408
408
  {
409
409
  "name": "font-style",
410
410
  "for": "@font-face",
411
- "value": "auto | normal | italic | oblique [ <angle> | <angle>{1,2} ]?",
411
+ "value": "auto | normal | italic | oblique [ <angle>{1,2} ]?",
412
412
  "initial": "auto"
413
413
  }
414
414
  ],
@@ -510,15 +510,15 @@
510
510
  {
511
511
  "name": "base-palette",
512
512
  "for": "@font-palette-values",
513
- "value": "<integer> | <string>",
513
+ "value": "light | dark | <integer [0,∞]> | <string>",
514
514
  "initial": "N/A"
515
515
  }
516
516
  ],
517
- "override-color": [
517
+ "override-colors": [
518
518
  {
519
- "name": "override-color",
519
+ "name": "override-colors",
520
520
  "for": "@font-palette-values",
521
- "value": "[ [ <string> | <integer> ] <color> ]#",
521
+ "value": "[ [ <string> | <integer [0,∞]> ] <absolute-color> ]#",
522
522
  "initial": "N/A"
523
523
  }
524
524
  ]
@@ -608,8 +608,14 @@
608
608
  "<generic-family>": {
609
609
  "prose": "Each <generic-family> keyword represents a generic font choice, and behaves as an alias for one or more locally-installed fonts belonging to the specified generic font category. A <generic-family> can thus be used as a reliable fallback for when an author’s more specific font choices are not available. Authors are encouraged to append a generic font family as a last alternative for improved robustness. Note that <generic-family> keywords cannot be quoted (otherwise they are interpreted as a <family-name>). The set of generic family keywords is defined in § 2.1.3 Generic font families."
610
610
  },
611
+ "<string>": {
612
+ "prose": "single four-character case-sensitive OpenType language system tag, specifies the OpenType language system to be used instead of the language system implied by the language of the element. If the string is shorter than four characters, it is padded at the end with space (U+0020) characters such that the length is 4, before being matched."
613
+ },
611
614
  "<palette-identifier>": {
612
- "prose": "This value identifies an CSS-defined palette to use. Users can define a palette by using the @font-palette-values rule. If no applicable @font-palette-values rule is present, this value behaves as normal."
615
+ "prose": "This value identifies an CSS-defined palette to use. Users can define a palette by using the @font-palette-values rule. If no applicable @font-palette-values rule is present, this value behaves as normal. <palette-identifier> is parsed as a <dashed-ident>."
616
+ },
617
+ "<integer>": {
618
+ "prose": "Identifies a (zero-based) numerical palette index within the font."
613
619
  }
614
620
  }
615
621
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "spec": {
3
- "title": "CSS Scrollbars Module Level 1",
3
+ "title": "CSS Scrollbars Styling Module Level 1",
4
4
  "url": "https://drafts.csswg.org/css-scrollbars/"
5
5
  },
6
6
  "properties": {
@@ -146,7 +146,7 @@
146
146
  "value": "rotateZ( [ <angle> | <zero> ] )"
147
147
  },
148
148
  "<perspective()>": {
149
- "value": "perspective( <length [0,∞]> )"
149
+ "value": "perspective( <length [0,∞]> | none )"
150
150
  }
151
151
  }
152
152
  }
package/css-ui.json CHANGED
@@ -225,6 +225,21 @@
225
225
  "userSelect"
226
226
  ]
227
227
  },
228
+ "pointer-events": {
229
+ "name": "pointer-events",
230
+ "value": "auto | none",
231
+ "initial": "auto",
232
+ "appliesTo": "all elements",
233
+ "inherited": "yes",
234
+ "percentages": "N/A",
235
+ "computedValue": "specified keyword",
236
+ "canonicalOrder": "per grammar",
237
+ "animationType": "by computed value type",
238
+ "styleDeclaration": [
239
+ "pointer-events",
240
+ "pointerEvents"
241
+ ]
242
+ },
228
243
  "accent-color": {
229
244
  "name": "accent-color",
230
245
  "value": "auto | <color>",
package/css-values.json CHANGED
@@ -96,6 +96,15 @@
96
96
  "<calc-constant>": {
97
97
  "value": "e | pi | infinity | -infinity | NaN"
98
98
  },
99
+ "<rounding-strategy>": {
100
+ "value": "nearest | up | down | to-zero"
101
+ },
102
+ "<start-value>": {
103
+ "prose": "The value at the “start” (0%) of the interpolation range."
104
+ },
105
+ "<end-value>": {
106
+ "prose": "The value at the “end” (100%) of the interpolation range."
107
+ },
99
108
  "<length-percentage>": {
100
109
  "value": "[ <length> | <percentage> ]"
101
110
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/css",
3
3
  "description": "CSS definitions of the web platform",
4
- "version": "2.0.9",
4
+ "version": "2.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -12,6 +12,6 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "peerDependencies": {
15
- "css-tree": "^1.1.2"
15
+ "css-tree": "^1.1.3"
16
16
  }
17
17
  }