@webref/css 6.23.0 → 7.0.1-alpha

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 (122) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +37 -22
  3. package/css.json +17754 -0
  4. package/index.js +2 -9
  5. package/package.json +1 -1
  6. package/CSS.json +0 -567
  7. package/SVG.json +0 -387
  8. package/compat.json +0 -784
  9. package/compositing.json +0 -178
  10. package/css-align.json +0 -559
  11. package/css-anchor-position.json +0 -1042
  12. package/css-animations-2.json +0 -377
  13. package/css-animations.json +0 -337
  14. package/css-backgrounds-4.json +0 -402
  15. package/css-backgrounds.json +0 -732
  16. package/css-borders.json +0 -1642
  17. package/css-box.json +0 -484
  18. package/css-break.json +0 -444
  19. package/css-cascade-6.json +0 -31
  20. package/css-cascade.json +0 -91
  21. package/css-color-5.json +0 -527
  22. package/css-color-6.json +0 -60
  23. package/css-color-adjust.json +0 -151
  24. package/css-color-hdr.json +0 -183
  25. package/css-color.json +0 -1759
  26. package/css-conditional-4.json +0 -23
  27. package/css-conditional-5.json +0 -505
  28. package/css-conditional.json +0 -50
  29. package/css-contain.json +0 -123
  30. package/css-content.json +0 -466
  31. package/css-counter-styles.json +0 -613
  32. package/css-display.json +0 -444
  33. package/css-easing.json +0 -149
  34. package/css-env.json +0 -109
  35. package/css-exclusions.json +0 -108
  36. package/css-extensions.json +0 -36
  37. package/css-flexbox.json +0 -259
  38. package/css-fonts-5.json +0 -385
  39. package/css-fonts.json +0 -1754
  40. package/css-forms.json +0 -281
  41. package/css-gaps.json +0 -544
  42. package/css-gcpm-4.json +0 -58
  43. package/css-gcpm.json +0 -138
  44. package/css-grid-3.json +0 -335
  45. package/css-grid.json +0 -824
  46. package/css-images-4.json +0 -367
  47. package/css-images-5.json +0 -43
  48. package/css-images.json +0 -373
  49. package/css-inline.json +0 -903
  50. package/css-layout-api.json +0 -21
  51. package/css-line-grid.json +0 -142
  52. package/css-link-params.json +0 -34
  53. package/css-lists.json +0 -337
  54. package/css-logical.json +0 -396
  55. package/css-masking.json +0 -717
  56. package/css-mixins.json +0 -58
  57. package/css-multicol.json +0 -253
  58. package/css-namespaces.json +0 -25
  59. package/css-nav.json +0 -121
  60. package/css-nesting.json +0 -17
  61. package/css-overflow-4.json +0 -428
  62. package/css-overflow-5.json +0 -226
  63. package/css-overflow.json +0 -379
  64. package/css-overscroll.json +0 -215
  65. package/css-page-floats.json +0 -296
  66. package/css-page.json +0 -382
  67. package/css-paint-api.json +0 -17
  68. package/css-position-4.json +0 -49
  69. package/css-position.json +0 -495
  70. package/css-properties-values-api.json +0 -39
  71. package/css-pseudo.json +0 -98
  72. package/css-regions.json +0 -59
  73. package/css-rhythm.json +0 -181
  74. package/css-round-display.json +0 -85
  75. package/css-ruby.json +0 -221
  76. package/css-scoping.json +0 -38
  77. package/css-scroll-anchoring.json +0 -43
  78. package/css-scroll-snap-2.json +0 -74
  79. package/css-scroll-snap.json +0 -643
  80. package/css-scrollbars.json +0 -82
  81. package/css-shadow-parts.json +0 -17
  82. package/css-shapes-2.json +0 -89
  83. package/css-shapes.json +0 -384
  84. package/css-size-adjust.json +0 -50
  85. package/css-sizing-4.json +0 -601
  86. package/css-sizing.json +0 -427
  87. package/css-speech.json +0 -985
  88. package/css-syntax.json +0 -263
  89. package/css-tables.json +0 -91
  90. package/css-text-4.json +0 -1516
  91. package/css-text-decor-4.json +0 -741
  92. package/css-text-decor.json +0 -337
  93. package/css-text.json +0 -670
  94. package/css-transforms-2.json +0 -329
  95. package/css-transforms.json +0 -213
  96. package/css-transitions-2.json +0 -47
  97. package/css-transitions.json +0 -119
  98. package/css-ui.json +0 -818
  99. package/css-values-5.json +0 -854
  100. package/css-values.json +0 -790
  101. package/css-variables.json +0 -29
  102. package/css-view-transitions-2.json +0 -152
  103. package/css-view-transitions.json +0 -77
  104. package/css-viewport.json +0 -43
  105. package/css-will-change.json +0 -64
  106. package/css-writing-modes.json +0 -256
  107. package/fill-stroke.json +0 -755
  108. package/filter-effects-2.json +0 -28
  109. package/filter-effects.json +0 -220
  110. package/html.json +0 -29
  111. package/mathml-core.json +0 -69
  112. package/mediaqueries-5.json +0 -915
  113. package/mediaqueries.json +0 -549
  114. package/motion.json +0 -303
  115. package/pointer-animations.json +0 -282
  116. package/scroll-animations.json +0 -519
  117. package/selectors-5.json +0 -22
  118. package/selectors.json +0 -604
  119. package/svg-strokes.json +0 -59
  120. package/upgrade-insecure-requests.json +0 -28
  121. package/webvtt.json +0 -33
  122. package/webxr-dom-overlays.json +0 -17
package/css-color-5.json DELETED
@@ -1,527 +0,0 @@
1
- {
2
- "spec": {
3
- "title": "CSS Color Module Level 5",
4
- "url": "https://drafts.csswg.org/css-color-5/"
5
- },
6
- "properties": [],
7
- "atrules": [
8
- {
9
- "name": "@color-profile",
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",
12
- "descriptors": [
13
- {
14
- "name": "src",
15
- "href": "https://drafts.csswg.org/css-color-5/#descdef-color-profile-src",
16
- "for": "@color-profile",
17
- "value": "<url>",
18
- "initial": "n/a"
19
- },
20
- {
21
- "name": "rendering-intent",
22
- "href": "https://drafts.csswg.org/css-color-5/#descdef-color-profile-rendering-intent",
23
- "for": "@color-profile",
24
- "value": "relative-colorimetric | absolute-colorimetric | perceptual | saturation",
25
- "initial": "relative-colorimetric",
26
- "values": [
27
- {
28
- "name": "relative-colorimetric",
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",
31
- "type": "value",
32
- "value": "relative-colorimetric"
33
- },
34
- {
35
- "name": "absolute-colorimetric",
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",
38
- "type": "value",
39
- "value": "absolute-colorimetric"
40
- },
41
- {
42
- "name": "perceptual",
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",
45
- "type": "value",
46
- "value": "perceptual"
47
- },
48
- {
49
- "name": "saturation",
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",
52
- "type": "value",
53
- "value": "saturation"
54
- }
55
- ]
56
- },
57
- {
58
- "name": "components",
59
- "href": "https://drafts.csswg.org/css-color-5/#descdef-color-profile-components",
60
- "for": "@color-profile",
61
- "value": "<ident>#",
62
- "initial": "n/a"
63
- }
64
- ],
65
- "value": "@color-profile [<dashed-ident> | device-cmyk] { <declaration-list> }"
66
- }
67
- ],
68
- "selectors": [],
69
- "values": [
70
- {
71
- "name": "<color>",
72
- "prose": "Colors in CSS are represented by the <color> type:",
73
- "href": "https://drafts.csswg.org/css-color-5/#typedef-color",
74
- "type": "type",
75
- "value": "<color-base> | currentColor | <system-color> | <contrast-color()> | <device-cmyk()> | <light-dark()>"
76
- },
77
- {
78
- "name": "<color-base>",
79
- "href": "https://drafts.csswg.org/css-color-5/#typedef-color-base",
80
- "type": "type",
81
- "value": "<hex-color> | <color-function> | <named-color> | <color-mix()> | transparent"
82
- },
83
- {
84
- "name": "color-mix()",
85
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-color-mix",
86
- "type": "function",
87
- "value": "color-mix( <color-interpolation-method> , [ <color> && <percentage [0,100]>? ]#)"
88
- },
89
- {
90
- "name": "<modern-rgb-syntax>",
91
- "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-rgb-syntax",
92
- "type": "type",
93
- "value": "rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
94
- },
95
- {
96
- "name": "<modern-rgba-syntax>",
97
- "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-rgba-syntax",
98
- "type": "type",
99
- "value": "rgba( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )"
100
- },
101
- {
102
- "name": "<modern-hsl-syntax>",
103
- "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-hsl-syntax",
104
- "type": "type",
105
- "value": "hsl([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
106
- },
107
- {
108
- "name": "<modern-hsla-syntax>",
109
- "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-hsla-syntax",
110
- "type": "type",
111
- "value": "hsla([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
112
- },
113
- {
114
- "name": "hwb()",
115
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-hwb",
116
- "type": "function",
117
- "value": "hwb([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )",
118
- "values": [
119
- {
120
- "name": "h",
121
- "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.",
122
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-h",
123
- "type": "value",
124
- "value": "h"
125
- },
126
- {
127
- "name": "w",
128
- "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%.",
129
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-w",
130
- "type": "value",
131
- "value": "w"
132
- },
133
- {
134
- "name": "b",
135
- "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%.",
136
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-b",
137
- "type": "value",
138
- "value": "b"
139
- },
140
- {
141
- "name": "alpha",
142
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
143
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hwb-alpha",
144
- "type": "value",
145
- "value": "alpha"
146
- }
147
- ]
148
- },
149
- {
150
- "name": "lab()",
151
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-lab",
152
- "type": "function",
153
- "value": "lab([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )",
154
- "values": [
155
- {
156
- "name": "l",
157
- "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%.",
158
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-l",
159
- "type": "value",
160
- "value": "l"
161
- },
162
- {
163
- "name": "a",
164
- "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%.",
165
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-a",
166
- "type": "value",
167
- "value": "a"
168
- },
169
- {
170
- "name": "b",
171
- "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%.",
172
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-b",
173
- "type": "value",
174
- "value": "b"
175
- },
176
- {
177
- "name": "alpha",
178
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
179
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lab-alpha",
180
- "type": "value",
181
- "value": "alpha"
182
- }
183
- ]
184
- },
185
- {
186
- "name": "oklab()",
187
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-oklab",
188
- "type": "function",
189
- "value": "oklab([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )",
190
- "values": [
191
- {
192
- "name": "l",
193
- "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%.",
194
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-l",
195
- "type": "value",
196
- "value": "l"
197
- },
198
- {
199
- "name": "a",
200
- "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%.",
201
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-a",
202
- "type": "value",
203
- "value": "a"
204
- },
205
- {
206
- "name": "b",
207
- "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%.",
208
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-b",
209
- "type": "value",
210
- "value": "b"
211
- },
212
- {
213
- "name": "alpha",
214
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
215
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklab-alpha",
216
- "type": "value",
217
- "value": "alpha"
218
- }
219
- ]
220
- },
221
- {
222
- "name": "lch()",
223
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-lch",
224
- "type": "function",
225
- "value": "lch([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )",
226
- "values": [
227
- {
228
- "name": "l",
229
- "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%.",
230
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-l",
231
- "type": "value",
232
- "value": "l"
233
- },
234
- {
235
- "name": "c",
236
- "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%.",
237
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-c",
238
- "type": "value",
239
- "value": "c"
240
- },
241
- {
242
- "name": "h",
243
- "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.",
244
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-h",
245
- "type": "value",
246
- "value": "h"
247
- },
248
- {
249
- "name": "alpha",
250
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
251
- "href": "https://drafts.csswg.org/css-color-5/#valdef-lch-alpha",
252
- "type": "value",
253
- "value": "alpha"
254
- }
255
- ]
256
- },
257
- {
258
- "name": "oklch()",
259
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-oklch",
260
- "type": "function",
261
- "value": "oklch([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )",
262
- "values": [
263
- {
264
- "name": "l",
265
- "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%.",
266
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-l",
267
- "type": "value",
268
- "value": "l"
269
- },
270
- {
271
- "name": "c",
272
- "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%.",
273
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-c",
274
- "type": "value",
275
- "value": "c"
276
- },
277
- {
278
- "name": "h",
279
- "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.",
280
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-h",
281
- "type": "value",
282
- "value": "h"
283
- },
284
- {
285
- "name": "alpha",
286
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
287
- "href": "https://drafts.csswg.org/css-color-5/#valdef-oklch-alpha",
288
- "type": "value",
289
- "value": "alpha"
290
- }
291
- ]
292
- },
293
- {
294
- "name": "color()",
295
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-color",
296
- "type": "function",
297
- "value": "color( [from <color>]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )",
298
- "values": [
299
- {
300
- "name": "r",
301
- "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue components after conversion, if required to the predefined RGB color space. The value 1.0 corresponds to 100%.",
302
- "href": "https://drafts.csswg.org/css-color-5/#valdef-color-r",
303
- "type": "value",
304
- "value": "r"
305
- },
306
- {
307
- "name": "g",
308
- "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue components after conversion, if required to the predefined RGB color space. The value 1.0 corresponds to 100%.",
309
- "href": "https://drafts.csswg.org/css-color-5/#valdef-color-g",
310
- "type": "value",
311
- "value": "g"
312
- },
313
- {
314
- "name": "b",
315
- "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue components after conversion, if required to the predefined RGB color space. The value 1.0 corresponds to 100%.",
316
- "href": "https://drafts.csswg.org/css-color-5/#valdef-color-b",
317
- "type": "value",
318
- "value": "b"
319
- },
320
- {
321
- "name": "x",
322
- "prose": "x, y, z are all <number>s that correspond to the origin color’s X, Y and Z components after conversion, if required to relative CIE XYZ color space adapted to the relevant white point. The value 1.0 corresponds to 100%.",
323
- "href": "https://drafts.csswg.org/css-color-5/#valdef-color-x",
324
- "type": "value",
325
- "value": "x"
326
- },
327
- {
328
- "name": "y",
329
- "prose": "x, y, z are all <number>s that correspond to the origin color’s X, Y and Z components after conversion, if required to relative CIE XYZ color space adapted to the relevant white point. The value 1.0 corresponds to 100%.",
330
- "href": "https://drafts.csswg.org/css-color-5/#valdef-color-y",
331
- "type": "value",
332
- "value": "y"
333
- },
334
- {
335
- "name": "z",
336
- "prose": "x, y, z are all <number>s that correspond to the origin color’s X, Y and Z components after conversion, if required to relative CIE XYZ color space adapted to the relevant white point. The value 1.0 corresponds to 100%.",
337
- "href": "https://drafts.csswg.org/css-color-5/#valdef-color-z",
338
- "type": "value",
339
- "value": "z"
340
- },
341
- {
342
- "name": "alpha",
343
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
344
- "href": "https://drafts.csswg.org/css-color-5/#valdef-color-alpha",
345
- "type": "value",
346
- "value": "alpha"
347
- }
348
- ]
349
- },
350
- {
351
- "name": "<colorspace-params>",
352
- "href": "https://drafts.csswg.org/css-color-5/#typedef-colorspace-params",
353
- "type": "type",
354
- "value": "[<custom-params> | <predefined-rgb-params> | <xyz-params>]"
355
- },
356
- {
357
- "name": "<custom-params>",
358
- "href": "https://drafts.csswg.org/css-color-5/#typedef-custom-params",
359
- "type": "type",
360
- "value": "<dashed-ident> [ <number> | <percentage> | none ]+"
361
- },
362
- {
363
- "name": "<predefined-rgb-params>",
364
- "href": "https://drafts.csswg.org/css-color-5/#typedef-predefined-rgb-params",
365
- "type": "type",
366
- "value": "<predefined-rgb> [ <number> | <percentage> | none ]{3}"
367
- },
368
- {
369
- "name": "<xyz-params>",
370
- "href": "https://drafts.csswg.org/css-color-5/#typedef-xyz-params",
371
- "type": "type",
372
- "value": "<xyz> [ <number> | <percentage> | none ]{3}"
373
- },
374
- {
375
- "name": "<xyz>",
376
- "href": "https://drafts.csswg.org/css-color-5/#typedef-xyz",
377
- "type": "type",
378
- "value": "xyz | xyz-d50 | xyz-d65"
379
- },
380
- {
381
- "name": "device-cmyk()",
382
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-device-cmyk",
383
- "type": "function",
384
- "value": "<legacy-device-cmyk-syntax> | <modern-device-cmyk-syntax>"
385
- },
386
- {
387
- "name": "<legacy-device-cmyk-syntax>",
388
- "href": "https://drafts.csswg.org/css-color-5/#typedef-legacy-device-cmyk-syntax",
389
- "type": "type",
390
- "value": "device-cmyk( <number>#{4} )"
391
- },
392
- {
393
- "name": "<modern-device-cmyk-syntax>",
394
- "href": "https://drafts.csswg.org/css-color-5/#typedef-modern-device-cmyk-syntax",
395
- "type": "type",
396
- "value": "device-cmyk( <cmyk-component>{4} [ / [ <alpha-value> | none ] ]? )"
397
- },
398
- {
399
- "name": "<cmyk-component>",
400
- "href": "https://drafts.csswg.org/css-color-5/#typedef-cmyk-component",
401
- "type": "type",
402
- "value": "<number> | <percentage> | none"
403
- },
404
- {
405
- "name": "light-dark()",
406
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-light-dark",
407
- "type": "function",
408
- "value": "light-dark( <color>, <color> )"
409
- },
410
- {
411
- "name": "contrast-color()",
412
- "href": "https://drafts.csswg.org/css-color-5/#funcdef-contrast-color",
413
- "type": "function",
414
- "value": "contrast-color( <color> )"
415
- },
416
- {
417
- "name": "<color-space>",
418
- "href": "https://drafts.csswg.org/css-color-5/#typedef-color-space",
419
- "type": "type",
420
- "value": "<rectangular-color-space> | <polar-color-space> | <custom-color-space>"
421
- },
422
- {
423
- "name": "<rectangular-color-space>",
424
- "href": "https://drafts.csswg.org/css-color-5/#typedef-rectangular-color-space",
425
- "type": "type",
426
- "value": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | xyz | xyz-d50 | xyz-d65"
427
- },
428
- {
429
- "name": "<polar-color-space>",
430
- "href": "https://drafts.csswg.org/css-color-5/#typedef-polar-color-space",
431
- "type": "type",
432
- "value": "hsl | hwb | lch | oklch"
433
- },
434
- {
435
- "name": "<custom-color-space>",
436
- "href": "https://drafts.csswg.org/css-color-5/#typedef-custom-color-space",
437
- "type": "type",
438
- "value": "<dashed-ident>"
439
- },
440
- {
441
- "name": "<hue-interpolation-method>",
442
- "href": "https://drafts.csswg.org/css-color-5/#typedef-hue-interpolation-method",
443
- "type": "type",
444
- "value": "[ shorter | longer | increasing | decreasing ] hue"
445
- },
446
- {
447
- "name": "<color-interpolation-method>",
448
- "href": "https://drafts.csswg.org/css-color-5/#color-interpolation-method",
449
- "type": "type",
450
- "value": "in [ <rectangular-color-space> | <polar-color-space> <hue-interpolation-method>? | <custom-color-space> ]"
451
- }
452
- ],
453
- "warnings": [
454
- {
455
- "msg": "Dangling value",
456
- "name": "r",
457
- "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue components after conversion, if required to sRGB. 255.0 is equivalent to 100%.",
458
- "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-r",
459
- "type": "value",
460
- "value": "r",
461
- "for": "rgb()"
462
- },
463
- {
464
- "msg": "Dangling value",
465
- "name": "g",
466
- "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue components after conversion, if required to sRGB. 255.0 is equivalent to 100%.",
467
- "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-g",
468
- "type": "value",
469
- "value": "g",
470
- "for": "rgb()"
471
- },
472
- {
473
- "msg": "Dangling value",
474
- "name": "b",
475
- "prose": "r, g, and b are all <number>s that correspond to the origin color’s red, green, and blue components after conversion, if required to sRGB. 255.0 is equivalent to 100%.",
476
- "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-b",
477
- "type": "value",
478
- "value": "b",
479
- "for": "rgb()"
480
- },
481
- {
482
- "msg": "Dangling value",
483
- "name": "alpha",
484
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency. 1.0 is equivalent to 100%.",
485
- "href": "https://drafts.csswg.org/css-color-5/#valdef-rgb-alpha",
486
- "type": "value",
487
- "value": "alpha",
488
- "for": "rgb()"
489
- },
490
- {
491
- "msg": "Dangling value",
492
- "name": "h",
493
- "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.",
494
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-h",
495
- "type": "value",
496
- "value": "h",
497
- "for": "hsl()"
498
- },
499
- {
500
- "msg": "Dangling value",
501
- "name": "s",
502
- "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%.",
503
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-s",
504
- "type": "value",
505
- "value": "s",
506
- "for": "hsl()"
507
- },
508
- {
509
- "msg": "Dangling value",
510
- "name": "l",
511
- "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%.",
512
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-l",
513
- "type": "value",
514
- "value": "l",
515
- "for": "hsl()"
516
- },
517
- {
518
- "msg": "Dangling value",
519
- "name": "alpha",
520
- "prose": "alpha is a <number> that corresponds to the origin color’s alpha transparency 1.0 is equivalent to 100%.",
521
- "href": "https://drafts.csswg.org/css-color-5/#valdef-hsl-alpha",
522
- "type": "value",
523
- "value": "alpha",
524
- "for": "hsl()"
525
- }
526
- ]
527
- }
package/css-color-6.json DELETED
@@ -1,60 +0,0 @@
1
- {
2
- "spec": {
3
- "title": "CSS Color Module Level 6",
4
- "url": "https://drafts.csswg.org/css-color-6/"
5
- },
6
- "properties": [],
7
- "atrules": [],
8
- "selectors": [],
9
- "values": [
10
- {
11
- "name": "contrast-color()",
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",
14
- "type": "function",
15
- "value": "contrast-color( [ [ <color> && [ tbd-fg | tbd-bg ] && <target-contrast>? ] | [ <color> && [ tbd-fg | tbd-bg ] && <target-contrast>, <color># ] ] )",
16
- "values": [
17
- {
18
- "name": "text",
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",
21
- "type": "value",
22
- "value": "text"
23
- },
24
- {
25
- "name": "wcag2",
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",
28
- "type": "value",
29
- "value": "wcag2"
30
- },
31
- {
32
- "name": "wcag2()",
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",
35
- "type": "function"
36
- }
37
- ]
38
- },
39
- {
40
- "name": "<target-contrast>",
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",
43
- "type": "type",
44
- "value": "<wcag2>"
45
- },
46
- {
47
- "name": "<wcag2>",
48
- "href": "https://drafts.csswg.org/css-color-6/#typedef-wcag2",
49
- "type": "type",
50
- "value": "wcag2 | wcag2([<number> | [ aa | aaa ] && large? ])"
51
- },
52
- {
53
- "name": "color-layers()",
54
- "prose": "The color-layers() functional notation takes an optional <blend-mode> followed by a list of two or more <color> layers.",
55
- "href": "https://drafts.csswg.org/css-color-6/#funcdef-color-layers",
56
- "type": "function",
57
- "value": "color-layers([ <blend-mode>, ]? <color># )"
58
- }
59
- ]
60
- }