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

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.7
4
4
 
5
- _December 9, 2024_
5
+ _December 13, 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.17.6`](https://github.com/w3c/webref/releases/tag/%40webref%2Fraw-css%406.17.6)
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
@@ -433,7 +433,7 @@
433
433
  "angle-percentage": "[ <angle> | <percentage> ]",
434
434
  "angular-color-stop": "<color> <color-stop-angle>?",
435
435
  "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> ]? ]",
436
+ "arc-command": "arc [ <command-end-point> && [ of <coordinate-pair> ] && <arc-sweep>? && <arc-size>? && [ rotate <angle> ]? ]",
437
437
  "arc-size": "large | small",
438
438
  "arc-sweep": "cw | ccw",
439
439
  "attr-name": "[ [ <ident-token> '|' ]? <ident-token> ]",
@@ -452,7 +452,6 @@
452
452
  "border-width": "thin | medium | thick | <length>",
453
453
  "bottom": "<length-percentage> | auto",
454
454
  "box": "| margin-box | fill-box | stroke-box | view-box",
455
- "by-to": "by | to",
456
455
  "calc-keyword": "e | pi | infinity | -infinity | NaN",
457
456
  "calc-mix()": "calc-mix( <progress> , <calc-sum> , <calc-sum> )",
458
457
  "calc-product": "<calc-value> [ [ '*' | '/' ] <calc-value> ]*",
@@ -468,6 +467,7 @@
468
467
  "color-stripe": "<color> && [ <length-percentage> | <flex> ]?",
469
468
  "color()": "color( [ from <color> ]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )",
470
469
  "colorspace-params": "[ <custom-params> | <predefined-rgb-params> | <predefined-polar-params> | <predefined-rectangular-params> | <xyz-params> ]",
470
+ "command-end-point": "[ to <position> | by <coordinate-pair> ]",
471
471
  "compat-special": "textfield | menulist-button",
472
472
  "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
473
  "conic-gradient-syntax": "[ [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>",
@@ -479,6 +479,7 @@
479
479
  "content-list": "[ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> | <counter()> | <counters()> ]+",
480
480
  "content()": "content( [ text | before | after | first-letter | marker ]? )",
481
481
  "contrast-color()": "contrast-color( <color> max? )",
482
+ "control-point": "[ <position> | <relative-control-point> ]",
482
483
  "coord-box": "<paint-box> | view-box",
483
484
  "coordinate-pair": "<length-percentage>{2}",
484
485
  "counter-style": "<counter-style-name> | <symbols()>",
@@ -488,7 +489,7 @@
488
489
  "css-type": "<syntax-component> | <type()>",
489
490
  "cubic-bezier-easing-function": "ease | ease-in | ease-out | ease-in-out | <cubic-bezier()>",
490
491
  "cubic-bezier()": "cubic-bezier( [ <number [0,1]> , <number> ]#{2} )",
491
- "curve-command": "curve [ <by-to> <coordinate-pair> using <coordinate-pair>{1,2} ]",
492
+ "curve-command": "curve [ [ to <position> && [ with <control-point> [ / <control-point> ]? ] ] | [ by <coordinate-pair> && [ with <relative-control-point> [ / <relative-control-point> ]? ] ] ]",
492
493
  "custom-arg": "$ <ident-token> ;",
493
494
  "custom-params": "<dashed-ident> [ <number> | <percentage> | none ]+",
494
495
  "dasharray": "[ [ <length-percentage> | <number> ]+ ]#",
@@ -516,10 +517,13 @@
516
517
  "function-parameter-list": "<function-parameter>#",
517
518
  "gradient": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> | <-legacy-gradient> ]",
518
519
  "grid-line": "auto | <custom-ident> | [ [ <integer [-∞,-1]> | <integer [1,∞]> ] && <custom-ident>? ] | [ span && [ <integer [1,∞]> || <custom-ident> ] ]",
520
+ "horizontal-line-command": "hline [ to [ <length-percentage> | left | center | right | x-start | x-end ] | by <length-percentage> ]",
519
521
  "hsl()": "[ <legacy-hsl-syntax> | <modern-hsl-syntax> ]",
520
522
  "hsla()": "[ <legacy-hsla-syntax> | <modern-hsla-syntax> ]",
521
- "hv-line-command": "[ hline | vline ] <by-to> <length-percentage>",
522
523
  "hwb()": "hwb( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
524
+ "if-condition": "<boolean-expr[<if-test>]> | else",
525
+ "if-test": "supports( [ <supports-condition> | <ident> : <declaration-value> ] ) | media( <media-query> ) | style( <style-query> )",
526
+ "if()": "if( [ <if-condition> : <declaration-value>? ; ]* <if-condition> : <declaration-value>? ;? )",
523
527
  "image-1D": "<stripes()>",
524
528
  "image-set-option": "[ <image> | <string> ] [ <resolution> || type( <string> ) ]?",
525
529
  "image-src": "[ <url> | <string> ]",
@@ -540,7 +544,7 @@
540
544
  "legacy-rgb-syntax": "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )",
541
545
  "legacy-rgba-syntax": "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )",
542
546
  "length-percentage": "[ <length> | <percentage> ]",
543
- "line-command": "line <by-to> <coordinate-pair>",
547
+ "line-command": "line <command-end-point>",
544
548
  "line-width": "<length [0,∞]> | thin | medium | thick",
545
549
  "linear-easing-function": "linear | <linear()>",
546
550
  "linear-gradient-syntax": "[ [ <angle> | to <side-or-corner> ] || <color-interpolation-method> ]? , <color-stop-list>",
@@ -565,7 +569,7 @@
565
569
  "modern-hsla-syntax": "hsla( [ from <color> ]? [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
566
570
  "modern-rgb-syntax": "rgb( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
567
571
  "modern-rgba-syntax": "rgba( [ from <color> ]? [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
568
- "move-command": "move <by-to> <coordinate-pair>",
572
+ "move-command": "move <command-end-point>",
569
573
  "mq-boolean": "<integer [0,1]>",
570
574
  "number-optional-number": "<number> <number>?",
571
575
  "oklab()": "oklab( [ from <color> ]? [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )",
@@ -605,6 +609,7 @@
605
609
  "random()": "random( <random-caching-options>? , <calc-sum> , <calc-sum> , [ by <calc-sum> ]? )",
606
610
  "ray()": "ray( [ <angle> && <ray-size>? && contain? && [ at <position> ]? ] )",
607
611
  "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 )",
612
+ "relative-control-point": "<coordinate-pair> [ from [ start | end | origin ] ]?",
608
613
  "repeat-style": "repeat-x | repeat-y | <repetition>{1,2}",
609
614
  "repeating-conic-gradient()": "repeating-conic-gradient( [ <conic-gradient-syntax> ] )",
610
615
  "repeating-linear-gradient()": "repeating-linear-gradient( [ <linear-gradient-syntax> ] )",
@@ -623,10 +628,10 @@
623
628
  "scroll()": "scroll( [ <scroller> || <axis> ]? )",
624
629
  "shadow": "<color>? && [ <length>{2} <length [0,∞]>? <length>? ] && inset?",
625
630
  "shape-box": "<visual-box> | margin-box",
626
- "shape-command": "<move-command> | <line-command> | <hv-line-command> | <curve-command> | <smooth-command> | <arc-command> | close",
631
+ "shape-command": "<move-command> | <line-command> | close | <horizontal-line-command> | <vertical-line-command> | <curve-command> | <smooth-command> | <arc-command>",
627
632
  "shape()": "shape( <'fill-rule'>? from <coordinate-pair> , <shape-command># )",
628
633
  "single-animation-iteration-count": "infinite | <number [0,∞]>",
629
- "smooth-command": "smooth [ [ <by-to> <coordinate-pair> ] || [ using <coordinate-pair> ]? ]",
634
+ "smooth-command": "smooth [ [ to <position> && [ with <control-point> ]? ] | [ by <coordinate-pair> && [ with <relative-control-point> ]? ] ]",
630
635
  "source-size": "<media-condition> <source-size-value> | auto",
631
636
  "source-size-list": "<source-size>#? , <source-size-value>",
632
637
  "source-size-value": "<length> | auto",
@@ -666,6 +671,7 @@
666
671
  "url-set-option": "[ <url> | <string> ] [ <resolution> || type( <string> ) ]?",
667
672
  "url-set()": "url-set( <url-set-option># )",
668
673
  "url()": "url( <string> <url-modifier>* ) | <url-token>",
674
+ "vertical-line-command": "vline [ to [ <length-percentage> | top | center | bottom | y-start | y-end ] | by <length-percentage> ]",
669
675
  "wcag2": "wcag2 | wcag2( [ <number> | [ aa | aaa ] && large? ] )",
670
676
  "xyz": "xyz | xyz-d50 | xyz-d65",
671
677
  "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.7",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Antonio Laguna",