@csstools/css-syntax-patches-for-csstree 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # Changes to CSS Syntax Patches For CSSTree
2
2
 
3
- ### 1.0.2
3
+ ### 1.0.4
4
4
 
5
- _November 4, 2024_
5
+ _November 17, 2024_
6
6
 
7
- - Update `csstree` to [`v3.0.1`](https://github.com/csstree/csstree/releases/tag/v3.0.1)
8
- - Update `@webref/css` to [`v6.17.0`](https://github.com/w3c/webref/releases/tag/%40webref%2Fraw-css%406.17.0)
7
+ - Update `@webref/css` to [`v6.17.2`](https://github.com/w3c/webref/releases/tag/%40webref%2Fraw-css%406.17.2)
9
8
 
10
9
  [Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree/CHANGELOG.md)
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # CSS Syntax Patches For CSSTree
1
+ # CSS Syntax Patches For CSSTree <img src="https://cssdb.org/images/css.svg" alt="for CSS" width="90" height="90" align="right">
2
2
 
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]
package/dist/index.json CHANGED
@@ -88,7 +88,7 @@
88
88
  "block-ellipsis": "none | auto | <string>",
89
89
  "block-step": "<'block-step-size'> || <'block-step-insert'> || <'block-step-align'> || <'block-step-round'>",
90
90
  "block-step-align": "auto | center | start | end",
91
- "block-step-insert": "margin | padding",
91
+ "block-step-insert": "margin-box | padding-box | content-box",
92
92
  "block-step-round": "up | down | nearest",
93
93
  "block-step-size": "none | <length [0,∞]>",
94
94
  "bookmark-label": "<content-list>",
@@ -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> | <percentage>",
198
+ "float-offset": "<length-percentage>",
199
199
  "float-reference": "inline | column | region | page",
200
200
  "flood-color": "<color>",
201
201
  "flood-opacity": "<'opacity'>",
@@ -284,7 +284,8 @@
284
284
  "object-view-box": "none | <basic-shape-rect>",
285
285
  "opacity": "<opacity-value>",
286
286
  "orphans": "<integer [1,∞]>",
287
- "outline-color": "auto | [ <color> | <image-1D> ]",
287
+ "outline": "<'outline-width'> || <'outline-style'> || <'outline-color'>",
288
+ "outline-color": "| <image-1D>",
288
289
  "outline-style": "auto | none | dotted | dashed | solid | double | groove | ridge | inset | outset",
289
290
  "overflow": "<'overflow-block'>{1,2} | <-non-standard-overflow>",
290
291
  "overflow-clip-margin-block": "<visual-box> || <length [0,∞]>",
@@ -338,7 +339,7 @@
338
339
  "scroll-padding-left": "auto | <length-percentage [0,∞]>",
339
340
  "scroll-padding-right": "auto | <length-percentage [0,∞]>",
340
341
  "scroll-padding-top": "auto | <length-percentage [0,∞]>",
341
- "scroll-start-target": "[ none | auto ]",
342
+ "scroll-start-target": "none | auto",
342
343
  "scroll-timeline": "[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#",
343
344
  "shape-image-threshold": "<opacity-value>",
344
345
  "shape-inside": "auto | outside-shape | [ <basic-shape> || shape-box ] | <image> | display",
@@ -436,8 +437,9 @@
436
437
  "arc-size": "large | small",
437
438
  "arc-sweep": "cw | ccw",
438
439
  "attr-name": "[ [ <ident-token> '|' ]? <ident-token> ]",
439
- "attr-type": "string | ident | color | number | percentage | length | angle | time | frequency | flex | <dimension-unit>",
440
- "attr()": "attr( [ <attr-name> <attr-type>? , <declaration-value>? ] )",
440
+ "attr-type": "type( <syntax> ) | string | <attr-unit>",
441
+ "attr-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",
442
+ "attr()": "attr( <attr-name> <attr-type>? , <declaration-value>? )",
441
443
  "autospace": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]",
442
444
  "axis": "block | inline | x | y",
443
445
  "baseline-position": "[ first | last ]? && baseline",
@@ -471,8 +473,8 @@
471
473
  "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",
472
474
  "conic-gradient-syntax": "[ [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>",
473
475
  "conic-gradient()": "conic-gradient( [ <conic-gradient-syntax> ] )",
474
- "container-condition": "[ <container-name> ]? <container-query>",
475
- "container-progress()": "container-progress( <size-feature> [ of <container-name> ]? from <calc-sum> to <calc-sum> )",
476
+ "container-condition": "[ <container-name>? <container-query>? ]!",
477
+ "container-progress()": "container-progress( <mf-name> [ of <container-name> ]? , <calc-sum> , <calc-sum> )",
476
478
  "container-query": "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]",
477
479
  "content-level": "element | content | text | <attr()> | <counter>",
478
480
  "content-list": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> | <counter()> | <counters()> ]+",
@@ -492,8 +494,7 @@
492
494
  "custom-params": "<dashed-ident> [ <number> | <percentage> | none ]+",
493
495
  "dasharray": "[ [ <length-percentage> | <number> ]+ ]#",
494
496
  "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",
495
- "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",
496
- "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]>? ]#{2} )",
497
+ "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]> ]+ )",
497
498
  "easing-function": "<linear-easing-function> | <cubic-bezier-easing-function> | <step-easing-function>",
498
499
  "element()": "element( <id-selector> )",
499
500
  "env()": "env( <custom-ident> <integer [0,∞]>* , <declaration-value>? )",
@@ -526,6 +527,7 @@
526
527
  "image-tags": "[ ltr | rtl ]",
527
528
  "import-conditions": "[ supports( [ <supports-condition> | <declaration> ] ) ]? <media-query-list>?",
528
529
  "inflexible-breadth": "<length-percentage [0,∞]> | min-content | max-content | auto",
530
+ "inherit()": "inherit( <custom-property-name> , <declaration-value>? )",
529
531
  "integrity-modifier": "integrity( <string> )",
530
532
  "intrinsic-size-keyword": "auto | max-content | min-content | stretch",
531
533
  "isolation-mode": "auto | isolate",
@@ -552,14 +554,14 @@
552
554
  "media-condition": "<media-not> | <media-in-parens> [ <media-and>* | <media-or>* ]",
553
555
  "media-condition-without-or": "<media-not> | <media-in-parens> <media-and>*",
554
556
  "media-or": "or <media-in-parens>",
555
- "media-progress()": "media-progress( <media-feature> from <calc-sum> to <calc-sum> )",
557
+ "media-progress()": "media-progress( <mf-name> , <calc-sum> , <calc-sum> )",
556
558
  "media()": "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )",
557
559
  "mf-comparison": "<mf-lt> | <mf-gt> | <mf-eq>",
558
560
  "mf-eq": "'='",
559
561
  "mf-gt": "'>' '='?",
560
562
  "mf-lt": "'<' '='?",
561
563
  "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>",
562
- "mix()": "mix( <progress> , <any-value> , <any-value> ) | mix( <progress> && of <'animation-name'> )",
564
+ "mix()": "mix( <progress> , <any-value> , <any-value> ) | mix( <progress> && of <keyframes-name> )",
563
565
  "modern-hsl-syntax": "hsl( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
564
566
  "modern-hsla-syntax": "hsla( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
565
567
  "modern-rgb-syntax": "rgb( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
@@ -588,7 +590,7 @@
588
590
  "predefined-rectangular-params": "<predefined-rectangular> [ <number> | <percentage> | none ]{3}",
589
591
  "predefined-rgb": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | rec2100-pq | rec2100-hlg | rec2100-linear",
590
592
  "progress": "[ <percentage> | <number> | <'animation-timeline'> ] && [ by <easing-function> ]?",
591
- "progress()": "progress( <calc-sum> from <calc-sum> to <calc-sum> )",
593
+ "progress()": "progress( <calc-sum> , <calc-sum> , <calc-sum> )",
592
594
  "pseudo-page": "':' [ left | right | first | blank ]",
593
595
  "pt-class-selector": "[ '.' <custom-ident> ]+",
594
596
  "pt-name-and-class-selector": "<pt-name-selector> <pt-class-selector>? | <pt-class-selector>",
@@ -605,7 +607,6 @@
605
607
  "ray()": "ray( [ <angle> && <ray-size>? && contain? && [ at <position> ]? ] )",
606
608
  "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 )",
607
609
  "repeat-style": "repeat-x | repeat-y | <repetition>{1,2}",
608
- "repeat()": "auto-fill | auto-fit",
609
610
  "repeating-conic-gradient()": "repeating-conic-gradient( [ <conic-gradient-syntax> ] )",
610
611
  "repeating-linear-gradient()": "repeating-linear-gradient( [ <linear-gradient-syntax> ] )",
611
612
  "repeating-radial-gradient()": "repeating-radial-gradient( [ <radial-gradient-syntax> ] )",
@@ -616,6 +617,7 @@
616
617
  "right": "<length-percentage> | auto",
617
618
  "round()": "round( <rounding-strategy>? , <calc-sum> , <calc-sum>? )",
618
619
  "running()": "running( <custom-ident> )",
620
+ "scroll-button-direction": "up | down | left | right | block-start | block-end | inline-start | inline-end | prev | next",
619
621
  "scroll-state-feature": "<ident> : <ident>",
620
622
  "scroll-state-in-parens": "( <scroll-state-query> ) | ( <scroll-state-feature> ) | <general-enclosed>",
621
623
  "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>",
@@ -646,11 +648,12 @@
646
648
  "svg-paint": "child | child( <integer> )",
647
649
  "symbols-type": "cyclic | numeric | alphabetic | symbolic | fixed",
648
650
  "symbols()": "symbols( <symbols-type>? [ <string> | <image> ]+ )",
649
- "syntax": "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]+",
651
+ "syntax": "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]* | <syntax-string>",
650
652
  "syntax-combinator": "'|'",
651
653
  "syntax-component": "<syntax-single-component> <syntax-multiplier>? | '<' transform-list '>'",
652
654
  "syntax-multiplier": "[ '#' | '+' ]",
653
655
  "syntax-single-component": "'<' <syntax-type-name> '>' | <ident>",
656
+ "syntax-string": "<string>",
654
657
  "syntax-type-name": "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function",
655
658
  "target-contrast": "<wcag2>",
656
659
  "text-edge": "[ text | cap | ex | ideographic | ideographic-ink ] [ text | alphabetic | ideographic | ideographic-ink ]?",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@csstools/css-syntax-patches-for-csstree",
3
3
  "description": "CSS syntax patches for CSS tree",
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Antonio Laguna",