@csstools/css-syntax-patches-for-csstree 1.0.2 → 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 CHANGED
@@ -1,10 +1,9 @@
1
1
  # Changes to CSS Syntax Patches For CSSTree
2
2
 
3
- ### 1.0.2
3
+ ### 1.0.3
4
4
 
5
- _November 4, 2024_
5
+ _November 5, 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.1`](https://github.com/w3c/webref/releases/tag/%40webref%2Fraw-css%406.17.1)
9
8
 
10
9
  [Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree/CHANGELOG.md)
package/dist/index.json CHANGED
@@ -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,∞]>",
@@ -436,8 +437,7 @@
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()": "attr( <attr-name> <syntax>? , <declaration-value>? )",
441
441
  "autospace": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]",
442
442
  "axis": "block | inline | x | y",
443
443
  "baseline-position": "[ first | last ]? && baseline",
@@ -472,7 +472,7 @@
472
472
  "conic-gradient-syntax": "[ [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>",
473
473
  "conic-gradient()": "conic-gradient( [ <conic-gradient-syntax> ] )",
474
474
  "container-condition": "[ <container-name> ]? <container-query>",
475
- "container-progress()": "container-progress( <size-feature> [ of <container-name> ]? from <calc-sum> to <calc-sum> )",
475
+ "container-progress()": "container-progress( <mf-name> [ of <container-name> ]? , <calc-sum> , <calc-sum> )",
476
476
  "container-query": "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]",
477
477
  "content-level": "element | content | text | <attr()> | <counter>",
478
478
  "content-list": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> | <counter()> | <counters()> ]+",
@@ -492,8 +492,7 @@
492
492
  "custom-params": "<dashed-ident> [ <number> | <percentage> | none ]+",
493
493
  "dasharray": "[ [ <length-percentage> | <number> ]+ ]#",
494
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",
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} )",
495
+ "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]> ]+ )",
497
496
  "easing-function": "<linear-easing-function> | <cubic-bezier-easing-function> | <step-easing-function>",
498
497
  "element()": "element( <id-selector> )",
499
498
  "env()": "env( <custom-ident> <integer [0,∞]>* , <declaration-value>? )",
@@ -526,6 +525,7 @@
526
525
  "image-tags": "[ ltr | rtl ]",
527
526
  "import-conditions": "[ supports( [ <supports-condition> | <declaration> ] ) ]? <media-query-list>?",
528
527
  "inflexible-breadth": "<length-percentage [0,∞]> | min-content | max-content | auto",
528
+ "inherit()": "inherit( <custom-property-name> , <declaration-value>? )",
529
529
  "integrity-modifier": "integrity( <string> )",
530
530
  "intrinsic-size-keyword": "auto | max-content | min-content | stretch",
531
531
  "isolation-mode": "auto | isolate",
@@ -552,14 +552,14 @@
552
552
  "media-condition": "<media-not> | <media-in-parens> [ <media-and>* | <media-or>* ]",
553
553
  "media-condition-without-or": "<media-not> | <media-in-parens> <media-and>*",
554
554
  "media-or": "or <media-in-parens>",
555
- "media-progress()": "media-progress( <media-feature> from <calc-sum> to <calc-sum> )",
555
+ "media-progress()": "media-progress( <mf-name> , <calc-sum> , <calc-sum> )",
556
556
  "media()": "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )",
557
557
  "mf-comparison": "<mf-lt> | <mf-gt> | <mf-eq>",
558
558
  "mf-eq": "'='",
559
559
  "mf-gt": "'>' '='?",
560
560
  "mf-lt": "'<' '='?",
561
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>",
562
- "mix()": "mix( <progress> , <any-value> , <any-value> ) | mix( <progress> && of <'animation-name'> )",
562
+ "mix()": "mix( <progress> , <any-value> , <any-value> ) | mix( <progress> && of <keyframes-name> )",
563
563
  "modern-hsl-syntax": "hsl( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
564
564
  "modern-hsla-syntax": "hsla( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
565
565
  "modern-rgb-syntax": "rgb( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
@@ -588,7 +588,7 @@
588
588
  "predefined-rectangular-params": "<predefined-rectangular> [ <number> | <percentage> | none ]{3}",
589
589
  "predefined-rgb": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | rec2100-pq | rec2100-hlg | rec2100-linear",
590
590
  "progress": "[ <percentage> | <number> | <'animation-timeline'> ] && [ by <easing-function> ]?",
591
- "progress()": "progress( <calc-sum> from <calc-sum> to <calc-sum> )",
591
+ "progress()": "progress( <calc-sum> , <calc-sum> , <calc-sum> )",
592
592
  "pseudo-page": "':' [ left | right | first | blank ]",
593
593
  "pt-class-selector": "[ '.' <custom-ident> ]+",
594
594
  "pt-name-and-class-selector": "<pt-name-selector> <pt-class-selector>? | <pt-class-selector>",
@@ -605,7 +605,6 @@
605
605
  "ray()": "ray( [ <angle> && <ray-size>? && contain? && [ at <position> ]? ] )",
606
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 )",
607
607
  "repeat-style": "repeat-x | repeat-y | <repetition>{1,2}",
608
- "repeat()": "auto-fill | auto-fit",
609
608
  "repeating-conic-gradient()": "repeating-conic-gradient( [ <conic-gradient-syntax> ] )",
610
609
  "repeating-linear-gradient()": "repeating-linear-gradient( [ <linear-gradient-syntax> ] )",
611
610
  "repeating-radial-gradient()": "repeating-radial-gradient( [ <radial-gradient-syntax> ] )",
@@ -646,11 +645,12 @@
646
645
  "svg-paint": "child | child( <integer> )",
647
646
  "symbols-type": "cyclic | numeric | alphabetic | symbolic | fixed",
648
647
  "symbols()": "symbols( <symbols-type>? [ <string> | <image> ]+ )",
649
- "syntax": "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]+",
648
+ "syntax": "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]* | <syntax-string>",
650
649
  "syntax-combinator": "'|'",
651
650
  "syntax-component": "<syntax-single-component> <syntax-multiplier>? | '<' transform-list '>'",
652
651
  "syntax-multiplier": "[ '#' | '+' ]",
653
652
  "syntax-single-component": "'<' <syntax-type-name> '>' | <ident>",
653
+ "syntax-string": "<string>",
654
654
  "syntax-type-name": "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function",
655
655
  "target-contrast": "<wcag2>",
656
656
  "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.3",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Antonio Laguna",