@csstools/css-syntax-patches-for-csstree 1.0.1 → 1.0.3
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 +3 -3
- package/README.md +1 -1
- package/dist/index.json +15 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Changes to CSS Syntax Patches For CSSTree
|
|
2
2
|
|
|
3
|
-
### 1.0.
|
|
3
|
+
### 1.0.3
|
|
4
4
|
|
|
5
|
-
_November
|
|
5
|
+
_November 5, 2024_
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Update `@webref/css` to [`v6.17.1`](https://github.com/w3c/webref/releases/tag/%40webref%2Fraw-css%406.17.1)
|
|
8
8
|
|
|
9
9
|
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree/CHANGELOG.md)
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/css-syntax-patches-for-csstree.svg" height="20">][npm-url]
|
|
4
4
|
[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url]
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Patch [csstree](https://github.com/csstree/csstree) syntax definitions with the latest data from CSS specifications.
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
9
|
|
package/dist/index.json
CHANGED
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"alignment-baseline": "| text-bottom | text-top",
|
|
74
74
|
"animation-duration": "[ auto | <time [0s,∞]> ]#",
|
|
75
75
|
"appearance": "none | auto | base | <compat-auto> | <compat-special>",
|
|
76
|
-
"aspect-ratio": "auto || <ratio>",
|
|
77
76
|
"backdrop-filter": "none | <filter-value-list>",
|
|
78
77
|
"background": "<bg-layer>#? , <final-bg-layer>",
|
|
79
78
|
"background-blend-mode": "<'mix-blend-mode'>#",
|
|
@@ -164,6 +163,7 @@
|
|
|
164
163
|
"color-adjust": "<'print-color-adjust'>",
|
|
165
164
|
"color-interpolation": "auto | sRGB | linearRGB",
|
|
166
165
|
"column-count": "auto | <integer [1,∞]>",
|
|
166
|
+
"column-fill": "| balance-all",
|
|
167
167
|
"column-gap": "normal | <length-percentage [0,∞]>",
|
|
168
168
|
"column-rule-style": "<line-style>",
|
|
169
169
|
"column-rule-width": "<line-width>",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"cy": "<length-percentage>",
|
|
182
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
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",
|
|
184
|
+
"dynamic-range-limit": "standard | high | constrained-high | <dynamic-range-limit-mix()>",
|
|
185
185
|
"fill-break": "bounding-box | slice | clone",
|
|
186
186
|
"fill-color": "<color>",
|
|
187
187
|
"fill-image": "<paint>#",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"flex-shrink": "<number [0,∞]>",
|
|
196
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
197
|
"float-defer": "<integer> | last | none",
|
|
198
|
-
"float-offset": "<length
|
|
198
|
+
"float-offset": "<length-percentage>",
|
|
199
199
|
"float-reference": "inline | column | region | page",
|
|
200
200
|
"flood-color": "<color>",
|
|
201
201
|
"flood-opacity": "<'opacity'>",
|
|
@@ -229,7 +229,6 @@
|
|
|
229
229
|
"inset-block-start": "auto | <length-percentage>",
|
|
230
230
|
"inset-inline-end": "auto | <length-percentage>",
|
|
231
231
|
"inset-inline-start": "auto | <length-percentage>",
|
|
232
|
-
"interpolate-size": "numeric-only | allow-keywords",
|
|
233
232
|
"isolation": "<isolation-mode>",
|
|
234
233
|
"justify-items": "| anchor-center",
|
|
235
234
|
"justify-self": "| anchor-center",
|
|
@@ -285,7 +284,8 @@
|
|
|
285
284
|
"object-view-box": "none | <basic-shape-rect>",
|
|
286
285
|
"opacity": "<opacity-value>",
|
|
287
286
|
"orphans": "<integer [1,∞]>",
|
|
288
|
-
"outline
|
|
287
|
+
"outline": "<'outline-width'> || <'outline-style'> || <'outline-color'>",
|
|
288
|
+
"outline-color": "| <image-1D>",
|
|
289
289
|
"outline-style": "auto | none | dotted | dashed | solid | double | groove | ridge | inset | outset",
|
|
290
290
|
"overflow": "<'overflow-block'>{1,2} | <-non-standard-overflow>",
|
|
291
291
|
"overflow-clip-margin-block": "<visual-box> || <length [0,∞]>",
|
|
@@ -314,7 +314,6 @@
|
|
|
314
314
|
"perspective": "none | <length [0,∞]>",
|
|
315
315
|
"pointer-events": "| bounding-box",
|
|
316
316
|
"position": "| <running()>",
|
|
317
|
-
"position-anchor": "auto | <anchor-name>",
|
|
318
317
|
"quotes": "| match-parent",
|
|
319
318
|
"r": "<length-percentage>",
|
|
320
319
|
"reading-flow": "normal | flex-visual | flex-flow | grid-rows | grid-columns | grid-order",
|
|
@@ -364,7 +363,6 @@
|
|
|
364
363
|
"stroke-image": "<paint>#",
|
|
365
364
|
"stroke-linejoin": "[ crop | arcs | miter ] || [ bevel | round | fallback ]",
|
|
366
365
|
"stroke-miterlimit": "<number>",
|
|
367
|
-
"stroke-opacity": "<'opacity'>",
|
|
368
366
|
"stroke-origin": "match-parent | fill-box | stroke-box | content-box | padding-box | border-box",
|
|
369
367
|
"stroke-position": "<position>#",
|
|
370
368
|
"stroke-repeat": "<repeat-style>#",
|
|
@@ -385,7 +383,6 @@
|
|
|
385
383
|
"text-decoration-skip-spaces": "none | all | [ start || end ]",
|
|
386
384
|
"text-decoration-thickness": "auto | from-font | <length-percentage>",
|
|
387
385
|
"text-decoration-trim": "<length>{1,2} | auto",
|
|
388
|
-
"text-emphasis-position": "[ over | under ] && [ right | left ]?",
|
|
389
386
|
"text-emphasis-skip": "spaces || punctuation || symbols || narrow",
|
|
390
387
|
"text-group-align": "none | start | end | left | right | center",
|
|
391
388
|
"text-indent": "[ <length-percentage> ] && hanging? && each-line?",
|
|
@@ -400,7 +397,6 @@
|
|
|
400
397
|
"text-transform": "none | [ capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto",
|
|
401
398
|
"text-underline-offset": "auto | <length-percentage>",
|
|
402
399
|
"text-underline-position": "auto | [ from-font | under ] || [ left | right ]",
|
|
403
|
-
"text-wrap": "<'text-wrap-mode'> || <'text-wrap-style'>",
|
|
404
400
|
"text-wrap-mode": "wrap | nowrap",
|
|
405
401
|
"text-wrap-style": "auto | balance | stable | pretty | avoid-orphans",
|
|
406
402
|
"timeline-scope": "| all",
|
|
@@ -432,7 +428,6 @@
|
|
|
432
428
|
},
|
|
433
429
|
"types": {
|
|
434
430
|
"dashed-ident": "<custom-property-name>",
|
|
435
|
-
"anchor-name": "<dashed-ident>",
|
|
436
431
|
"anchor-size()": "anchor-size( [ <anchor-name> || <anchor-size> ]? , <length-percentage>? )",
|
|
437
432
|
"anchor()": "anchor( <anchor-name>? && <anchor-side> , <length-percentage>? )",
|
|
438
433
|
"angle-percentage": "[ <angle> | <percentage> ]",
|
|
@@ -442,8 +437,7 @@
|
|
|
442
437
|
"arc-size": "large | small",
|
|
443
438
|
"arc-sweep": "cw | ccw",
|
|
444
439
|
"attr-name": "[ [ <ident-token> '|' ]? <ident-token> ]",
|
|
445
|
-
"attr
|
|
446
|
-
"attr()": "attr( [ <attr-name> <attr-type>? , <declaration-value>? ] )",
|
|
440
|
+
"attr()": "attr( <attr-name> <syntax>? , <declaration-value>? )",
|
|
447
441
|
"autospace": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]",
|
|
448
442
|
"axis": "block | inline | x | y",
|
|
449
443
|
"baseline-position": "[ first | last ]? && baseline",
|
|
@@ -478,7 +472,7 @@
|
|
|
478
472
|
"conic-gradient-syntax": "[ [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>",
|
|
479
473
|
"conic-gradient()": "conic-gradient( [ <conic-gradient-syntax> ] )",
|
|
480
474
|
"container-condition": "[ <container-name> ]? <container-query>",
|
|
481
|
-
"container-progress()": "container-progress( <
|
|
475
|
+
"container-progress()": "container-progress( <mf-name> [ of <container-name> ]? , <calc-sum> , <calc-sum> )",
|
|
482
476
|
"container-query": "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]",
|
|
483
477
|
"content-level": "element | content | text | <attr()> | <counter>",
|
|
484
478
|
"content-list": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> | <counter()> | <counters()> ]+",
|
|
@@ -498,8 +492,7 @@
|
|
|
498
492
|
"custom-params": "<dashed-ident> [ <number> | <percentage> | none ]+",
|
|
499
493
|
"dasharray": "[ [ <length-percentage> | <number> ]+ ]#",
|
|
500
494
|
"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
|
-
"
|
|
502
|
-
"dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]>? ]#{2} )",
|
|
495
|
+
"dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]> ]+ )",
|
|
503
496
|
"easing-function": "<linear-easing-function> | <cubic-bezier-easing-function> | <step-easing-function>",
|
|
504
497
|
"element()": "element( <id-selector> )",
|
|
505
498
|
"env()": "env( <custom-ident> <integer [0,∞]>* , <declaration-value>? )",
|
|
@@ -532,6 +525,7 @@
|
|
|
532
525
|
"image-tags": "[ ltr | rtl ]",
|
|
533
526
|
"import-conditions": "[ supports( [ <supports-condition> | <declaration> ] ) ]? <media-query-list>?",
|
|
534
527
|
"inflexible-breadth": "<length-percentage [0,∞]> | min-content | max-content | auto",
|
|
528
|
+
"inherit()": "inherit( <custom-property-name> , <declaration-value>? )",
|
|
535
529
|
"integrity-modifier": "integrity( <string> )",
|
|
536
530
|
"intrinsic-size-keyword": "auto | max-content | min-content | stretch",
|
|
537
531
|
"isolation-mode": "auto | isolate",
|
|
@@ -558,14 +552,14 @@
|
|
|
558
552
|
"media-condition": "<media-not> | <media-in-parens> [ <media-and>* | <media-or>* ]",
|
|
559
553
|
"media-condition-without-or": "<media-not> | <media-in-parens> <media-and>*",
|
|
560
554
|
"media-or": "or <media-in-parens>",
|
|
561
|
-
"media-progress()": "media-progress( <
|
|
555
|
+
"media-progress()": "media-progress( <mf-name> , <calc-sum> , <calc-sum> )",
|
|
562
556
|
"media()": "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )",
|
|
563
557
|
"mf-comparison": "<mf-lt> | <mf-gt> | <mf-eq>",
|
|
564
558
|
"mf-eq": "'='",
|
|
565
559
|
"mf-gt": "'>' '='?",
|
|
566
560
|
"mf-lt": "'<' '='?",
|
|
567
561
|
"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 <
|
|
562
|
+
"mix()": "mix( <progress> , <any-value> , <any-value> ) | mix( <progress> && of <keyframes-name> )",
|
|
569
563
|
"modern-hsl-syntax": "hsl( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
|
|
570
564
|
"modern-hsla-syntax": "hsla( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
|
|
571
565
|
"modern-rgb-syntax": "rgb( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
|
|
@@ -594,7 +588,7 @@
|
|
|
594
588
|
"predefined-rectangular-params": "<predefined-rectangular> [ <number> | <percentage> | none ]{3}",
|
|
595
589
|
"predefined-rgb": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | rec2100-pq | rec2100-hlg | rec2100-linear",
|
|
596
590
|
"progress": "[ <percentage> | <number> | <'animation-timeline'> ] && [ by <easing-function> ]?",
|
|
597
|
-
"progress()": "progress( <calc-sum>
|
|
591
|
+
"progress()": "progress( <calc-sum> , <calc-sum> , <calc-sum> )",
|
|
598
592
|
"pseudo-page": "':' [ left | right | first | blank ]",
|
|
599
593
|
"pt-class-selector": "[ '.' <custom-ident> ]+",
|
|
600
594
|
"pt-name-and-class-selector": "<pt-name-selector> <pt-class-selector>? | <pt-class-selector>",
|
|
@@ -611,7 +605,6 @@
|
|
|
611
605
|
"ray()": "ray( [ <angle> && <ray-size>? && contain? && [ at <position> ]? ] )",
|
|
612
606
|
"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
607
|
"repeat-style": "repeat-x | repeat-y | <repetition>{1,2}",
|
|
614
|
-
"repeat()": "auto-fill | auto-fit",
|
|
615
608
|
"repeating-conic-gradient()": "repeating-conic-gradient( [ <conic-gradient-syntax> ] )",
|
|
616
609
|
"repeating-linear-gradient()": "repeating-linear-gradient( [ <linear-gradient-syntax> ] )",
|
|
617
610
|
"repeating-radial-gradient()": "repeating-radial-gradient( [ <radial-gradient-syntax> ] )",
|
|
@@ -652,11 +645,12 @@
|
|
|
652
645
|
"svg-paint": "child | child( <integer> )",
|
|
653
646
|
"symbols-type": "cyclic | numeric | alphabetic | symbolic | fixed",
|
|
654
647
|
"symbols()": "symbols( <symbols-type>? [ <string> | <image> ]+ )",
|
|
655
|
-
"syntax": "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]
|
|
648
|
+
"syntax": "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]* | <syntax-string>",
|
|
656
649
|
"syntax-combinator": "'|'",
|
|
657
650
|
"syntax-component": "<syntax-single-component> <syntax-multiplier>? | '<' transform-list '>'",
|
|
658
651
|
"syntax-multiplier": "[ '#' | '+' ]",
|
|
659
652
|
"syntax-single-component": "'<' <syntax-type-name> '>' | <ident>",
|
|
653
|
+
"syntax-string": "<string>",
|
|
660
654
|
"syntax-type-name": "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function",
|
|
661
655
|
"target-contrast": "<wcag2>",
|
|
662
656
|
"text-edge": "[ text | cap | ex | ideographic | ideographic-ink ] [ text | alphabetic | ideographic | ideographic-ink ]?",
|
|
@@ -676,4 +670,4 @@
|
|
|
676
670
|
"xyz-params": "<xyz> [ <number> | <percentage> | none ]{3}"
|
|
677
671
|
}
|
|
678
672
|
}
|
|
679
|
-
}
|
|
673
|
+
}
|