@csstools/css-syntax-patches-for-csstree 1.0.6 → 1.0.8

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.6
3
+ ### 1.0.8
4
4
 
5
- _December 9, 2024_
5
+ _December 27, 2024_
6
6
 
7
- - Update `csstree` to [`v3.1.0`](https://github.com/csstree/csstree/releases/tag/v3.1.0)
8
- - Update `@webref/css` to [`v6.17.05`](https://github.com/w3c/webref/releases/tag/%40webref%2Fcss%406.17.5)
7
+ - Update `@webref/css` to [`v6.18.0`](https://github.com/w3c/webref/releases/tag/%40webref%2Fcss%406.18.0)
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
@@ -166,8 +166,12 @@
166
166
  "column-count": "auto | <integer [1,∞]>",
167
167
  "column-fill": "| balance-all",
168
168
  "column-gap": "normal | <length-percentage [0,∞]>",
169
- "column-rule-style": "<line-style>",
170
- "column-rule-width": "<line-width>",
169
+ "column-rule": "<gap-rule-list> | <auto-gap-rule-list>",
170
+ "column-rule-break": "intersection | spanning-item | none",
171
+ "column-rule-color": "<line-color-list> | <auto-line-color-list>",
172
+ "column-rule-outset": "<length-percentage>",
173
+ "column-rule-style": "<line-style-list> | <auto-line-style-list>",
174
+ "column-rule-width": "<line-width-list> | <auto-line-width-list>",
171
175
  "column-span": "| <integer [1,∞]> | auto",
172
176
  "column-width": "auto | <length [0,∞]> | min-content | max-content | fit-content( <length-percentage> )",
173
177
  "contain": "none | strict | content | [ [ size | inline-size ] || layout || style || paint ]",
@@ -211,6 +215,13 @@
211
215
  "font-width": "normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded",
212
216
  "footnote-display": "block | inline | compact",
213
217
  "footnote-policy": "auto | line | block",
218
+ "gap-rule": "<'column-rule'>",
219
+ "gap-rule-break": "<'column-rule-break'>",
220
+ "gap-rule-color": "<'column-rule-color'>",
221
+ "gap-rule-outset": "<'column-rule-outset'>",
222
+ "gap-rule-paint-order": "row-over-column | column-over-row",
223
+ "gap-rule-style": "<'column-rule-style'>",
224
+ "gap-rule-width": "<'column-rule-width'>",
214
225
  "glyph-orientation-vertical": "auto | 0deg | 90deg | 0 | 90",
215
226
  "grid-auto-flow": "[ row | column | row-reverse | column-reverse ] || dense || wrap-reverse",
216
227
  "grid-template-columns": "| masonry",
@@ -322,10 +333,17 @@
322
333
  "rest-before": "<time [0s,∞]> | none | x-weak | weak | medium | strong | x-strong",
323
334
  "right": "| <anchor()> | <anchor-size()>",
324
335
  "row-gap": "normal | <length-percentage [0,∞]>",
336
+ "row-rule": "<gap-rule-list> | <auto-gap-rule-list>",
337
+ "row-rule-break": "intersection | spanning-item | none",
338
+ "row-rule-color": "<line-color-list> | <auto-line-color-list>",
339
+ "row-rule-outset": "<length-percentage>",
340
+ "row-rule-style": "<line-style-list> | <auto-line-style-list>",
341
+ "row-rule-width": "<line-width-list> | <auto-line-width-list>",
325
342
  "ruby-merge": "separate | merge | auto",
326
343
  "ruby-overhang": "auto | none",
327
344
  "rx": "<length-percentage> | auto",
328
345
  "ry": "<length-percentage> | auto",
346
+ "scroll-initial-target": "none | nearest",
329
347
  "scroll-marker-group": "none | before | after",
330
348
  "scroll-padding": "[ auto | <length-percentage [0,∞]> ]{1,4}",
331
349
  "scroll-padding-block": "[ auto | <length-percentage [0,∞]> ]{1,2}",
@@ -338,7 +356,6 @@
338
356
  "scroll-padding-left": "auto | <length-percentage [0,∞]>",
339
357
  "scroll-padding-right": "auto | <length-percentage [0,∞]>",
340
358
  "scroll-padding-top": "auto | <length-percentage [0,∞]>",
341
- "scroll-start-target": "none | auto",
342
359
  "scroll-timeline": "[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#",
343
360
  "shape-image-threshold": "<opacity-value>",
344
361
  "shape-inside": "auto | outside-shape | [ <basic-shape> || shape-box ] | <image> | display",
@@ -433,13 +450,21 @@
433
450
  "angle-percentage": "[ <angle> | <percentage> ]",
434
451
  "angular-color-stop": "<color> <color-stop-angle>?",
435
452
  "angular-color-stop-list": "<angular-color-stop> , [ <angular-color-hint>? , <angular-color-stop> ]#?",
436
- "arc-command": "arc [ [ <by-to> <coordinate-pair> ] || [ of <length-percentage>{1,2} ] || <arc-sweep>? || <arc-size>? || [ rotate <angle> ]? ]",
453
+ "arc-command": "arc [ <command-end-point> && [ of <coordinate-pair> ] && <arc-sweep>? && <arc-size>? && [ rotate <angle> ]? ]",
437
454
  "arc-size": "large | small",
438
455
  "arc-sweep": "cw | ccw",
439
- "attr-name": "[ [ <ident-token> '|' ]? <ident-token> ]",
456
+ "attr-name": "[ [ <ident-token>? '|' ]? <ident-token> ]",
440
457
  "attr-type": "type( <syntax> ) | string | <attr-unit>",
441
458
  "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
459
  "attr()": "attr( <attr-name> <attr-type>? , <declaration-value>? )",
460
+ "auto-gap-rule-list": "[ [ <gap-rule-or-repeat> ] / ]* <auto-repeat-gap-rule> [ / [ <gap-rule-or-repeat> ] ]*",
461
+ "auto-line-color-list": "[ <line-color-or-repeat> ]* <auto-repeat-line-color> [ <line-color-or-repeat> ]*",
462
+ "auto-line-style-list": "[ <line-style-or-repeat> ]* <auto-repeat-line-style> [ <line-style-or-repeat> ]*",
463
+ "auto-line-width-list": "[ <line-width-or-repeat> ]* <auto-repeat-line-width> [ <line-width-or-repeat> ]*",
464
+ "auto-repeat-gap-rule": "repeat( auto , [ <gap-rule> ]# )",
465
+ "auto-repeat-line-color": "repeat( auto , [ <color> ]+ )",
466
+ "auto-repeat-line-style": "repeat( auto , [ <line-style> ]+ )",
467
+ "auto-repeat-line-width": "repeat( auto , [ <line-width> ]+ )",
443
468
  "autospace": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]",
444
469
  "baseline-position": "[ first | last ]? && baseline",
445
470
  "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> )",
@@ -452,7 +477,6 @@
452
477
  "border-width": "thin | medium | thick | <length>",
453
478
  "bottom": "<length-percentage> | auto",
454
479
  "box": "| margin-box | fill-box | stroke-box | view-box",
455
- "by-to": "by | to",
456
480
  "calc-keyword": "e | pi | infinity | -infinity | NaN",
457
481
  "calc-mix()": "calc-mix( <progress> , <calc-sum> , <calc-sum> )",
458
482
  "calc-product": "<calc-value> [ [ '*' | '/' ] <calc-value> ]*",
@@ -468,6 +492,7 @@
468
492
  "color-stripe": "<color> && [ <length-percentage> | <flex> ]?",
469
493
  "color()": "color( [ from <color> ]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )",
470
494
  "colorspace-params": "[ <custom-params> | <predefined-rgb-params> | <predefined-polar-params> | <predefined-rectangular-params> | <xyz-params> ]",
495
+ "command-end-point": "[ to <position> | by <coordinate-pair> ]",
471
496
  "compat-special": "textfield | menulist-button",
472
497
  "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",
473
498
  "conic-gradient-syntax": "[ [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>",
@@ -479,6 +504,7 @@
479
504
  "content-list": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> | <counter()> | <counters()> ]+",
480
505
  "content()": "content( [ text | before | after | first-letter | marker ]? )",
481
506
  "contrast-color()": "contrast-color( <color> max? )",
507
+ "control-point": "[ <position> | <relative-control-point> ]",
482
508
  "coord-box": "<paint-box> | view-box",
483
509
  "coordinate-pair": "<length-percentage>{2}",
484
510
  "counter-style": "<counter-style-name> | <symbols()>",
@@ -488,12 +514,12 @@
488
514
  "css-type": "<syntax-component> | <type()>",
489
515
  "cubic-bezier-easing-function": "ease | ease-in | ease-out | ease-in-out | <cubic-bezier()>",
490
516
  "cubic-bezier()": "cubic-bezier( [ <number [0,1]> , <number> ]#{2} )",
491
- "curve-command": "curve [ <by-to> <coordinate-pair> using <coordinate-pair>{1,2} ]",
517
+ "curve-command": "curve [ [ to <position> && [ with <control-point> [ / <control-point> ]? ] ] | [ by <coordinate-pair> && [ with <relative-control-point> [ / <relative-control-point> ]? ] ] ]",
492
518
  "custom-arg": "$ <ident-token> ;",
493
519
  "custom-params": "<dashed-ident> [ <number> | <percentage> | none ]+",
494
520
  "dasharray": "[ [ <length-percentage> | <number> ]+ ]#",
495
521
  "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",
496
- "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]> ]+ )",
522
+ "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ <ident> && <percentage [0,100]> ]# )",
497
523
  "easing-function": "<linear-easing-function> | <cubic-bezier-easing-function> | <step-easing-function>",
498
524
  "element()": "element( <id-selector> )",
499
525
  "env()": "env( <custom-ident> <integer [0,∞]>* , <declaration-value>? )",
@@ -514,12 +540,18 @@
514
540
  "function-name": "<dashed-ident>",
515
541
  "function-parameter": "<custom-property-name> <css-type>? [ : <declaration-value> ]?",
516
542
  "function-parameter-list": "<function-parameter>#",
543
+ "gap-rule": "[ <line-width> || <line-style> || <color> ]",
544
+ "gap-rule-list": "<gap-rule-or-repeat> [ / <gap-rule-or-repeat> ]*",
545
+ "gap-rule-or-repeat": "[ <gap-rule> | <repeat-gap-rule> ]",
517
546
  "gradient": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> | <-legacy-gradient> ]",
518
547
  "grid-line": "auto | <custom-ident> | [ [ <integer [-∞,-1]> | <integer [1,∞]> ] && <custom-ident>? ] | [ span && [ <integer [1,∞]> || <custom-ident> ] ]",
548
+ "horizontal-line-command": "hline [ to [ <length-percentage> | left | center | right | x-start | x-end ] | by <length-percentage> ]",
519
549
  "hsl()": "[ <legacy-hsl-syntax> | <modern-hsl-syntax> ]",
520
550
  "hsla()": "[ <legacy-hsla-syntax> | <modern-hsla-syntax> ]",
521
- "hv-line-command": "[ hline | vline ] <by-to> <length-percentage>",
522
551
  "hwb()": "hwb( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
552
+ "if-condition": "<boolean-expr[<if-test>]> | else",
553
+ "if-test": "supports( [ <supports-condition> | <ident> : <declaration-value> ] ) | media( <media-query> ) | style( <style-query> )",
554
+ "if()": "if( [ <if-condition> : <declaration-value>? ; ]* <if-condition> : <declaration-value>? ;? )",
523
555
  "image-1D": "<stripes()>",
524
556
  "image-set-option": "[ <image> | <string> ] [ <resolution> || type( <string> ) ]?",
525
557
  "image-src": "[ <url> | <string> ]",
@@ -540,8 +572,14 @@
540
572
  "legacy-rgb-syntax": "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )",
541
573
  "legacy-rgba-syntax": "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )",
542
574
  "length-percentage": "[ <length> | <percentage> ]",
543
- "line-command": "line <by-to> <coordinate-pair>",
575
+ "line-color-list": "[ <line-color-or-repeat> ]+",
576
+ "line-color-or-repeat": "[ <color> | <repeat-line-color> ]",
577
+ "line-command": "line <command-end-point>",
578
+ "line-style-list": "[ <line-style-or-repeat> ]+",
579
+ "line-style-or-repeat": "[ <line-style> | <repeat-line-style> ]",
544
580
  "line-width": "<length [0,∞]> | thin | medium | thick",
581
+ "line-width-list": "[ <line-width-or-repeat> ]+",
582
+ "line-width-or-repeat": "[ <line-width> | <repeat-line-width> ]",
545
583
  "linear-easing-function": "linear | <linear()>",
546
584
  "linear-gradient-syntax": "[ [ <angle> | to <side-or-corner> ] || <color-interpolation-method> ]? , <color-stop-list>",
547
585
  "linear-gradient()": "linear-gradient( [ <linear-gradient-syntax> ] )",
@@ -565,7 +603,7 @@
565
603
  "modern-hsla-syntax": "hsla( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
566
604
  "modern-rgb-syntax": "rgb( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
567
605
  "modern-rgba-syntax": "rgba( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
568
- "move-command": "move <by-to> <coordinate-pair>",
606
+ "move-command": "move <command-end-point>",
569
607
  "mq-boolean": "<integer [0,1]>",
570
608
  "number-optional-number": "<number> <number>?",
571
609
  "oklab()": "oklab( [ from <color> ]? [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
@@ -605,6 +643,11 @@
605
643
  "random()": "random( <random-caching-options>? , <calc-sum> , <calc-sum> , [ by <calc-sum> ]? )",
606
644
  "ray()": "ray( [ <angle> && <ray-size>? && contain? && [ at <position> ]? ] )",
607
645
  "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 )",
646
+ "relative-control-point": "<coordinate-pair> [ from [ start | end | origin ] ]?",
647
+ "repeat-gap-rule": "repeat( [ <integer [1,∞]> ] , [ <gap-rule> ]# )",
648
+ "repeat-line-color": "repeat( [ <integer [1,∞]> ] , [ <color> ]+ )",
649
+ "repeat-line-style": "repeat( [ <integer [1,∞]> ] , [ <line-style> ]+ )",
650
+ "repeat-line-width": "repeat( [ <integer [1,∞]> ] , [ <line-width> ]+ )",
608
651
  "repeat-style": "repeat-x | repeat-y | <repetition>{1,2}",
609
652
  "repeating-conic-gradient()": "repeating-conic-gradient( [ <conic-gradient-syntax> ] )",
610
653
  "repeating-linear-gradient()": "repeating-linear-gradient( [ <linear-gradient-syntax> ] )",
@@ -623,10 +666,10 @@
623
666
  "scroll()": "scroll( [ <scroller> || <axis> ]? )",
624
667
  "shadow": "<color>? && [ <length>{2} <length [0,∞]>? <length>? ] && inset?",
625
668
  "shape-box": "<visual-box> | margin-box",
626
- "shape-command": "<move-command> | <line-command> | <hv-line-command> | <curve-command> | <smooth-command> | <arc-command> | close",
669
+ "shape-command": "<move-command> | <line-command> | close | <horizontal-line-command> | <vertical-line-command> | <curve-command> | <smooth-command> | <arc-command>",
627
670
  "shape()": "shape( <'fill-rule'>? from <coordinate-pair> , <shape-command># )",
628
671
  "single-animation-iteration-count": "infinite | <number [0,∞]>",
629
- "smooth-command": "smooth [ [ <by-to> <coordinate-pair> ] || [ using <coordinate-pair> ]? ]",
672
+ "smooth-command": "smooth [ [ to <position> && [ with <control-point> ]? ] | [ by <coordinate-pair> && [ with <relative-control-point> ]? ] ]",
630
673
  "source-size": "<media-condition> <source-size-value> | auto",
631
674
  "source-size-list": "<source-size>#? , <source-size-value>",
632
675
  "source-size-value": "<length> | auto",
@@ -654,7 +697,7 @@
654
697
  "syntax-string": "<string>",
655
698
  "syntax-type-name": "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function",
656
699
  "target-contrast": "<wcag2>",
657
- "text-edge": "[ text | cap | ex | ideographic | ideographic-ink ] [ text | alphabetic | ideographic | ideographic-ink ]?",
700
+ "text-edge": "[ text | ideographic | ideographic-ink ] | [ text | ideographic | ideographic-ink | cap | ex ] [ text | ideographic | ideographic-ink | alphabetic ]",
658
701
  "time-percentage": "[ <time> | <percentage> ]",
659
702
  "toggle()": "toggle( <any-value># )",
660
703
  "top": "<length-percentage> | auto",
@@ -666,6 +709,7 @@
666
709
  "url-set-option": "[ <url> | <string> ] [ <resolution> || type( <string> ) ]?",
667
710
  "url-set()": "url-set( <url-set-option># )",
668
711
  "url()": "url( <string> <url-modifier>* ) | <url-token>",
712
+ "vertical-line-command": "vline [ to [ <length-percentage> | top | center | bottom | y-start | y-end ] | by <length-percentage> ]",
669
713
  "wcag2": "wcag2 | wcag2( [ <number> | [ aa | aaa ] && large? ] )",
670
714
  "xyz": "xyz | xyz-d50 | xyz-d65",
671
715
  "xyz-params": "<xyz> [ <number> | <percentage> | none ]{3}"
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.6",
4
+ "version": "1.0.8",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Antonio Laguna",