@webref/css 6.10.3 → 6.11.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.
Files changed (114) hide show
  1. package/CSS.json +83 -8
  2. package/README.md +1 -0
  3. package/SVG.json +27 -0
  4. package/compat.json +75 -0
  5. package/compositing.json +22 -0
  6. package/css-align.json +59 -0
  7. package/css-anchor-position.json +214 -19
  8. package/css-animations-2.json +13 -0
  9. package/css-animations.json +34 -0
  10. package/css-backgrounds-4.json +12 -0
  11. package/css-backgrounds.json +78 -0
  12. package/css-borders.json +91 -0
  13. package/css-box.json +48 -0
  14. package/css-break.json +50 -0
  15. package/css-cascade-6.json +3 -0
  16. package/css-cascade.json +10 -0
  17. package/css-color-5.json +74 -0
  18. package/css-color-6.json +6 -0
  19. package/css-color-adjust.json +14 -0
  20. package/css-color.json +273 -1
  21. package/css-conditional-4.json +2 -0
  22. package/css-conditional-5.json +7 -0
  23. package/css-conditional.json +6 -0
  24. package/css-contain-3.json +27 -0
  25. package/css-contain.json +12 -0
  26. package/css-content.json +53 -0
  27. package/css-counter-styles.json +85 -0
  28. package/css-display.json +48 -0
  29. package/css-easing.json +24 -0
  30. package/css-env.json +11 -0
  31. package/css-exclusions.json +11 -0
  32. package/css-extensions.json +4 -0
  33. package/css-flexbox.json +24 -0
  34. package/css-fonts-5.json +46 -0
  35. package/css-fonts.json +221 -9
  36. package/css-gcpm-4.json +10 -4
  37. package/css-gcpm.json +13 -1
  38. package/css-grid-3.json +1 -0
  39. package/css-grid.json +88 -0
  40. package/css-highlight-api.json +3 -1
  41. package/css-images-4.json +49 -0
  42. package/css-images-5.json +3 -0
  43. package/css-images.json +46 -0
  44. package/css-inline.json +93 -0
  45. package/css-layout-api.json +1 -0
  46. package/css-line-grid.json +14 -0
  47. package/css-link-params.json +2 -0
  48. package/css-lists.json +34 -0
  49. package/css-logical.json +27 -0
  50. package/css-masking.json +69 -0
  51. package/css-multicol-2.json +5 -0
  52. package/css-multicol.json +19 -0
  53. package/css-namespaces.json +2 -0
  54. package/css-nav.json +10 -0
  55. package/css-nesting.json +2 -1
  56. package/css-overflow-4.json +37 -1
  57. package/css-overflow.json +38 -0
  58. package/css-overscroll.json +20 -0
  59. package/css-page-floats.json +34 -0
  60. package/css-page.json +52 -0
  61. package/css-paint-api.json +1 -0
  62. package/css-position-4.json +5 -1
  63. package/css-position.json +50 -0
  64. package/css-properties-values-api.json +4 -0
  65. package/css-pseudo.json +23 -10
  66. package/css-regions.json +3 -0
  67. package/css-rhythm.json +15 -0
  68. package/css-round-display.json +8 -0
  69. package/css-ruby.json +22 -0
  70. package/css-scoping.json +8 -4
  71. package/css-scroll-anchoring.json +3 -0
  72. package/css-scroll-snap-2.json +55 -5
  73. package/css-scroll-snap.json +53 -0
  74. package/css-scrollbars.json +7 -0
  75. package/css-shadow-parts.json +1 -0
  76. package/css-shapes-2.json +34 -0
  77. package/css-shapes.json +22 -0
  78. package/css-size-adjust.json +4 -0
  79. package/css-sizing-4.json +59 -0
  80. package/css-sizing.json +42 -0
  81. package/css-speech.json +115 -0
  82. package/css-syntax.json +43 -0
  83. package/css-tables.json +5 -0
  84. package/css-text-4.json +161 -0
  85. package/css-text-decor-4.json +75 -0
  86. package/css-text-decor.json +32 -0
  87. package/css-text.json +70 -0
  88. package/css-transforms-2.json +37 -0
  89. package/css-transforms.json +26 -0
  90. package/css-transitions-2.json +4 -0
  91. package/css-transitions.json +9 -0
  92. package/css-ui.json +92 -0
  93. package/css-values-5.json +59 -0
  94. package/css-values.json +115 -0
  95. package/css-variables.json +2 -0
  96. package/css-view-transitions-2.json +8 -1
  97. package/css-view-transitions.json +15 -5
  98. package/css-viewport.json +43 -0
  99. package/css-will-change.json +6 -0
  100. package/css-writing-modes.json +26 -0
  101. package/fill-stroke.json +66 -0
  102. package/filter-effects-2.json +1 -0
  103. package/filter-effects.json +24 -0
  104. package/html.json +3 -0
  105. package/mathml-core.json +3 -0
  106. package/mediaqueries-5.json +121 -0
  107. package/mediaqueries.json +77 -0
  108. package/motion.json +32 -0
  109. package/package.json +1 -1
  110. package/scroll-animations.json +54 -0
  111. package/selectors.json +173 -72
  112. package/svg-strokes.json +3 -0
  113. package/upgrade-insecure-requests.json +2 -0
  114. package/webvtt.json +8 -4
package/css-color-5.json CHANGED
@@ -8,15 +8,18 @@
8
8
  {
9
9
  "name": "@color-profile",
10
10
  "prose": "The @color-profile rule defines and names a color profile which can later be used in the color() function to specify a color.",
11
+ "href": "https://drafts.csswg.org/css-color-5/#at-ruledef-profile",
11
12
  "descriptors": [
12
13
  {
13
14
  "name": "src",
15
+ "href": "https://drafts.csswg.org/css-color-5/#descdef-color-profile-src",
14
16
  "for": "@color-profile",
15
17
  "value": "<url>",
16
18
  "initial": "n/a"
17
19
  },
18
20
  {
19
21
  "name": "rendering-intent",
22
+ "href": "https://drafts.csswg.org/css-color-5/#descdef-color-profile-rendering-intent",
20
23
  "for": "@color-profile",
21
24
  "value": "relative-colorimetric | absolute-colorimetric | perceptual | saturation",
22
25
  "initial": "relative-colorimetric",
@@ -24,24 +27,28 @@
24
27
  {
25
28
  "name": "relative-colorimetric",
26
29
  "prose": "Media-relative colorimetric is required to leave source colors that fall inside the destination medium gamut unchanged relative to the respective media white points. Source colors that are out of the destination medium gamut are mapped to colors on the gamut boundary using a variety of different methods. The media-relative colorimetric rendering intent is often used with black point compensation, where the source medium black point is mapped to the destination medium black point as well. This method must map the source white point to the destination white point. If black point compensation is in use, the source black point must also be mapped to the destination black point. Adaptation algorithms should be used to adjust for the change in white point. Relative relationships of colors inside both source and destination gamuts should be preserved. Relative relationships of colors outside the destination gamut may be changed.",
30
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-relative-colorimetric",
27
31
  "type": "value",
28
32
  "value": "relative-colorimetric"
29
33
  },
30
34
  {
31
35
  "name": "absolute-colorimetric",
32
36
  "prose": "ICC-absolute colorimetric is required to leave source colors that fall inside the destination medium gamut unchanged relative to the adopted white (a perfect reflecting diffuser). Source colors that are out of the destination medium gamut are mapped to colors on the gamut boundary using a variety of different methods. This method produces the most accurate color matching of in-gamut colors, but will result in highlight clipping if the destination medium white point is lower than the source medium white point. For this reason it is recommended for use only in applications that need exact color matching and where highlight clipping is not a concern. This method MUST disable white point matching and black point matching when converting colors. In general, this option is not recommended except for testing purposes.",
37
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-absolute-colorimetric",
33
38
  "type": "value",
34
39
  "value": "absolute-colorimetric"
35
40
  },
36
41
  {
37
42
  "name": "perceptual",
38
43
  "prose": "This method is often the preferred choice for images, especially when there are substantial differences between the source and destination (such as a screen display image reproduced on a reflection print). It takes the colors of the source image and re-optimizes the appearance for the destination medium using proprietary methods. This re-optimization may result in colors within both the source and destination gamuts being changed, although perceptual transforms are supposed to maintain the basic artistic intent of the original in the reproduction. They will not attempt to correct errors in the source image. This method should maintain relative color values among the pixels as they are mapped to the target device gamut. This method may change pixel values that were originally within the target device gamut, in order to avoid hue shifts and discontinuities and to preserve as much as possible the overall appearance of the scene.",
44
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-perceptual",
39
45
  "type": "value",
40
46
  "value": "perceptual"
41
47
  },
42
48
  {
43
49
  "name": "saturation",
44
50
  "prose": "This option was created to preserve the relative saturation (chroma) of the original, and to keep solid colors pure. However, it experienced interoperability problems like the perceptual intent, and as solid color preservation is not amenable to a reference medium solution using v4 profiles does not solve the problem. Use of this rendering intent is not recommended unless the specific source and destination profiles to be used have been checked to ensure the combination produces the desired result. This option should preserve the relative saturation (chroma) values of the original pixels. Out of gamut colors should be converted to colors that have the same saturation but fall just inside the gamut.",
51
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-saturation",
45
52
  "type": "value",
46
53
  "value": "saturation"
47
54
  }
@@ -49,6 +56,7 @@
49
56
  },
50
57
  {
51
58
  "name": "components",
59
+ "href": "https://drafts.csswg.org/css-color-5/#descdef-color-profile-components",
52
60
  "for": "@color-profile",
53
61
  "value": "<ident>#",
54
62
  "initial": "n/a"
@@ -62,70 +70,83 @@
62
70
  {
63
71
  "name": "<color>",
64
72
  "prose": "Colors in CSS are represented by the <color> type:",
73
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-color",
65
74
  "type": "type",
66
75
  "value": "<color-base> | currentColor | <system-color> | <device-cmyk()> | <light-dark()>"
67
76
  },
68
77
  {
69
78
  "name": "<color-base>",
79
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-color-base",
70
80
  "type": "type",
71
81
  "value": "<hex-color> | <color-function> | <named-color> | <color-mix()> | transparent"
72
82
  },
73
83
  {
74
84
  "name": "<color-function>",
85
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-color-function",
75
86
  "type": "type",
76
87
  "value": "<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <oklab()> | <oklch()> | <color()>"
77
88
  },
78
89
  {
79
90
  "name": "color-mix()",
91
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-color-mix",
80
92
  "type": "function",
81
93
  "value": "color-mix( <color-interpolation-method> , [ <color> && <percentage [0,100]>? ]#{2})"
82
94
  },
83
95
  {
84
96
  "name": "<modern-rgb-syntax>",
97
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-rgb-syntax",
85
98
  "type": "type",
86
99
  "value": "rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
87
100
  },
88
101
  {
89
102
  "name": "<modern-rgba-syntax>",
103
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-rgba-syntax",
90
104
  "type": "type",
91
105
  "value": "rgba( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
92
106
  },
93
107
  {
94
108
  "name": "<modern-hsl-syntax>",
109
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-hsl-syntax",
95
110
  "type": "type",
96
111
  "value": "hsl([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
97
112
  },
98
113
  {
99
114
  "name": "<modern-hsla-syntax>",
115
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-hsla-syntax",
100
116
  "type": "type",
101
117
  "value": "hsla([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
102
118
  },
103
119
  {
104
120
  "name": "hwb()",
121
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-hwb",
105
122
  "type": "function",
106
123
  "value": "hwb([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )",
107
124
  "values": [
108
125
  {
109
126
  "name": "h",
110
127
  "prose": "h is a <number> that corresponds to the origin color’s HWB hue, in degrees, after conversion, if required to sRGB, normalized to a [0, 360] range. 90 is equivalent to 90deg.",
128
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-h",
111
129
  "type": "value",
112
130
  "value": "h"
113
131
  },
114
132
  {
115
133
  "name": "w",
116
134
  "prose": "w and b are <number>s that correspond to the origin color’s HWB whiteness and blackness after conversion, if required to sRGB. 100 is equivalent to 100%.",
135
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-w",
117
136
  "type": "value",
118
137
  "value": "w"
119
138
  },
120
139
  {
121
140
  "name": "b",
122
141
  "prose": "w and b are <number>s that correspond to the origin color’s HWB whiteness and blackness after conversion, if required to sRGB. 100 is equivalent to 100%.",
142
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-b",
123
143
  "type": "value",
124
144
  "value": "b"
125
145
  },
126
146
  {
127
147
  "name": "alpha",
128
148
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
149
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-alpha",
129
150
  "type": "value",
130
151
  "value": "alpha"
131
152
  }
@@ -133,30 +154,35 @@
133
154
  },
134
155
  {
135
156
  "name": "lab()",
157
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-lab",
136
158
  "type": "function",
137
159
  "value": "lab([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )",
138
160
  "values": [
139
161
  {
140
162
  "name": "l",
141
163
  "prose": "l is a <number> that corresponds to the origin color’s CIE Lightness after conversion, if required, to CIE Lab. 100 is equivalent to 100%.",
164
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-l",
142
165
  "type": "value",
143
166
  "value": "l"
144
167
  },
145
168
  {
146
169
  "name": "a",
147
170
  "prose": "a and b are <number>s that correspond to the origin color’s CIE Lab a and b axes after conversion, if required, to CIE Lab. 125 is equivalent to 100%, while -125 is equivalent to -100%.",
171
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-a",
148
172
  "type": "value",
149
173
  "value": "a"
150
174
  },
151
175
  {
152
176
  "name": "b",
153
177
  "prose": "a and b are <number>s that correspond to the origin color’s CIE Lab a and b axes after conversion, if required, to CIE Lab. 125 is equivalent to 100%, while -125 is equivalent to -100%.",
178
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-b",
154
179
  "type": "value",
155
180
  "value": "b"
156
181
  },
157
182
  {
158
183
  "name": "alpha",
159
184
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
185
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-alpha",
160
186
  "type": "value",
161
187
  "value": "alpha"
162
188
  }
@@ -164,30 +190,35 @@
164
190
  },
165
191
  {
166
192
  "name": "oklab()",
193
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-oklab",
167
194
  "type": "function",
168
195
  "value": "oklab([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )",
169
196
  "values": [
170
197
  {
171
198
  "name": "l",
172
199
  "prose": "l is a <number> that corresponds to the origin color’s Oklab Lightness after conversion, if required, to Oklab. 1.0 is equivalent to 100%.",
200
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-l",
173
201
  "type": "value",
174
202
  "value": "l"
175
203
  },
176
204
  {
177
205
  "name": "a",
178
206
  "prose": "a and b are <number>s that correspond to the origin color’s Oklab a and b axes after conversion, if required, to Oklab. 0.4 is equivalent to 100%, while -0.4 is equivalent to -100%.",
207
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-a",
179
208
  "type": "value",
180
209
  "value": "a"
181
210
  },
182
211
  {
183
212
  "name": "b",
184
213
  "prose": "a and b are <number>s that correspond to the origin color’s Oklab a and b axes after conversion, if required, to Oklab. 0.4 is equivalent to 100%, while -0.4 is equivalent to -100%.",
214
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-b",
185
215
  "type": "value",
186
216
  "value": "b"
187
217
  },
188
218
  {
189
219
  "name": "alpha",
190
220
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
221
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-alpha",
191
222
  "type": "value",
192
223
  "value": "alpha"
193
224
  }
@@ -195,30 +226,35 @@
195
226
  },
196
227
  {
197
228
  "name": "lch()",
229
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-lch",
198
230
  "type": "function",
199
231
  "value": "lch([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )",
200
232
  "values": [
201
233
  {
202
234
  "name": "l",
203
235
  "prose": "l is a <number> that corresponds to the origin color’s CIE Lightness after conversion, if required, to CIE LCH. 100 is equivalent to 100%.",
236
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-l",
204
237
  "type": "value",
205
238
  "value": "l"
206
239
  },
207
240
  {
208
241
  "name": "c",
209
242
  "prose": "c is a <number> that corresponds to the origin color’s LCH chroma after conversion, if required, to CIE LCH. 150 is equivalent to 100%.",
243
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-c",
210
244
  "type": "value",
211
245
  "value": "c"
212
246
  },
213
247
  {
214
248
  "name": "h",
215
249
  "prose": "h is a <number> that corresponds to the origin color’s LCH hue, in degrees, after conversion, if required, to CIE LCH, normalized to a [0, 360] range. 90 is equivalent to 90deg.",
250
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-h",
216
251
  "type": "value",
217
252
  "value": "h"
218
253
  },
219
254
  {
220
255
  "name": "alpha",
221
256
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
257
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-alpha",
222
258
  "type": "value",
223
259
  "value": "alpha"
224
260
  }
@@ -226,30 +262,35 @@
226
262
  },
227
263
  {
228
264
  "name": "oklch()",
265
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-oklch",
229
266
  "type": "function",
230
267
  "value": "oklch([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )",
231
268
  "values": [
232
269
  {
233
270
  "name": "l",
234
271
  "prose": "l is a <number> that corresponds to the origin color’s Oklab Lightness after conversion, if required, to Oklch. 1.0 is equivalent to 100%.",
272
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-l",
235
273
  "type": "value",
236
274
  "value": "l"
237
275
  },
238
276
  {
239
277
  "name": "c",
240
278
  "prose": "c is a <number> that corresponds to the origin color’s Oklch chroma after conversion, if required, to Oklch. 0.4 is equivalent to 100%.",
279
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-c",
241
280
  "type": "value",
242
281
  "value": "c"
243
282
  },
244
283
  {
245
284
  "name": "h",
246
285
  "prose": "h is a <number> that corresponds to the origin color’s Oklch hue, in degrees, after conversion, if required, to Oklch, normalized to a [0, 360] range. 90 is equivalent to 90deg.",
286
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-h",
247
287
  "type": "value",
248
288
  "value": "h"
249
289
  },
250
290
  {
251
291
  "name": "alpha",
252
292
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
293
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-alpha",
253
294
  "type": "value",
254
295
  "value": "alpha"
255
296
  }
@@ -257,48 +298,56 @@
257
298
  },
258
299
  {
259
300
  "name": "color()",
301
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-color",
260
302
  "type": "function",
261
303
  "value": "color( [from <color>]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )",
262
304
  "values": [
263
305
  {
264
306
  "name": "r",
265
307
  "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue channels after conversion, if required to the predefined RGB color space. The value 1.0 corresponds to 100%.",
308
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-r",
266
309
  "type": "value",
267
310
  "value": "r"
268
311
  },
269
312
  {
270
313
  "name": "g",
271
314
  "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue channels after conversion, if required to the predefined RGB color space. The value 1.0 corresponds to 100%.",
315
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-g",
272
316
  "type": "value",
273
317
  "value": "g"
274
318
  },
275
319
  {
276
320
  "name": "b",
277
321
  "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue channels after conversion, if required to the predefined RGB color space. The value 1.0 corresponds to 100%.",
322
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-b",
278
323
  "type": "value",
279
324
  "value": "b"
280
325
  },
281
326
  {
282
327
  "name": "x",
283
328
  "prose": "x, y, z are all <number>s that correspond to the origin color’s X, Y and Z channels after conversion, if required to relative CIE XYZ color space adapted to the relevant white point. The value 1.0 corresponds to 100%.",
329
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-x",
284
330
  "type": "value",
285
331
  "value": "x"
286
332
  },
287
333
  {
288
334
  "name": "y",
289
335
  "prose": "x, y, z are all <number>s that correspond to the origin color’s X, Y and Z channels after conversion, if required to relative CIE XYZ color space adapted to the relevant white point. The value 1.0 corresponds to 100%.",
336
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-y",
290
337
  "type": "value",
291
338
  "value": "y"
292
339
  },
293
340
  {
294
341
  "name": "z",
295
342
  "prose": "x, y, z are all <number>s that correspond to the origin color’s X, Y and Z channels after conversion, if required to relative CIE XYZ color space adapted to the relevant white point. The value 1.0 corresponds to 100%.",
343
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-z",
296
344
  "type": "value",
297
345
  "value": "z"
298
346
  },
299
347
  {
300
348
  "name": "alpha",
301
349
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
350
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-color-alpha",
302
351
  "type": "value",
303
352
  "value": "alpha"
304
353
  }
@@ -306,86 +355,103 @@
306
355
  },
307
356
  {
308
357
  "name": "<colorspace-params>",
358
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-colorspace-params",
309
359
  "type": "type",
310
360
  "value": "[<custom-params> | <predefined-rgb-params> | <xyz-params>]"
311
361
  },
312
362
  {
313
363
  "name": "<custom-params>",
364
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-custom-params",
314
365
  "type": "type",
315
366
  "value": "<dashed-ident> [ <number> | <percentage> | none ]+"
316
367
  },
317
368
  {
318
369
  "name": "<predefined-rgb-params>",
370
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-predefined-rgb-params",
319
371
  "type": "type",
320
372
  "value": "<predefined-rgb> [ <number> | <percentage> | none ]{3}"
321
373
  },
322
374
  {
323
375
  "name": "<predefined-rgb>",
376
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-predefined-rgb",
324
377
  "type": "type",
325
378
  "value": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020"
326
379
  },
327
380
  {
328
381
  "name": "<xyz-params>",
382
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-xyz-params",
329
383
  "type": "type",
330
384
  "value": "<xyz> [ <number> | <percentage> | none ]{3}"
331
385
  },
332
386
  {
333
387
  "name": "<xyz>",
388
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-xyz",
334
389
  "type": "type",
335
390
  "value": "xyz | xyz-d50 | xyz-d65"
336
391
  },
337
392
  {
338
393
  "name": "device-cmyk()",
394
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-device-cmyk",
339
395
  "type": "function",
340
396
  "value": "<legacy-device-cmyk-syntax> | <modern-device-cmyk-syntax>"
341
397
  },
342
398
  {
343
399
  "name": "<legacy-device-cmyk-syntax>",
400
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-legacy-device-cmyk-syntax",
344
401
  "type": "type",
345
402
  "value": "device-cmyk( <number>#{4} )"
346
403
  },
347
404
  {
348
405
  "name": "<modern-device-cmyk-syntax>",
406
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-device-cmyk-syntax",
349
407
  "type": "type",
350
408
  "value": "device-cmyk( <cmyk-component>{4} [ / [ <alpha-value> | none ] ]? )"
351
409
  },
352
410
  {
353
411
  "name": "<cmyk-component>",
412
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-cmyk-component",
354
413
  "type": "type",
355
414
  "value": "<number> | <percentage> | none"
356
415
  },
357
416
  {
358
417
  "name": "light-dark()",
418
+ "href": "https://drafts.csswg.org/css-color-5/#funcdef-light-dark",
359
419
  "type": "function",
360
420
  "value": "light-dark( <color>, <color> )"
361
421
  },
362
422
  {
363
423
  "name": "<color-space>",
424
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-color-space",
364
425
  "type": "type",
365
426
  "value": "<rectangular-color-space> | <polar-color-space> | <custom-color-space>"
366
427
  },
367
428
  {
368
429
  "name": "<rectangular-color-space>",
430
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-rectangular-color-space",
369
431
  "type": "type",
370
432
  "value": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | xyz | xyz-d50 | xyz-d65"
371
433
  },
372
434
  {
373
435
  "name": "<polar-color-space>",
436
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-polar-color-space",
374
437
  "type": "type",
375
438
  "value": "hsl | hwb | lch | oklch"
376
439
  },
377
440
  {
378
441
  "name": "<custom-color-space>",
442
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-custom-color-space",
379
443
  "type": "type",
380
444
  "value": "<dashed-ident>"
381
445
  },
382
446
  {
383
447
  "name": "<hue-interpolation-method>",
448
+ "href": "https://drafts.csswg.org/css-color-5/#typedef-hue-interpolation-method",
384
449
  "type": "type",
385
450
  "value": "[ shorter | longer | increasing | decreasing ] hue"
386
451
  },
387
452
  {
388
453
  "name": "<color-interpolation-method>",
454
+ "href": "https://drafts.csswg.org/css-color-5/#color-interpolation-method",
389
455
  "type": "type",
390
456
  "value": "in [ <rectangular-color-space> | <polar-color-space> <hue-interpolation-method>? | <custom-color-space> ]"
391
457
  }
@@ -395,6 +461,7 @@
395
461
  "msg": "Dangling value",
396
462
  "name": "r",
397
463
  "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue channels after conversion, if required to sRGB. 255.0 is equivalent to 100%.",
464
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-r",
398
465
  "type": "value",
399
466
  "value": "r",
400
467
  "for": "rgb()"
@@ -403,6 +470,7 @@
403
470
  "msg": "Dangling value",
404
471
  "name": "g",
405
472
  "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue channels after conversion, if required to sRGB. 255.0 is equivalent to 100%.",
473
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-g",
406
474
  "type": "value",
407
475
  "value": "g",
408
476
  "for": "rgb()"
@@ -411,6 +479,7 @@
411
479
  "msg": "Dangling value",
412
480
  "name": "b",
413
481
  "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue channels after conversion, if required to sRGB. 255.0 is equivalent to 100%.",
482
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-b",
414
483
  "type": "value",
415
484
  "value": "b",
416
485
  "for": "rgb()"
@@ -419,6 +488,7 @@
419
488
  "msg": "Dangling value",
420
489
  "name": "alpha",
421
490
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
491
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-alpha",
422
492
  "type": "value",
423
493
  "value": "alpha",
424
494
  "for": "rgb()"
@@ -427,6 +497,7 @@
427
497
  "msg": "Dangling value",
428
498
  "name": "h",
429
499
  "prose": "h is a <number> that corresponds to the origin color’s HSL hue, in degrees, after conversion, if required to sRGB, normalized to a [0, 360] range. 90 is equivalent to 90deg.",
500
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-h",
430
501
  "type": "value",
431
502
  "value": "h",
432
503
  "for": "hsl()"
@@ -435,6 +506,7 @@
435
506
  "msg": "Dangling value",
436
507
  "name": "s",
437
508
  "prose": "s and l are <number>s that correspond to the origin color’s HSL saturation and lightness, after conversion, if required to sRGB. 100 is equivalent to 100%.",
509
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-s",
438
510
  "type": "value",
439
511
  "value": "s",
440
512
  "for": "hsl()"
@@ -443,6 +515,7 @@
443
515
  "msg": "Dangling value",
444
516
  "name": "l",
445
517
  "prose": "s and l are <number>s that correspond to the origin color’s HSL saturation and lightness, after conversion, if required to sRGB. 100 is equivalent to 100%.",
518
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-l",
446
519
  "type": "value",
447
520
  "value": "l",
448
521
  "for": "hsl()"
@@ -451,6 +524,7 @@
451
524
  "msg": "Dangling value",
452
525
  "name": "alpha",
453
526
  "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency 1.0 is equivalent to 100%.",
527
+ "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-alpha",
454
528
  "type": "value",
455
529
  "value": "alpha",
456
530
  "for": "hsl()"
package/css-color-6.json CHANGED
@@ -10,24 +10,28 @@
10
10
  {
11
11
  "name": "contrast-color()",
12
12
  "prose": "The contrast-color() functional notation identifies a sufficiently contrasting color against a specified background or foreground color without requiring manual computation.",
13
+ "href": "https://drafts.csswg.org/css-color-6/#funcdef-contrast-color",
13
14
  "type": "function",
14
15
  "value": "contrast-color( [ [ <color> && [ tbd-fg | tbd-bg ] && <target-contrast>? ] | [ <color> && [ tbd-fg | tbd-bg ] && <target-contrast>, <color># ] ] )",
15
16
  "values": [
16
17
  {
17
18
  "name": "text",
18
19
  "prose": "The tbd-fg and tbd-bg keywords indicate the role of the base color in calculating the contrast: as text against a list of candidate background colors (text) or as a background against a list of candidate text colors. (The effective contrast of a pair of colors depends on their usage.)",
20
+ "href": "https://drafts.csswg.org/css-color-6/#valdef-contrast-color-text",
19
21
  "type": "value",
20
22
  "value": "text"
21
23
  },
22
24
  {
23
25
  "name": "wcag2",
24
26
  "prose": "The wcag2 keyword and wcag2() functional notations indicate use of the [WCAG21] luminance contrast algorithm. Their syntax is:",
27
+ "href": "https://drafts.csswg.org/css-color-6/#valdef-contrast-color-wcag2",
25
28
  "type": "value",
26
29
  "value": "wcag2"
27
30
  },
28
31
  {
29
32
  "name": "wcag2()",
30
33
  "prose": "The wcag2 keyword and wcag2() functional notations indicate use of the [WCAG21] luminance contrast algorithm. Their syntax is:",
34
+ "href": "https://drafts.csswg.org/css-color-6/#funcdef-contrast-color-wcag2",
31
35
  "type": "function"
32
36
  }
33
37
  ]
@@ -35,11 +39,13 @@
35
39
  {
36
40
  "name": "<target-contrast>",
37
41
  "prose": "The <target-contrast> argument specifies the contrast algorithm(s) to use. If no color candidates have been provided, <target-contrast> may be omitted, in which case a UA-chosen algorithm is used.",
42
+ "href": "https://drafts.csswg.org/css-color-6/#typedef-target-contrast",
38
43
  "type": "type",
39
44
  "value": "<wcag2>"
40
45
  },
41
46
  {
42
47
  "name": "<wcag2>",
48
+ "href": "https://drafts.csswg.org/css-color-6/#typedef-wcag2",
43
49
  "type": "type",
44
50
  "value": "wcag2 | wcag2([<number> | [ aa | aaa ] && large? ])"
45
51
  }