@csstools/css-syntax-patches-for-csstree 1.0.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Changes to CSS Syntax Patches For CSSTree
2
+
3
+ ### 1.0.0
4
+
5
+ _November 1, 2024_
6
+
7
+ - initial version
package/LICENSE.md ADDED
@@ -0,0 +1,18 @@
1
+ MIT No Attribution (MIT-0)
2
+
3
+ Copyright © CSSTools Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so.
11
+
12
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # CSS Syntax Patches For CSSTree
2
+
3
+ [<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/css-syntax-patches-for-csstree.svg" height="20">][npm-url]
4
+ [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url]
5
+
6
+ Path [csstree](https://github.com/csstree/csstree) syntax definitions with the latest data from CSS specifications.
7
+
8
+ ## Usage
9
+
10
+ ```bash
11
+ npm install @csstools/css-syntax-patches-for-csstree --save-dev
12
+ ```
13
+
14
+ ```js
15
+ import { fork } from 'css-tree';
16
+ import syntax_patches from '@csstools/css-syntax-patches-for-csstree' with { type: 'json' };
17
+
18
+ const forkedLexer = fork({
19
+ atrules: syntax_patches.next.atrules,
20
+ properties: syntax_patches.next.properties,
21
+ types: syntax_patches.next.types,
22
+ }).lexer;
23
+ ```
24
+
25
+ ## `next`
26
+
27
+ ```js
28
+ import syntax_patches from '@csstools/css-syntax-patches-for-csstree' with { type: 'json' };
29
+
30
+ console.log(syntax_patches.next);
31
+ // ^^^^
32
+ ```
33
+
34
+ CSS specifications are often still in flux and various parts might change or disappear altogether.
35
+ Specifications also contains parts that haven't been implemented yet in a browser.
36
+ Only CSS that is widely adopted can be expected to be stable.
37
+
38
+ The `next` grouping contains a combination of what is currently valid in browsers and the progress in various specifications.
39
+
40
+ _In the future more groupings might be added._
41
+
42
+ [cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
43
+ [npm-url]: https://www.npmjs.com/package/@csstools/css-syntax-patches-for-csstree
@@ -0,0 +1,679 @@
1
+ {
2
+ "next": {
3
+ "atrules": {
4
+ "color-profile": {
5
+ "descriptors": {
6
+ "components": "<ident>#",
7
+ "rendering-intent": "relative-colorimetric | absolute-colorimetric | perceptual | saturation",
8
+ "src": "<url>"
9
+ }
10
+ },
11
+ "counter-style": {
12
+ "descriptors": {
13
+ "additive-symbols": "[ <integer [0,∞]> && <symbol> ]#",
14
+ "pad": "<integer [0,∞]> && <symbol>"
15
+ }
16
+ },
17
+ "font-face": {
18
+ "descriptors": {
19
+ "ascent-override": "[ normal | <percentage [0,∞]> ]{1,2}",
20
+ "descent-override": "[ normal | <percentage [0,∞]> ]{1,2}",
21
+ "font-language-override": "normal | <string>",
22
+ "font-named-instance": "auto | <string>",
23
+ "font-size": "auto | [ <number> ]{1,2}",
24
+ "font-style": "auto | normal | italic | oblique [ <angle [-90deg,90deg]>{1,2} ]?",
25
+ "font-weight": "| auto",
26
+ "font-width": "auto | <'font-width'>{1,2}",
27
+ "line-gap-override": "[ normal | <percentage [0,∞]> ]{1,2}",
28
+ "size-adjust": "<percentage [0,∞]>",
29
+ "src": "<font-src-list>",
30
+ "subscript-position-override": "[ normal | from-font | <percentage> ]{1,2}",
31
+ "subscript-size-override": "[ normal | from-font | <percentage [0,∞]> ]{1,2}",
32
+ "superscript-position-override": "[ normal | from-font | <percentage> ]{1,2}",
33
+ "superscript-size-override": "[ normal | from-font | <percentage [0,∞]> ]{1,2}"
34
+ }
35
+ },
36
+ "font-feature-values": {
37
+ "descriptors": {
38
+ "@annotation": "@annotation { <declaration-list> }",
39
+ "@character-variant": "@character-variant { <declaration-list> }",
40
+ "@historical-forms": "@historical-forms { <declaration-list> }",
41
+ "@ornaments": "@ornaments { <declaration-list> }",
42
+ "@styleset": "@styleset { <declaration-list> }",
43
+ "@stylistic": "@stylistic { <declaration-list> }",
44
+ "@swash": "@swash { <declaration-list> }",
45
+ "font-display": "auto | block | swap | fallback | optional"
46
+ }
47
+ },
48
+ "font-palette-values": {
49
+ "descriptors": {
50
+ "override-colors": "[ <integer [0,∞]> <color> ]#"
51
+ }
52
+ },
53
+ "function": {
54
+ "descriptors": {
55
+ "result": "<declaration-value>?"
56
+ }
57
+ },
58
+ "page": {
59
+ "descriptors": {
60
+ "size": "<length [0,∞]>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]"
61
+ }
62
+ },
63
+ "view-transition": {
64
+ "descriptors": {
65
+ "navigation": "auto | none",
66
+ "types": "none | <custom-ident>+"
67
+ }
68
+ }
69
+ },
70
+ "properties": {
71
+ "align-items": "| anchor-center",
72
+ "align-self": "| anchor-center",
73
+ "alignment-baseline": "| text-bottom | text-top",
74
+ "animation-duration": "[ auto | <time [0s,∞]> ]#",
75
+ "appearance": "none | auto | base | <compat-auto> | <compat-special>",
76
+ "aspect-ratio": "auto || <ratio>",
77
+ "backdrop-filter": "none | <filter-value-list>",
78
+ "background": "<bg-layer>#? , <final-bg-layer>",
79
+ "background-blend-mode": "<'mix-blend-mode'>#",
80
+ "background-origin": "<visual-box>#",
81
+ "background-position-block": "[ center | [ [ start | end ]? <length-percentage>? ]! ]#",
82
+ "background-position-inline": "[ center | [ [ start | end ]? <length-percentage>? ]! ]#",
83
+ "background-repeat-block": "<repetition>#",
84
+ "background-repeat-inline": "<repetition>#",
85
+ "background-repeat-x": "<repetition>#",
86
+ "background-repeat-y": "<repetition>#",
87
+ "baseline-shift": "<length-percentage> | sub | super | top | center | bottom",
88
+ "baseline-source": "auto | first | last",
89
+ "block-ellipsis": "none | auto | <string>",
90
+ "block-step": "<'block-step-size'> || <'block-step-insert'> || <'block-step-align'> || <'block-step-round'>",
91
+ "block-step-align": "auto | center | start | end",
92
+ "block-step-insert": "margin | padding",
93
+ "block-step-round": "up | down | nearest",
94
+ "block-step-size": "none | <length [0,∞]>",
95
+ "bookmark-label": "<content-list>",
96
+ "bookmark-level": "none | <integer [1,∞]>",
97
+ "bookmark-state": "open | closed",
98
+ "border-block": "<'border-block-start'>",
99
+ "border-block-end": "<line-width> || <line-style> || <color>",
100
+ "border-block-end-color": "<color> | <image-1D>",
101
+ "border-block-end-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
102
+ "border-block-end-style": "<line-style>",
103
+ "border-block-end-width": "<line-width>",
104
+ "border-block-start": "<line-width> || <line-style> || <color>",
105
+ "border-block-start-color": "<color> | <image-1D>",
106
+ "border-block-start-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
107
+ "border-block-start-style": "<line-style>",
108
+ "border-block-start-width": "<line-width>",
109
+ "border-block-style": "<'border-top-style'>{1,2}",
110
+ "border-block-width": "<'border-top-width'>{1,2}",
111
+ "border-bottom-color": "<color> | <image-1D>",
112
+ "border-bottom-left-radius": "<length-percentage [0,∞]>{1,2}",
113
+ "border-bottom-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
114
+ "border-bottom-right-radius": "<length-percentage [0,∞]>{1,2}",
115
+ "border-boundary": "none | parent | display",
116
+ "border-clip": "normal | [ <length-percentage [0,∞]> | <flex> ]+",
117
+ "border-clip-bottom": "normal | [ <length-percentage [0,∞]> | <flex> ]+",
118
+ "border-clip-left": "normal | [ <length-percentage [0,∞]> | <flex> ]+",
119
+ "border-clip-right": "normal | [ <length-percentage [0,∞]> | <flex> ]+",
120
+ "border-clip-top": "normal | [ <length-percentage [0,∞]> | <flex> ]+",
121
+ "border-color": "[ <color> | <image-1D> ]{1,4}",
122
+ "border-end-end-radius": "<length-percentage [0,∞]>{1,2}",
123
+ "border-end-start-radius": "<length-percentage [0,∞]>{1,2}",
124
+ "border-image-outset": "[ <length [0,∞]> | <number [0,∞]> ]{1,4}",
125
+ "border-image-slice": "[ <number [0,∞]> | <percentage [0,∞]> ]{1,4} && fill?",
126
+ "border-image-width": "[ <length-percentage [0,∞]> | <number [0,∞]> | auto ]{1,4}",
127
+ "border-inline": "<'border-block-start'>",
128
+ "border-inline-end": "<line-width> || <line-style> || <color>",
129
+ "border-inline-end-color": "<color> | <image-1D>",
130
+ "border-inline-end-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
131
+ "border-inline-end-style": "<line-style>",
132
+ "border-inline-end-width": "<line-width>",
133
+ "border-inline-start": "<line-width> || <line-style> || <color>",
134
+ "border-inline-start-color": "<color> | <image-1D>",
135
+ "border-inline-start-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
136
+ "border-inline-start-style": "<line-style>",
137
+ "border-inline-start-width": "<line-width>",
138
+ "border-inline-style": "<'border-top-style'>{1,2}",
139
+ "border-inline-width": "<'border-top-width'>{1,2}",
140
+ "border-left-color": "<color> | <image-1D>",
141
+ "border-left-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
142
+ "border-limit": "all | [ sides | corners ] <length-percentage [0,∞]>? | [ top | right | bottom | left ] <length-percentage [0,∞]>",
143
+ "border-radius": "<length-percentage [0,∞]>{1,4} [ / <length-percentage [0,∞]>{1,4} ]?",
144
+ "border-right-color": "<color> | <image-1D>",
145
+ "border-right-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
146
+ "border-spacing": "<length>{1,2}",
147
+ "border-start-end-radius": "<length-percentage [0,∞]>{1,2}",
148
+ "border-start-start-radius": "<length-percentage [0,∞]>{1,2}",
149
+ "border-top-color": "<color> | <image-1D>",
150
+ "border-top-left-radius": "<length-percentage [0,∞]>{1,2}",
151
+ "border-top-radius": "<length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?",
152
+ "border-top-right-radius": "<length-percentage [0,∞]>{1,2}",
153
+ "bottom": "| <anchor()> | <anchor-size()>",
154
+ "box-shadow": "<spread-shadow>#",
155
+ "box-shadow-blur": "<length [0,∞]>#",
156
+ "box-shadow-color": "<color>#",
157
+ "box-shadow-offset": "[ none | <length>{2} ]#",
158
+ "box-shadow-position": "[ outset | inset ]#",
159
+ "box-shadow-spread": "<length>#",
160
+ "box-snap": "none | block-start | block-end | center | baseline | last-baseline",
161
+ "caret": "<'caret-color'> || <'caret-animation'> || <'caret-shape'>",
162
+ "caret-animation": "auto | manual",
163
+ "clear": "| block-start | block-end | top | bottom | both-inline | both-block",
164
+ "color-adjust": "<'print-color-adjust'>",
165
+ "color-interpolation": "auto | sRGB | linearRGB",
166
+ "column-count": "auto | <integer [1,∞]>",
167
+ "column-gap": "normal | <length-percentage [0,∞]>",
168
+ "column-rule-style": "<line-style>",
169
+ "column-rule-width": "<line-width>",
170
+ "column-span": "| <integer [1,∞]> | auto",
171
+ "column-width": "auto | <length [0,∞]> | min-content | max-content | fit-content( <length-percentage> )",
172
+ "contain": "none | strict | content | [ [ size | inline-size ] || layout || style || paint ]",
173
+ "container-type": "normal | [ [ size | inline-size ] || scroll-state ]",
174
+ "content": "normal | none | [ <content-replacement> | <content-list> ] [ / [ <string> | <counter> | <attr()> ]+ ]? | <element()>",
175
+ "continue": "auto | discard | -webkit-discard | overflow | paginate | fragments",
176
+ "copy-into": "none | [ [ <custom-ident> <content-level> ] [, <custom-ident> <content-level> ]* ]?",
177
+ "corner-shape": "[ round | angle ]{1,4}",
178
+ "corners": "<'corner-shape'> || <'border-radius'>",
179
+ "cursor": "[ [ <url> | <url-set()> ] [ <x> <y> ]? ]#? [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | grab | grabbing | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ]",
180
+ "cx": "<length-percentage>",
181
+ "cy": "<length-percentage>",
182
+ "display": "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy> | <-non-standard-display> | masonry | inline-masonry | <display-outside> || [ <display-inside> | math ]",
183
+ "dominant-baseline": "auto | text-bottom | text-top | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge",
184
+ "dynamic-range-limit": "standard | high | constrained-high",
185
+ "fill-break": "bounding-box | slice | clone",
186
+ "fill-color": "<color>",
187
+ "fill-image": "<paint>#",
188
+ "fill-opacity": "<'opacity'>",
189
+ "fill-origin": "match-parent | fill-box | stroke-box | content-box | padding-box | border-box",
190
+ "fill-position": "<position>#",
191
+ "fill-repeat": "<repeat-style>#",
192
+ "fill-size": "<bg-size>#",
193
+ "filter": "none | <filter-value-list> | <-ms-filter-function-list>",
194
+ "flex-grow": "<number [0,∞]>",
195
+ "flex-shrink": "<number [0,∞]>",
196
+ "float": "| block-start | block-end | snap-block | snap-block( <length> , [ start | end | near ]? ) | snap-inline | snap-inline( <length> , [ left | right | near ]? ) | top | bottom | footnote",
197
+ "float-defer": "<integer> | last | none",
198
+ "float-offset": "<length> | <percentage>",
199
+ "float-reference": "inline | column | region | page",
200
+ "flood-color": "<color>",
201
+ "flood-opacity": "<'opacity'>",
202
+ "flow-from": "<ident> | none",
203
+ "flow-into": "none | <ident> [ element | content ]?",
204
+ "font-palette": "| <palette-mix()>",
205
+ "font-size": "<absolute-size> | <relative-size> | <length-percentage [0,∞]> | math",
206
+ "font-size-adjust": "none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number [0,∞]> ]",
207
+ "font-style": "normal | italic | oblique <angle [-90deg,90deg]>?",
208
+ "font-variant": "normal | none | [ [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ] || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ] || [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ] || [ <east-asian-variant-values> || <east-asian-width-values> || ruby ] || [ sub | super ] || [ text | emoji | unicode ] ]",
209
+ "font-variation-settings": "normal | [ <opentype-tag> <number> ]#",
210
+ "font-width": "normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded",
211
+ "footnote-display": "block | inline | compact",
212
+ "footnote-policy": "auto | line | block",
213
+ "forced-color-adjust": "| preserve-parent-color",
214
+ "glyph-orientation-vertical": "auto | 0deg | 90deg | 0 | 90",
215
+ "grid-auto-flow": "[ row | column | row-reverse | column-reverse ] || dense || wrap-reverse",
216
+ "grid-template-columns": "| masonry",
217
+ "grid-template-rows": "| masonry",
218
+ "height": "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content( <length-percentage [0,∞]> ) | <calc-size()> | stretch | fit-content | contain | <anchor-size()> | <-non-standard-size>",
219
+ "hyphenate-limit-last": "none | always | column | page | spread",
220
+ "hyphenate-limit-lines": "no-limit | <integer>",
221
+ "hyphenate-limit-zone": "<length-percentage>",
222
+ "image-orientation": "from-image | none | [ <angle> || flip ]",
223
+ "image-rendering": "auto | smooth | high-quality | pixelated | crisp-edges | <-non-standard-image-rendering>",
224
+ "initial-letter": "normal | <number [1,∞]> <integer [1,∞]> | <number [1,∞]> && [ drop | raise ]?",
225
+ "initial-letter-align": "[ border-box? [ alphabetic | ideographic | hanging | leading ]? ]!",
226
+ "initial-letter-wrap": "none | first | all | grid | <length-percentage>",
227
+ "inline-sizing": "normal | stretch",
228
+ "inset-block-end": "auto | <length-percentage>",
229
+ "inset-block-start": "auto | <length-percentage>",
230
+ "inset-inline-end": "auto | <length-percentage>",
231
+ "inset-inline-start": "auto | <length-percentage>",
232
+ "interpolate-size": "numeric-only | allow-keywords",
233
+ "isolation": "<isolation-mode>",
234
+ "justify-items": "| anchor-center",
235
+ "justify-self": "| anchor-center",
236
+ "left": "| <anchor()> | <anchor-size()>",
237
+ "lighting-color": "<color>",
238
+ "line-clamp": "none | <integer [1,∞]> || <'block-ellipsis'>",
239
+ "-webkit-line-clamp": "none | <integer [1,∞]>",
240
+ "line-fit-edge": "leading | <text-edge>",
241
+ "line-grid": "match-parent | create",
242
+ "line-height": "normal | <number [0,∞]> | <length-percentage [0,∞]>",
243
+ "line-height-step": "<length [0,∞]>",
244
+ "line-padding": "<length>",
245
+ "line-snap": "none | baseline | contain",
246
+ "link-parameters": "none | <link-param>+",
247
+ "list-style": "<'list-style-position'> || <'list-style-image'> || <'list-style-type'>",
248
+ "margin": "<'margin-top'>{1,4}",
249
+ "margin-block": "<'margin-top'>{1,2}",
250
+ "margin-block-end": "<'margin-top'>",
251
+ "margin-block-start": "<'margin-top'>",
252
+ "margin-bottom": "| <anchor-size()>",
253
+ "margin-break": "auto | keep | discard",
254
+ "margin-inline": "<'margin-top'>{1,2}",
255
+ "margin-inline-end": "<'margin-top'>",
256
+ "margin-inline-start": "<'margin-top'>",
257
+ "margin-left": "| <anchor-size()>",
258
+ "margin-right": "| <anchor-size()>",
259
+ "margin-top": "| <anchor-size()>",
260
+ "margin-trim": "none | [ block || inline ] | [ block-start || inline-start || block-end || inline-end ]",
261
+ "marker": "none | <marker-ref>",
262
+ "marker-end": "none | <marker-ref>",
263
+ "marker-mid": "none | <marker-ref>",
264
+ "marker-side": "match-self | match-parent",
265
+ "marker-start": "none | <marker-ref>",
266
+ "mask-border-slice": "[ <number> | <percentage> ]{1,4} fill?",
267
+ "mask-clip": "[ <coord-box> | no-clip ]#",
268
+ "mask-origin": "<coord-box>#",
269
+ "masonry": "<'masonry-template-areas'> || <'masonry-template-tracks'> || <'masonry-direction'> || <'masonry-fill'>",
270
+ "masonry-auto-tracks": "<'grid-auto-columns'>",
271
+ "masonry-direction": "row | column | row-reverse | column-reverse",
272
+ "masonry-fill": "normal | reverse",
273
+ "masonry-flow": "<'masonry-direction'> || <'masonry-fill'>",
274
+ "masonry-slack": "<length-percentage> | infinite",
275
+ "masonry-template-areas": "none | <string>",
276
+ "masonry-template-tracks": "none | <track-list> | <masonry-auto-track-list> | subgrid <line-name-list>?",
277
+ "max-height": "none | <length-percentage [0,∞]> | min-content | max-content | fit-content( <length-percentage [0,∞]> ) | <calc-size()> | stretch | <-non-standard-size> | fit-content | contain | <anchor-size()>",
278
+ "max-lines": "none | <integer [1,∞]>",
279
+ "max-width": "none | <length-percentage [0,∞]> | min-content | max-content | fit-content( <length-percentage [0,∞]> ) | <calc-size()> | stretch | <-non-standard-size> | fit-content | contain | <anchor-size()>",
280
+ "min-height": "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content( <length-percentage [0,∞]> ) | <calc-size()> | stretch | <-non-standard-size> | fit-content | contain | <anchor-size()>",
281
+ "min-intrinsic-sizing": "legacy | zero-if-scroll || zero-if-extrinsic",
282
+ "min-width": "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content( <length-percentage [0,∞]> ) | <calc-size()> | stretch | <-non-standard-size> | fit-content | contain | <anchor-size()>",
283
+ "mix-blend-mode": "<blend-mode> | plus-darker | plus-lighter",
284
+ "object-fit": "fill | none | [ contain | cover ] || scale-down",
285
+ "object-view-box": "none | <basic-shape-rect>",
286
+ "opacity": "<opacity-value>",
287
+ "orphans": "<integer [1,∞]>",
288
+ "outline-color": "auto | [ <color> | <image-1D> ]",
289
+ "outline-style": "auto | none | dotted | dashed | solid | double | groove | ridge | inset | outset",
290
+ "overflow": "<'overflow-block'>{1,2} | <-non-standard-overflow>",
291
+ "overflow-clip-margin-block": "<visual-box> || <length [0,∞]>",
292
+ "overflow-clip-margin-block-end": "<visual-box> || <length [0,∞]>",
293
+ "overflow-clip-margin-block-start": "<visual-box> || <length [0,∞]>",
294
+ "overflow-clip-margin-bottom": "<visual-box> || <length [0,∞]>",
295
+ "overflow-clip-margin-inline": "<visual-box> || <length [0,∞]>",
296
+ "overflow-clip-margin-inline-end": "<visual-box> || <length [0,∞]>",
297
+ "overflow-clip-margin-inline-start": "<visual-box> || <length [0,∞]>",
298
+ "overflow-clip-margin-left": "<visual-box> || <length [0,∞]>",
299
+ "overflow-clip-margin-right": "<visual-box> || <length [0,∞]>",
300
+ "overflow-clip-margin-top": "<visual-box> || <length [0,∞]>",
301
+ "padding": "<'padding-top'>{1,4}",
302
+ "padding-block": "<'padding-top'>{1,2}",
303
+ "padding-block-end": "<'padding-top'>",
304
+ "padding-block-start": "<'padding-top'>",
305
+ "padding-bottom": "<length-percentage [0,∞]>",
306
+ "padding-inline": "<'padding-top'>{1,2}",
307
+ "padding-inline-end": "<'padding-top'>",
308
+ "padding-inline-start": "<'padding-top'>",
309
+ "padding-left": "<length-percentage [0,∞]>",
310
+ "padding-right": "<length-percentage [0,∞]>",
311
+ "padding-top": "<length-percentage [0,∞]>",
312
+ "pause-after": "<time [0s,∞]> | none | x-weak | weak | medium | strong | x-strong",
313
+ "pause-before": "<time [0s,∞]> | none | x-weak | weak | medium | strong | x-strong",
314
+ "perspective": "none | <length [0,∞]>",
315
+ "pointer-events": "| bounding-box",
316
+ "position": "| <running()>",
317
+ "position-anchor": "auto | <anchor-name>",
318
+ "quotes": "| match-parent",
319
+ "r": "<length-percentage>",
320
+ "reading-flow": "normal | flex-visual | flex-flow | grid-rows | grid-columns | grid-order",
321
+ "region-fragment": "auto | break",
322
+ "rest-after": "<time [0s,∞]> | none | x-weak | weak | medium | strong | x-strong",
323
+ "rest-before": "<time [0s,∞]> | none | x-weak | weak | medium | strong | x-strong",
324
+ "right": "| <anchor()> | <anchor-size()>",
325
+ "row-gap": "normal | <length-percentage [0,∞]>",
326
+ "ruby-merge": "separate | merge | auto",
327
+ "ruby-overhang": "auto | none",
328
+ "rx": "<length-percentage> | auto",
329
+ "ry": "<length-percentage> | auto",
330
+ "scale": "none | [ <number> | <percentage> ]{1,3}",
331
+ "scroll-marker-group": "none | before | after",
332
+ "scroll-padding": "[ auto | <length-percentage [0,∞]> ]{1,4}",
333
+ "scroll-padding-block": "[ auto | <length-percentage [0,∞]> ]{1,2}",
334
+ "scroll-padding-block-end": "auto | <length-percentage [0,∞]>",
335
+ "scroll-padding-block-start": "auto | <length-percentage [0,∞]>",
336
+ "scroll-padding-bottom": "auto | <length-percentage [0,∞]>",
337
+ "scroll-padding-inline": "[ auto | <length-percentage [0,∞]> ]{1,2}",
338
+ "scroll-padding-inline-end": "auto | <length-percentage [0,∞]>",
339
+ "scroll-padding-inline-start": "auto | <length-percentage [0,∞]>",
340
+ "scroll-padding-left": "auto | <length-percentage [0,∞]>",
341
+ "scroll-padding-right": "auto | <length-percentage [0,∞]>",
342
+ "scroll-padding-top": "auto | <length-percentage [0,∞]>",
343
+ "scroll-start-target": "[ none | auto ]",
344
+ "scroll-timeline": "[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#",
345
+ "shape-image-threshold": "<opacity-value>",
346
+ "shape-inside": "auto | outside-shape | [ <basic-shape> || shape-box ] | <image> | display",
347
+ "shape-margin": "<length-percentage [0,∞]>",
348
+ "shape-padding": "<length-percentage [0,∞]>",
349
+ "shape-subtract": "none | [ <basic-shape> | <url> ]+",
350
+ "spatial-navigation-action": "auto | focus | scroll",
351
+ "spatial-navigation-contain": "auto | contain",
352
+ "spatial-navigation-function": "normal | grid",
353
+ "string-set": "none | [ <custom-ident> <string>+ ]#",
354
+ "stroke-align": "center | inset | outset",
355
+ "stroke-alignment": "center | inner | outer",
356
+ "stroke-break": "bounding-box | slice | clone",
357
+ "stroke-color": "<color>#",
358
+ "stroke-dash-corner": "none | <length>",
359
+ "stroke-dash-justify": "none | [ stretch | compress ] || [ dashes || gaps ]",
360
+ "stroke-dashadjust": "none | [ stretch | compress ] [ dashes | gaps ]?",
361
+ "stroke-dasharray": "none | [ <length-percentage> | <number> ]+#",
362
+ "stroke-dashcorner": "none | <length>",
363
+ "stroke-dashoffset": "<length-percentage> | <number>",
364
+ "stroke-image": "<paint>#",
365
+ "stroke-linejoin": "[ crop | arcs | miter ] || [ bevel | round | fallback ]",
366
+ "stroke-miterlimit": "<number>",
367
+ "stroke-opacity": "<'opacity'>",
368
+ "stroke-origin": "match-parent | fill-box | stroke-box | content-box | padding-box | border-box",
369
+ "stroke-position": "<position>#",
370
+ "stroke-repeat": "<repeat-style>#",
371
+ "stroke-size": "<bg-size>#",
372
+ "stroke-width": "[ <length-percentage> | <number> ]#",
373
+ "tab-size": "<number [0,∞]> | <length [0,∞]>",
374
+ "text-align": "| <string> | justify-all",
375
+ "text-align-all": "start | end | left | right | center | <string> | justify | match-parent",
376
+ "text-align-last": "| match-parent",
377
+ "text-autospace": "normal | <autospace> | auto",
378
+ "text-box": "normal | <'text-box-trim'> || <'text-box-edge'>",
379
+ "text-box-edge": "auto | <text-edge>",
380
+ "text-box-trim": "none | trim-start | trim-end | trim-both",
381
+ "text-combine-upright": "none | all | [ digits <integer [2,4]>? ]",
382
+ "text-decoration-skip": "none | auto",
383
+ "text-decoration-skip-box": "none | all",
384
+ "text-decoration-skip-self": "auto | skip-all | [ skip-underline || skip-overline || skip-line-through ] | no-skip",
385
+ "text-decoration-skip-spaces": "none | all | [ start || end ]",
386
+ "text-decoration-thickness": "auto | from-font | <length-percentage>",
387
+ "text-decoration-trim": "<length>{1,2} | auto",
388
+ "text-emphasis-position": "[ over | under ] && [ right | left ]?",
389
+ "text-emphasis-skip": "spaces || punctuation || symbols || narrow",
390
+ "text-group-align": "none | start | end | left | right | center",
391
+ "text-indent": "[ <length-percentage> ] && hanging? && each-line?",
392
+ "text-justify": "[ auto | none | inter-word | inter-character | ruby ] || no-compress",
393
+ "text-overflow": "[ clip | ellipsis | <string> | fade | fade( [ <length> | <percentage> ] ) ]{1,2}",
394
+ "text-shadow": "none | <shadow>#",
395
+ "text-size-adjust": "auto | none | <percentage [0,∞]>",
396
+ "text-spacing": "none | auto | <spacing-trim> || <autospace>",
397
+ "text-spacing-trim": "<spacing-trim> | auto",
398
+ "-webkit-text-stroke": "<line-width> || <color>",
399
+ "-webkit-text-stroke-width": "<line-width>",
400
+ "text-transform": "none | [ capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto",
401
+ "text-underline-offset": "auto | <length-percentage>",
402
+ "text-underline-position": "auto | [ from-font | under ] || [ left | right ]",
403
+ "text-wrap": "<'text-wrap-mode'> || <'text-wrap-style'>",
404
+ "text-wrap-mode": "wrap | nowrap",
405
+ "text-wrap-style": "auto | balance | stable | pretty | avoid-orphans",
406
+ "timeline-scope": "| all",
407
+ "top": "| <anchor()> | <anchor-size()>",
408
+ "transform-origin": "[ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] <length>? | [ [ center | left | right ] && [ center | top | bottom ] ] <length>?",
409
+ "transition-duration": "<time [0s,∞]>#",
410
+ "vertical-align": "[ first | last ] || <'alignment-baseline'> || <'baseline-shift'>",
411
+ "view-timeline": "[ <'view-timeline-name'> [ <'view-timeline-axis'> || <'view-timeline-inset'> ]? ]#",
412
+ "view-timeline-name": "[ none | <dashed-ident> ]#",
413
+ "view-transition-class": "none | <custom-ident>+",
414
+ "view-transition-group": "normal | contain | nearest | <custom-ident>",
415
+ "voice-duration": "auto | <time [0s,∞]>",
416
+ "voice-pitch": "<frequency [0Hz,∞]> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]",
417
+ "voice-range": "<frequency [0Hz,∞]> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]",
418
+ "voice-rate": "[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage [0,∞]>",
419
+ "widows": "<integer [1,∞]>",
420
+ "width": "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content( <length-percentage [0,∞]> ) | <calc-size()> | stretch | <-non-standard-size> | fit-content | contain | <anchor-size()>",
421
+ "word-break": "| manual",
422
+ "word-space-transform": "none | [ space | ideographic-space ] && auto-phrase?",
423
+ "word-spacing": "normal | <length-percentage>",
424
+ "word-wrap": "| anywhere",
425
+ "wrap-after": "auto | avoid | avoid-line | avoid-flex | line | flex",
426
+ "wrap-before": "auto | avoid | avoid-line | avoid-flex | line | flex",
427
+ "wrap-flow": "auto | both | start | end | minimum | maximum | clear",
428
+ "wrap-inside": "auto | avoid",
429
+ "wrap-through": "wrap | none",
430
+ "x": "<length-percentage>",
431
+ "y": "<length-percentage>"
432
+ },
433
+ "types": {
434
+ "dashed-ident": "<custom-property-name>",
435
+ "anchor-name": "<dashed-ident>",
436
+ "anchor-size()": "anchor-size( [ <anchor-name> || <anchor-size> ]? , <length-percentage>? )",
437
+ "anchor()": "anchor( <anchor-name>? && <anchor-side> , <length-percentage>? )",
438
+ "angle-percentage": "[ <angle> | <percentage> ]",
439
+ "angular-color-stop": "<color> <color-stop-angle>?",
440
+ "angular-color-stop-list": "<angular-color-stop> , [ <angular-color-hint>? , <angular-color-stop> ]#?",
441
+ "arc-command": "arc [ [ <by-to> <coordinate-pair> ] || [ of <length-percentage>{1,2} ] || <arc-sweep>? || <arc-size>? || [ rotate <angle> ]? ]",
442
+ "arc-size": "large | small",
443
+ "arc-sweep": "cw | ccw",
444
+ "attr-name": "[ [ <ident-token> '|' ]? <ident-token> ]",
445
+ "attr-type": "string | ident | color | number | percentage | length | angle | time | frequency | flex | <dimension-unit>",
446
+ "attr()": "attr( [ <attr-name> <attr-type>? , <declaration-value>? ] )",
447
+ "autospace": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]",
448
+ "axis": "block | inline | x | y",
449
+ "baseline-position": "[ first | last ]? && baseline",
450
+ "basic-shape": "inset( <length-percentage>{1,4} [ round <'border-radius'> ]? ) | xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [ round <'border-radius'> ]? ) | rect( [ <length-percentage> | auto ]{4} [ round <'border-radius'> ]? ) | circle( <radial-size>? [ at <position> ]? ) | ellipse( [ <radial-size>{2} ]? [ at <position> ]? ) | polygon( <'fill-rule'>? [ round <length> ]? , [ <length-percentage> <length-percentage> ]# ) | path( <'fill-rule'>? , <string> )",
451
+ "basic-shape-rect": "<inset()> | rect( [ <length-percentage> | auto ]{4} [ round <'border-radius'> ]? ) | xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [ round <'border-radius'> ]? )",
452
+ "bg-clip": "<visual-box> | border-area | text",
453
+ "bg-layer": "<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <visual-box> || <visual-box>",
454
+ "bg-position": "<position> | <position-three>",
455
+ "bg-size": "[ <length-percentage [0,∞]> | auto ]{1,2} | cover | contain",
456
+ "border-style": "none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset",
457
+ "border-width": "thin | medium | thick | <length>",
458
+ "bottom": "<length-percentage> | auto",
459
+ "box": "| margin-box | fill-box | stroke-box | view-box",
460
+ "by-to": "by | to",
461
+ "calc-keyword": "e | pi | infinity | -infinity | NaN",
462
+ "calc-mix()": "calc-mix( <progress> , <calc-sum> , <calc-sum> )",
463
+ "calc-product": "<calc-value> [ [ '*' | '/' ] <calc-value> ]*",
464
+ "calc-size-basis": "[ <intrinsic-size-keyword> | <calc-size()> | any | <calc-sum> ]",
465
+ "calc-size()": "calc-size( <calc-size-basis> , <calc-sum> )",
466
+ "calc-value": "<number> | <dimension> | <percentage> | <calc-keyword> | ( <calc-sum> )",
467
+ "cf-image": "[ <image> | <color> ] && <percentage [0,100]>?",
468
+ "clamp()": "clamp( [ <calc-sum> | none ] , <calc-sum> , [ <calc-sum> | none ] )",
469
+ "color": "<color-base> | currentColor | <system-color> | <contrast-color()> | <device-cmyk()> | <light-dark()> | <-non-standard-color>",
470
+ "color-font-tech": "[ color-COLRv0 | color-COLRv1 | color-SVG | color-sbix | color-CBDT ]",
471
+ "color-layers()": "color-layers( [ <blend-mode> , ]? <color># )",
472
+ "color-stop-list": "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#?",
473
+ "color-stripe": "<color> && [ <length-percentage> | <flex> ]?",
474
+ "color()": "color( [ from <color> ]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )",
475
+ "colorspace-params": "[ <custom-params> | <predefined-rgb-params> | <predefined-polar-params> | <predefined-rectangular-params> | <xyz-params> ]",
476
+ "compat-special": "textfield | menulist-button",
477
+ "composite-mode": "clear | copy | source-over | destination-over | source-in | destination-in | source-out | destination-out | source-atop | destination-atop | xor | lighter | plus-darker | plus-lighter",
478
+ "conic-gradient-syntax": "[ [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>",
479
+ "conic-gradient()": "conic-gradient( [ <conic-gradient-syntax> ] )",
480
+ "container-condition": "[ <container-name> ]? <container-query>",
481
+ "container-progress()": "container-progress( <size-feature> [ of <container-name> ]? from <calc-sum> to <calc-sum> )",
482
+ "container-query": "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]",
483
+ "content-level": "element | content | text | <attr()> | <counter>",
484
+ "content-list": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> | <counter()> | <counters()> ]+",
485
+ "content()": "content( [ text | before | after | first-letter | marker ]? )",
486
+ "contrast-color()": "contrast-color( <color> max? )",
487
+ "coord-box": "<paint-box> | view-box",
488
+ "coordinate-pair": "<length-percentage>{2}",
489
+ "counter-style": "<counter-style-name> | <symbols()>",
490
+ "counter-style-name": "| decimal | decimal-leading-zero | arabic-indic | armenian | upper-armenian | lower-armenian | bengali | cambodian | khmer | cjk-decimal | devanagari | georgian | gujarati | gurmukhi | hebrew | kannada | lao | malayalam | mongolian | myanmar | oriya | persian | lower-roman | upper-roman | tamil | telugu | thai | tibetan | lower-alpha | lower-latin | upper-alpha | upper-latin | lower-greek | hiragana | hiragana-iroha | katakana | katakana-iroha | disc | circle | square | disclosure-open | disclosure-closed | cjk-earthly-branch | cjk-heavenly-stem | korean-hangul-formal | korean-hanja-informal | korean-hanja-formal | ethiopic-numeric",
491
+ "cross-fade()": "cross-fade( <cf-image># )",
492
+ "crossorigin-modifier": "crossorigin( anonymous | use-credentials )",
493
+ "css-type": "<syntax-component> | <type()>",
494
+ "cubic-bezier-easing-function": "ease | ease-in | ease-out | ease-in-out | <cubic-bezier()>",
495
+ "cubic-bezier()": "cubic-bezier( [ <number [0,1]> , <number> ]#{2} )",
496
+ "curve-command": "curve [ <by-to> <coordinate-pair> using <coordinate-pair>{1,2} ]",
497
+ "custom-arg": "$ <ident-token> ;",
498
+ "custom-params": "<dashed-ident> [ <number> | <percentage> | none ]+",
499
+ "dasharray": "[ [ <length-percentage> | <number> ]+ ]#",
500
+ "deprecated-color": "ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonHighlight | ButtonShadow | CaptionText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText",
501
+ "dimension-unit": "'%' | em | ex | cap | ch | ic | rem | lh | rlh | vw | vh | vi | vb | vmin | vmax | cm | mm | q | in | pc | pt | px | deg | grad | rad | turn | s | ms | hz | khz | fr",
502
+ "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]>? ]#{2} )",
503
+ "easing-function": "<linear-easing-function> | <cubic-bezier-easing-function> | <step-easing-function>",
504
+ "element()": "element( <id-selector> )",
505
+ "env()": "env( <custom-ident> <integer [0,∞]>* , <declaration-value>? )",
506
+ "feature-value-name": "<ident>",
507
+ "filter-value-list": "[ <filter-function> | <url> ]+",
508
+ "filter()": "filter( [ <image> | <string> ] , <filter-value-list> )",
509
+ "final-bg-layer": "<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <visual-box> || <visual-box> || <'background-color'>",
510
+ "first-valid()": "first-valid( <declaration-value># )",
511
+ "fixed-breadth": "<length-percentage [0,∞]>",
512
+ "font-features-tech": "[ features-opentype | features-aat | features-graphite ]",
513
+ "font-format": "[ <string> | collection | embedded-opentype | opentype | svg | truetype | woff | woff2 ]",
514
+ "font-src": "<url> [ format( <font-format> ) ]? [ tech( <font-tech># ) ]? | local( <family-name> )",
515
+ "font-src-list": "[ <url> [ format( <font-format> ) ]? [ tech( <font-tech># ) ]? | local( <family-name> ) ]#",
516
+ "font-tech": "[ <font-features-tech> | <color-font-tech> | variations | palettes | incremental ]",
517
+ "font-weight-absolute": "[ normal | bold | <number [1,1000]> ]",
518
+ "frequency-percentage": "[ <frequency> | <percentage> ]",
519
+ "function-dependency-list": "<function-parameter>#",
520
+ "function-name": "<dashed-ident>",
521
+ "function-parameter": "<custom-property-name> <css-type>? [ : <declaration-value> ]?",
522
+ "function-parameter-list": "<function-parameter>#",
523
+ "gradient": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> | <-legacy-gradient> ]",
524
+ "grid-line": "auto | <custom-ident> | [ [ <integer [-∞,-1]> | <integer [1,∞]> ] && <custom-ident>? ] | [ span && [ <integer [1,∞]> || <custom-ident> ] ]",
525
+ "hsl()": "[ <legacy-hsl-syntax> | <modern-hsl-syntax> ]",
526
+ "hsla()": "[ <legacy-hsla-syntax> | <modern-hsla-syntax> ]",
527
+ "hv-line-command": "[ hline | vline ] <by-to> <length-percentage>",
528
+ "hwb()": "hwb( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
529
+ "image-1D": "<stripes()>",
530
+ "image-set-option": "[ <image> | <string> ] [ <resolution> || type( <string> ) ]?",
531
+ "image-src": "[ <url> | <string> ]",
532
+ "image-tags": "[ ltr | rtl ]",
533
+ "import-conditions": "[ supports( [ <supports-condition> | <declaration> ] ) ]? <media-query-list>?",
534
+ "inflexible-breadth": "<length-percentage [0,∞]> | min-content | max-content | auto",
535
+ "integrity-modifier": "integrity( <string> )",
536
+ "intrinsic-size-keyword": "auto | max-content | min-content | stretch",
537
+ "isolation-mode": "auto | isolate",
538
+ "keyframe-selector": "from | to | <percentage [0,100]> | <timeline-range-name> <percentage>",
539
+ "lab()": "lab( [ from <color> ]? [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
540
+ "layout-box": "<visual-box> | margin-box",
541
+ "lch()": "lch( [ from <color> ]? [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ <hue> | none ] [ / [ <alpha-value> | none ] ]? )",
542
+ "left": "<length-percentage> | auto",
543
+ "legacy-hsl-syntax": "hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )",
544
+ "legacy-hsla-syntax": "hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",
545
+ "legacy-rgb-syntax": "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )",
546
+ "legacy-rgba-syntax": "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )",
547
+ "length-percentage": "[ <length> | <percentage> ]",
548
+ "line-command": "line <by-to> <coordinate-pair>",
549
+ "line-width": "<length [0,∞]> | thin | medium | thick",
550
+ "linear-easing-function": "linear | <linear()>",
551
+ "linear-gradient-syntax": "[ [ <angle> | to <side-or-corner> ] || <color-interpolation-method> ]? , <color-stop-list>",
552
+ "linear-gradient()": "linear-gradient( [ <linear-gradient-syntax> ] )",
553
+ "linear()": "linear( [ <number> && <percentage>{0,2} ]# )",
554
+ "link-param": "param( <custom-property-name> <declaration-value>? )",
555
+ "marker-ref": "<url>",
556
+ "masonry-auto-track-list": "[ <line-names>? [ <track-size> | <track-repeat> ] ]* <line-names>? <auto-repeat> <line-names>? [ [ <track-size> | <track-repeat> ] <line-names>? ]*",
557
+ "media-and": "and <media-in-parens>",
558
+ "media-condition": "<media-not> | <media-in-parens> [ <media-and>* | <media-or>* ]",
559
+ "media-condition-without-or": "<media-not> | <media-in-parens> <media-and>*",
560
+ "media-or": "or <media-in-parens>",
561
+ "media-progress()": "media-progress( <media-feature> from <calc-sum> to <calc-sum> )",
562
+ "media()": "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )",
563
+ "mf-comparison": "<mf-lt> | <mf-gt> | <mf-eq>",
564
+ "mf-eq": "'='",
565
+ "mf-gt": "'>' '='?",
566
+ "mf-lt": "'<' '='?",
567
+ "mf-range": "<mf-name> <mf-comparison> <mf-value> | <mf-value> <mf-comparison> <mf-name> | <mf-value> <mf-lt> <mf-name> <mf-lt> <mf-value> | <mf-value> <mf-gt> <mf-name> <mf-gt> <mf-value>",
568
+ "mix()": "mix( <progress> , <any-value> , <any-value> ) | mix( <progress> && of <'animation-name'> )",
569
+ "modern-hsl-syntax": "hsl( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
570
+ "modern-hsla-syntax": "hsla( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
571
+ "modern-rgb-syntax": "rgb( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
572
+ "modern-rgba-syntax": "rgba( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
573
+ "move-command": "move <by-to> <coordinate-pair>",
574
+ "mq-boolean": "<integer [0,1]>",
575
+ "number-optional-number": "<number> <number>?",
576
+ "oklab()": "oklab( [ from <color> ]? [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
577
+ "oklch()": "oklch( [ from <color> ]? [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ <hue> | none ] [ / [ <alpha-value> | none ] ]? )",
578
+ "opacity-value": "<number> | <percentage>",
579
+ "opentype-tag": "<string>",
580
+ "padding-width": "<length> | <percentage>",
581
+ "page-selector": "[ <ident-token>? <pseudo-page>* ]!",
582
+ "page-selector-list": "<page-selector>#",
583
+ "paint": "none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke | <image> | <svg-paint>",
584
+ "paint-box": "<visual-box> | fill-box | stroke-box",
585
+ "palette-mix()": "palette-mix( <color-interpolation-method> , [ [ normal | light | dark | <palette-identifier> | <palette-mix()> ] && <percentage [0,100]>? ]#{2} )",
586
+ "points": "[ <number>+ ]#",
587
+ "position": "<position-one> | <position-two> | <position-four>",
588
+ "position-four": "[ [ [ left | right | x-start | x-end ] <length-percentage> ] && [ [ top | bottom | y-start | y-end ] <length-percentage> ] | [ [ block-start | block-end ] <length-percentage> ] && [ [ inline-start | inline-end ] <length-percentage> ] | [ [ start | end ] <length-percentage> ]{2} ]",
589
+ "position-one": "[ left | center | right | top | bottom | x-start | x-end | y-start | y-end | block-start | block-end | inline-start | inline-end | <length-percentage> ]",
590
+ "position-three": "[ [ left | center | right ] && [ [ top | bottom ] <length-percentage> ] | [ [ left | right ] <length-percentage> ] && [ top | center | bottom ] ]",
591
+ "position-two": "[ [ left | center | right | x-start | x-end ] && [ top | center | bottom | y-start | y-end ] | [ left | center | right | x-start | x-end | <length-percentage> ] [ top | center | bottom | y-start | y-end | <length-percentage> ] | [ block-start | center | block-end ] && [ inline-start | center | inline-end ] | [ start | center | end ]{2} ]",
592
+ "predefined-polar-params": "jzczhz [ <number> | <percentage> | none ]{2} [ <hue> | none ]",
593
+ "predefined-rectangular": "jzazbz | ictcp",
594
+ "predefined-rectangular-params": "<predefined-rectangular> [ <number> | <percentage> | none ]{3}",
595
+ "predefined-rgb": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | rec2100-pq | rec2100-hlg | rec2100-linear",
596
+ "progress": "[ <percentage> | <number> | <'animation-timeline'> ] && [ by <easing-function> ]?",
597
+ "progress()": "progress( <calc-sum> from <calc-sum> to <calc-sum> )",
598
+ "pseudo-page": "':' [ left | right | first | blank ]",
599
+ "pt-class-selector": "[ '.' <custom-ident> ]+",
600
+ "pt-name-and-class-selector": "<pt-name-selector> <pt-class-selector>? | <pt-class-selector>",
601
+ "pt-name-selector": "'*' | <custom-ident>",
602
+ "query-in-parens": "( <container-query> ) | ( <size-feature> ) | style( <style-query> ) | scroll-state( <scroll-state-query> ) | <general-enclosed>",
603
+ "radial-extent": "closest-corner | closest-side | farthest-corner | farthest-side",
604
+ "radial-gradient-syntax": "[ [ [ <radial-shape> || <radial-size> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <color-stop-list>",
605
+ "radial-gradient()": "radial-gradient( [ <radial-gradient-syntax> ] )",
606
+ "radial-shape": "circle | ellipse",
607
+ "radial-size": "<radial-extent> | <length [0,∞]> | <length-percentage [0,∞]>",
608
+ "random-caching-options": "<dashed-ident> || per-element",
609
+ "random-item()": "random-item( <random-caching-options> , [ <declaration-value>? ]# )",
610
+ "random()": "random( <random-caching-options>? , <calc-sum> , <calc-sum> , [ by <calc-sum> ]? )",
611
+ "ray()": "ray( [ <angle> && <ray-size>? && contain? && [ at <position> ]? ] )",
612
+ "referrerpolicy-modifier": "referrerpolicy( no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url )",
613
+ "repeat-style": "repeat-x | repeat-y | <repetition>{1,2}",
614
+ "repeat()": "auto-fill | auto-fit",
615
+ "repeating-conic-gradient()": "repeating-conic-gradient( [ <conic-gradient-syntax> ] )",
616
+ "repeating-linear-gradient()": "repeating-linear-gradient( [ <linear-gradient-syntax> ] )",
617
+ "repeating-radial-gradient()": "repeating-radial-gradient( [ <radial-gradient-syntax> ] )",
618
+ "repetition": "repeat | space | round | no-repeat",
619
+ "request-url-modifier": "<crossorigin-modifier> | <integrity-modifier> | <referrerpolicy-modifier>",
620
+ "rgb()": "[ <legacy-rgb-syntax> | <modern-rgb-syntax> ]",
621
+ "rgba()": "[ <legacy-rgba-syntax> | <modern-rgba-syntax> ]",
622
+ "right": "<length-percentage> | auto",
623
+ "round()": "round( <rounding-strategy>? , <calc-sum> , <calc-sum>? )",
624
+ "running()": "running( <custom-ident> )",
625
+ "scroll-state-feature": "<ident> : <ident>",
626
+ "scroll-state-in-parens": "( <scroll-state-query> ) | ( <scroll-state-feature> ) | <general-enclosed>",
627
+ "scroll-state-query": "not <scroll-state-in-parens> | <scroll-state-in-parens> [ [ and <scroll-state-in-parens> ]* | [ or <scroll-state-in-parens> ]* ] | <scroll-state-feature>",
628
+ "scroll()": "scroll( [ <scroller> || <axis> ]? )",
629
+ "scroller": "root | nearest | self",
630
+ "shadow": "<color>? && [ <length>{2} <length [0,∞]>? <length>? ] && inset?",
631
+ "shape-box": "<visual-box> | margin-box",
632
+ "shape-command": "<move-command> | <line-command> | <hv-line-command> | <curve-command> | <smooth-command> | <arc-command> | close",
633
+ "shape()": "shape( <'fill-rule'>? from <coordinate-pair> , <shape-command># )",
634
+ "single-animation-iteration-count": "infinite | <number [0,∞]>",
635
+ "smooth-command": "smooth [ [ <by-to> <coordinate-pair> ] || [ using <coordinate-pair> ]? ]",
636
+ "source-size": "<media-condition> <source-size-value> | auto",
637
+ "source-size-list": "<source-size>#? , <source-size-value>",
638
+ "source-size-value": "<length> | auto",
639
+ "spacing-trim": "space-all | normal | space-first | trim-start | trim-both | trim-all",
640
+ "spread-shadow": "<'box-shadow-color'>? && [ <'box-shadow-offset'> [ <'box-shadow-blur'> <'box-shadow-spread'>? ]? ] && <'box-shadow-position'>?",
641
+ "src()": "src( <string> <url-modifier>* )",
642
+ "step-easing-function": "step-start | step-end | <steps()>",
643
+ "steps()": "steps( <integer> , <step-position>? )",
644
+ "string()": "string( <custom-ident> , [ first | start | last | first-except ]? )",
645
+ "stripes()": "stripes( <color-stripe># )",
646
+ "style-in-parens": "( <style-query> ) | ( <style-feature> ) | <general-enclosed>",
647
+ "style-query": "not <style-in-parens> | <style-in-parens> [ [ and <style-in-parens> ]* | [ or <style-in-parens> ]* ] | <style-feature>",
648
+ "supports-feature": "<supports-selector-fn> | <supports-font-tech-fn> | <supports-font-format-fn> | <supports-decl>",
649
+ "supports-font-format-fn": "font-format( <font-format> )",
650
+ "supports-font-tech-fn": "font-tech( <font-tech> )",
651
+ "supports()": "supports( <declaration> )",
652
+ "svg-paint": "child | child( <integer> )",
653
+ "symbols-type": "cyclic | numeric | alphabetic | symbolic | fixed",
654
+ "symbols()": "symbols( <symbols-type>? [ <string> | <image> ]+ )",
655
+ "syntax": "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]+",
656
+ "syntax-combinator": "'|'",
657
+ "syntax-component": "<syntax-single-component> <syntax-multiplier>? | '<' transform-list '>'",
658
+ "syntax-multiplier": "[ '#' | '+' ]",
659
+ "syntax-single-component": "'<' <syntax-type-name> '>' | <ident>",
660
+ "syntax-type-name": "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function",
661
+ "target-contrast": "<wcag2>",
662
+ "text-edge": "[ text | cap | ex | ideographic | ideographic-ink ] [ text | alphabetic | ideographic | ideographic-ink ]?",
663
+ "time-percentage": "[ <time> | <percentage> ]",
664
+ "toggle()": "toggle( <any-value># )",
665
+ "top": "<length-percentage> | auto",
666
+ "track-breadth": "<length-percentage [0,∞]> | <flex [0,∞]> | min-content | max-content | auto",
667
+ "track-size": "<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( <length-percentage [0,∞]> )",
668
+ "transform-mix()": "transform-mix( <progress> , <transform-list> , <transform-list> )",
669
+ "type()": "type( <syntax> )",
670
+ "url": "<url()> | <src()> | <url-token>",
671
+ "url-set-option": "[ <url> | <string> ] [ <resolution> || type( <string> ) ]?",
672
+ "url-set()": "url-set( <url-set-option># )",
673
+ "url()": "url( <string> <url-modifier>* ) | <url-token>",
674
+ "wcag2": "wcag2 | wcag2( [ <number> | [ aa | aaa ] && large? ] )",
675
+ "xyz": "xyz | xyz-d50 | xyz-d65",
676
+ "xyz-params": "<xyz> [ <number> | <percentage> | none ]{3}"
677
+ }
678
+ }
679
+ }
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@csstools/css-syntax-patches-for-csstree",
3
+ "description": "CSS syntax patches for CSS tree",
4
+ "version": "1.0.0",
5
+ "contributors": [
6
+ {
7
+ "name": "Antonio Laguna",
8
+ "email": "antonio@laguna.es",
9
+ "url": "https://antonio.laguna.es"
10
+ },
11
+ {
12
+ "name": "Romain Menke",
13
+ "email": "romainmenke@gmail.com"
14
+ }
15
+ ],
16
+ "license": "MIT-0",
17
+ "funding": [
18
+ {
19
+ "type": "github",
20
+ "url": "https://github.com/sponsors/csstools"
21
+ },
22
+ {
23
+ "type": "opencollective",
24
+ "url": "https://opencollective.com/csstools"
25
+ }
26
+ ],
27
+ "engines": {
28
+ "node": ">=18"
29
+ },
30
+ "main": "dist/index.json",
31
+ "files": [
32
+ "CHANGELOG.md",
33
+ "LICENSE.md",
34
+ "README.md",
35
+ "dist"
36
+ ],
37
+ "peerDependencies": {
38
+ "postcss": "^8.4"
39
+ },
40
+ "scripts": {},
41
+ "homepage": "https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree#readme",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/csstools/postcss-plugins.git",
45
+ "directory": "packages/css-syntax-patches-for-csstree"
46
+ },
47
+ "bugs": "https://github.com/csstools/postcss-plugins/issues",
48
+ "keywords": [
49
+ "css",
50
+ "csstree",
51
+ "syntax"
52
+ ]
53
+ }