@webref/css 2.1.0 → 2.1.4

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/css-color-5.json CHANGED
@@ -6,32 +6,35 @@
6
6
  "properties": {},
7
7
  "descriptors": {},
8
8
  "valuespaces": {
9
- "<color-space>": {
10
- "value": "srgb | hsl | hwb | xyz | lab | lch"
11
- },
12
9
  "<color-mix()>": {
13
- "value": "color-mix( in <color-space> , [ <color> && <percentage [0,100]>? ]#{2} <hue-adjuster>?)"
14
- },
15
- "<hue-adjuster>": {
16
- "value": "shorter | longer | increasing | decreasing | specified"
10
+ "value": "color-mix( <color-interpolation-method> , [ <color> && <percentage [0,100]>? ]#{2})"
17
11
  },
18
12
  "<color-contrast()>": {
19
13
  "value": "color-contrast( <color> vs <color>#{2,} [ to [<number> | AA | AA-large | AAA | AAA-large]]? )"
20
14
  },
21
15
  "<rgb()>": {
22
- "value": "rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( [ from <color> ]? [ <number> | <percentage> ]{3} [ / <alpha-value> ]? )"
16
+ "value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / <alpha-value> ]? )"
17
+ },
18
+ "<alpha-value>": {
19
+ "value": "<number> | <percentage>"
23
20
  },
24
21
  "<hsl()>": {
25
- "value": "hsl([from <color>]? <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
22
+ "value": "hsl(([from <color>]? [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
26
23
  },
27
24
  "<hwb()>": {
28
- "value": "hwb([from <color>]? <hue> <percentage> <percentage> [ / <alpha-value> ]? )"
25
+ "value": "hwb([from <color>]? [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
29
26
  },
30
27
  "<lab()>": {
31
- "value": "lab([from <color>]? <percentage> <number> <number> [ / <alpha-value> ]? )"
28
+ "value": "lab([from <color>]? [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
29
+ },
30
+ "<oklab()>": {
31
+ "value": "oklab([from <color>]? [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
32
32
  },
33
33
  "<lch()>": {
34
- "value": "lch([from <color>]? <percentage> <number> <hue> [ / <alpha-value> ]? )"
34
+ "value": "lch([from <color>]? [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
35
+ },
36
+ "<oklch()>": {
37
+ "value": "oklch([from <color>]? [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
35
38
  },
36
39
  "<color()>": {
37
40
  "value": "color( [from <color>]? <colorspace-params> [ / <alpha-value> ]? )"
package/css-color.json CHANGED
@@ -63,14 +63,11 @@
63
63
  "<color>": {
64
64
  "value": "<absolute-color-base> | currentcolor | <system-color> | <device-cmyk()>"
65
65
  },
66
- "<absolute-color>": {
67
- "value": "<absolute-color-base> | <absolute-device-cmyk>"
68
- },
69
66
  "<absolute-color-base>": {
70
- "value": "<hex-color> | <named-color> | transparent | <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <color()>"
67
+ "value": "<hex-color> | <named-color> | transparent | <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <oklab()> | <oklch()> | <color()>"
71
68
  },
72
69
  "<hue>": {
73
- "value": "<number> | <angle>"
70
+ "value": "<number> | <angle> | none"
74
71
  },
75
72
  "<rgb()>": {
76
73
  "value": "rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) | rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? )"
@@ -90,17 +87,32 @@
90
87
  "<lch()>": {
91
88
  "value": "lch( [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
92
89
  },
90
+ "<oklab()>": {
91
+ "value": "oklab( [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
92
+ },
93
+ "<oklch()>": {
94
+ "value": "oklch( [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
95
+ },
93
96
  "<color()>": {
94
- "value": "color( [<ident> | <dashed-ident>] [ <number-percentage>+ ] [ / <alpha-value> ]? )"
97
+ "value": "color( [<ident> | <dashed-ident>] [<number-percentage> | none]+ [ / [<alpha-value> | none] ]? )"
95
98
  },
96
99
  "<device-cmyk()>": {
97
- "value": "device-cmyk( <cmyk-component>{4} [ / <alpha-value> ]? , <color>? )"
98
- },
99
- "<absolute-device-cmyk>": {
100
- "value": "device-cmyk( <cmyk-component>{4} [ / <alpha-value> ]? , <absolute-color>? )"
100
+ "value": "device-cmyk( <cmyk-component>{4} [ / <alpha-value> ]? )"
101
101
  },
102
102
  "<cmyk-component>": {
103
103
  "value": "<number> | <percentage>"
104
+ },
105
+ "<rectangular-color-space>": {
106
+ "value": "srgb | lab | oklab | xyz | xyz-d50 | xyz-d65"
107
+ },
108
+ "<polar-color-space>": {
109
+ "value": "hsl | hwb | lch | oklch"
110
+ },
111
+ "<hue-interpolation-method>": {
112
+ "value": "[ shorter | longer | increasing | decreasing | specified ] hue"
113
+ },
114
+ "<color-interpolation-method>": {
115
+ "value": "in [ <rectangular-color-space> | <polar-color-space> <hue-interpolation-method>? ]"
104
116
  }
105
117
  }
106
118
  }
@@ -7,7 +7,7 @@
7
7
  "descriptors": {},
8
8
  "valuespaces": {
9
9
  "<supports-feature>": {
10
- "value": "<supports-selector-fn> | <supports-font-technology-fn> | <supports-decl>"
10
+ "value": "<supports-selector-fn> | <supports-font-technology-fn> | <supports-font-format-fn> | <supports-decl>"
11
11
  },
12
12
  "<supports-selector-fn>": {
13
13
  "value": "selector( <complex-selector> )"
@@ -18,6 +18,9 @@
18
18
  "<font-technology>": {
19
19
  "value": "[ features-opentype | features-aat | features-graphite | color-colrv0 | color-colrv1 | color-svg | color-sbix | color-cbdt | variations | palettes | incremental ]"
20
20
  },
21
+ "<supports-font-format-fn>": {
22
+ "value": "font-format ( <font-format> )"
23
+ },
21
24
  "<media()>": {
22
25
  "value": "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"
23
26
  },
package/css-fonts-5.json CHANGED
@@ -96,16 +96,16 @@
96
96
  },
97
97
  "valuespaces": {
98
98
  "<font-format>": {
99
- "value": "[<string> | woff | truetype | opentype | woff2 | embedded-opentype | collection | svg]"
99
+ "value": "[<string> | collection | embedded-opentype | opentype | svg | truetype | woff | woff2 ]"
100
100
  },
101
101
  "<font-technology>": {
102
- "value": "[features(<font-feature-technology>) | variations | color(<color-font-technology>) | palettes | incremental ]"
102
+ "value": "[<font-feature-technology> | <color-font-technology> | variations | palettes | incremental ]"
103
103
  },
104
104
  "<font-feature-technology>": {
105
- "value": "[opentype | aat | graphite]"
105
+ "value": "[feature-opentype | feature-aat | feature-graphite]"
106
106
  },
107
107
  "<color-font-technology>": {
108
- "value": "[COLRv0 | COLRv1 | SVG | sbix | CBDT ]"
108
+ "value": "[color-COLRv0 | color-COLRv1 | color-SVG | color-sbix | color-CBDT ]"
109
109
  }
110
110
  }
111
111
  }
package/css-fonts.json CHANGED
@@ -510,7 +510,7 @@
510
510
  {
511
511
  "name": "base-palette",
512
512
  "for": "@font-palette-values",
513
- "value": "light | dark | <integer [0,∞]> | <string>",
513
+ "value": "light | dark | <integer [0,∞]>",
514
514
  "initial": "N/A"
515
515
  }
516
516
  ],
@@ -518,7 +518,7 @@
518
518
  {
519
519
  "name": "override-colors",
520
520
  "for": "@font-palette-values",
521
- "value": "[ [ <string> | <integer [0,∞]> ] <absolute-color> ]#",
521
+ "value": "[ <integer [0,∞]> <absolute-color> ]#",
522
522
  "initial": "N/A"
523
523
  }
524
524
  ]
@@ -534,16 +534,16 @@
534
534
  "value": "[normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded]"
535
535
  },
536
536
  "<font-format>": {
537
- "value": "[<string> | woff | truetype | opentype | woff2 | embedded-opentype | collection | svg]"
537
+ "value": "[<string> | collection | embedded-opentype | opentype | svg | truetype | woff | woff2 ]"
538
538
  },
539
539
  "<font-technology>": {
540
- "value": "[features(<font-feature-technology>) | variations | color(<color-font-technology>) | palettes | incremental ]"
540
+ "value": "[<font-feature-technology> | <color-font-technology> | variations | palettes | incremental ]"
541
541
  },
542
542
  "<font-feature-technology>": {
543
- "value": "[opentype | aat | graphite]"
543
+ "value": "[feature-opentype | feature-aat | feature-graphite]"
544
544
  },
545
545
  "<color-font-technology>": {
546
- "value": "[COLRv0 | COLRv1 | SVG | sbix | CBDT ]"
546
+ "value": "[color-COLRv0 | color-COLRv1 | color-SVG | color-sbix | color-CBDT ]"
547
547
  },
548
548
  "<common-lig-values>": {
549
549
  "value": "[ common-ligatures | no-common-ligatures ]"
@@ -608,9 +608,6 @@
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
- },
614
611
  "<palette-identifier>": {
615
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. <palette-identifier> is parsed as a <dashed-ident>."
616
613
  },
package/css-images-4.json CHANGED
@@ -67,8 +67,17 @@
67
67
  "<gradient>": {
68
68
  "value": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> ]"
69
69
  },
70
+ "<linear-gradient()>": {
71
+ "value": "linear-gradient( [ <angle> | to <side-or-corner> ]? || <color-interpolation-method>, <color-stop-list> )"
72
+ },
73
+ "<side-or-corner>": {
74
+ "value": "[left | right] || [top | bottom]"
75
+ },
76
+ "<radial-gradient()>": {
77
+ "value": "radial-gradient( [[ <ending-shape> || <size> ]? [ at <position> ]? ] || <color-interpolation-method>, <color-stop-list> )"
78
+ },
70
79
  "<conic-gradient()>": {
71
- "value": "conic-gradient( [ from <angle> ]? [ at <position> ]?, <angular-color-stop-list> )"
80
+ "value": "conic-gradient( [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method>, <angular-color-stop-list> )"
72
81
  },
73
82
  "<color-stop-list>": {
74
83
  "value": "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#"
@@ -189,6 +189,14 @@
189
189
  "type": "discrete"
190
190
  }
191
191
  ],
192
+ "nav-controls": [
193
+ {
194
+ "name": "nav-controls",
195
+ "for": "@media",
196
+ "value": "none | back",
197
+ "type": "discrete"
198
+ }
199
+ ],
192
200
  "video-color-gamut": [
193
201
  {
194
202
  "name": "video-color-gamut",
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.1.0",
4
+ "version": "2.1.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"