@tbela99/css-parser 1.4.2 → 1.4.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.
Files changed (122) hide show
  1. package/CHANGELOG.md +354 -4
  2. package/README.md +69 -1077
  3. package/dist/config.json.js +76 -3
  4. package/dist/index-umd-web.js +26838 -18743
  5. package/dist/index.cjs +26819 -18731
  6. package/dist/index.d.ts +2471 -1884
  7. package/dist/lib/ast/clone.js +46 -0
  8. package/dist/lib/ast/expand.js +90 -65
  9. package/dist/lib/ast/features/calc.js +86 -43
  10. package/dist/lib/ast/features/if.js +221 -0
  11. package/dist/lib/ast/features/index.js +1 -0
  12. package/dist/lib/ast/features/inlinecssvariables.js +33 -28
  13. package/dist/lib/ast/features/prefix.js +406 -44
  14. package/dist/lib/ast/features/shorthand.js +6 -9
  15. package/dist/lib/ast/features/transform.js +14 -15
  16. package/dist/lib/ast/find.js +175 -0
  17. package/dist/lib/ast/math/expression.js +145 -99
  18. package/dist/lib/ast/math/math.js +30 -41
  19. package/dist/lib/ast/minify.js +551 -232
  20. package/dist/lib/ast/transform/compute.js +82 -69
  21. package/dist/lib/ast/transform/matrix.js +12 -26
  22. package/dist/lib/ast/transform/minify.js +154 -150
  23. package/dist/lib/ast/transform/perspective.js +1 -1
  24. package/dist/lib/ast/transform/rotate.js +1 -1
  25. package/dist/lib/ast/transform/scale.js +1 -1
  26. package/dist/lib/ast/transform/skew.js +1 -1
  27. package/dist/lib/ast/transform/translate.js +1 -1
  28. package/dist/lib/ast/transform/utils.js +3 -2
  29. package/dist/lib/ast/types.js +345 -30
  30. package/dist/lib/ast/walk.js +119 -64
  31. package/dist/lib/fs/resolve.js +94 -88
  32. package/dist/lib/parser/declaration/list.js +117 -26
  33. package/dist/lib/parser/declaration/map.js +141 -96
  34. package/dist/lib/parser/declaration/set.js +30 -25
  35. package/dist/lib/parser/parse.js +1810 -1739
  36. package/dist/lib/parser/tokenize.js +662 -403
  37. package/dist/lib/parser/utils/angle.js +29 -0
  38. package/dist/lib/parser/utils/at-rule-container.js +486 -0
  39. package/dist/lib/parser/utils/at-rule-font-feature-values.js +13 -0
  40. package/dist/lib/parser/utils/at-rule-generic.js +118 -0
  41. package/dist/lib/parser/utils/at-rule-import.js +393 -0
  42. package/dist/lib/parser/utils/at-rule-media.js +603 -0
  43. package/dist/lib/parser/utils/at-rule-support.js +431 -0
  44. package/dist/lib/parser/utils/at-rule-when-else.js +363 -0
  45. package/dist/lib/parser/utils/at-rule.js +31 -0
  46. package/dist/lib/parser/utils/cache.js +19 -0
  47. package/dist/lib/parser/utils/config.js +1 -0
  48. package/dist/lib/parser/utils/declaration.js +672 -91
  49. package/dist/lib/parser/utils/hash.js +1 -1
  50. package/dist/lib/parser/utils/selector.js +518 -0
  51. package/dist/lib/parser/utils/text.js +17 -1
  52. package/dist/lib/parser/utils/token.js +104 -0
  53. package/dist/lib/parser/utils/type.js +29 -18
  54. package/dist/lib/renderer/render.js +870 -269
  55. package/dist/lib/renderer/sourcemap/sourcemap.js +17 -7
  56. package/dist/lib/syntax/color/a98rgb.js +8 -12
  57. package/dist/lib/syntax/color/alpha.js +64 -0
  58. package/dist/lib/syntax/color/cmyk.js +23 -21
  59. package/dist/lib/syntax/color/color-mix.js +311 -237
  60. package/dist/lib/syntax/color/color.js +98 -92
  61. package/dist/lib/syntax/color/hex.js +29 -33
  62. package/dist/lib/syntax/color/hsl.js +7 -14
  63. package/dist/lib/syntax/color/hwb.js +14 -27
  64. package/dist/lib/syntax/color/lab.js +23 -24
  65. package/dist/lib/syntax/color/lch.js +16 -18
  66. package/dist/lib/syntax/color/oklab.js +21 -40
  67. package/dist/lib/syntax/color/oklch.js +16 -18
  68. package/dist/lib/syntax/color/p3.js +0 -8
  69. package/dist/lib/syntax/color/rec2020.js +9 -13
  70. package/dist/lib/syntax/color/relativecolor.js +160 -48
  71. package/dist/lib/syntax/color/rgb.js +14 -18
  72. package/dist/lib/syntax/color/srgb.js +30 -29
  73. package/dist/lib/syntax/color/utils/color-type.js +18 -0
  74. package/dist/lib/syntax/color/utils/colorspace.js +46 -0
  75. package/dist/lib/syntax/color/utils/components.js +36 -16
  76. package/dist/lib/syntax/color/utils/distance.js +21 -11
  77. package/dist/lib/syntax/color/utils/make-color.js +56 -0
  78. package/dist/lib/syntax/color/xyz.js +10 -22
  79. package/dist/lib/syntax/color/xyzd50.js +6 -20
  80. package/dist/lib/syntax/constants.js +464 -0
  81. package/dist/lib/syntax/syntax.js +825 -592
  82. package/dist/lib/validation/config.js +72 -33
  83. package/dist/lib/validation/config.json.js +1185 -85
  84. package/dist/lib/validation/match.js +3120 -0
  85. package/dist/lib/validation/parser/parse.js +683 -935
  86. package/dist/lib/validation/parser/typedef.js +106 -0
  87. package/dist/lib/validation/utils/list.js +4 -11
  88. package/dist/lib/validation/utils/whitespace.js +2 -8
  89. package/dist/node.js +102 -57
  90. package/dist/web.js +100 -48
  91. package/package.json +31 -17
  92. package/dist/lib/syntax/color/utils/constants.js +0 -214
  93. package/dist/lib/syntax/utils.js +0 -70
  94. package/dist/lib/validation/at-rules/container.js +0 -342
  95. package/dist/lib/validation/at-rules/counter-style.js +0 -90
  96. package/dist/lib/validation/at-rules/custom-media.js +0 -50
  97. package/dist/lib/validation/at-rules/document.js +0 -89
  98. package/dist/lib/validation/at-rules/else.js +0 -5
  99. package/dist/lib/validation/at-rules/font-feature-values.js +0 -63
  100. package/dist/lib/validation/at-rules/import.js +0 -150
  101. package/dist/lib/validation/at-rules/keyframes.js +0 -67
  102. package/dist/lib/validation/at-rules/layer.js +0 -41
  103. package/dist/lib/validation/at-rules/media.js +0 -255
  104. package/dist/lib/validation/at-rules/namespace.js +0 -81
  105. package/dist/lib/validation/at-rules/page-margin-box.js +0 -64
  106. package/dist/lib/validation/at-rules/page.js +0 -100
  107. package/dist/lib/validation/at-rules/supports.js +0 -295
  108. package/dist/lib/validation/at-rules/when.js +0 -185
  109. package/dist/lib/validation/atrule.js +0 -184
  110. package/dist/lib/validation/selector.js +0 -36
  111. package/dist/lib/validation/syntax.js +0 -1073
  112. package/dist/lib/validation/syntaxes/complex-selector-list.js +0 -27
  113. package/dist/lib/validation/syntaxes/complex-selector.js +0 -52
  114. package/dist/lib/validation/syntaxes/compound-selector.js +0 -196
  115. package/dist/lib/validation/syntaxes/family-name.js +0 -57
  116. package/dist/lib/validation/syntaxes/keyframe-selector.js +0 -36
  117. package/dist/lib/validation/syntaxes/layer-name.js +0 -57
  118. package/dist/lib/validation/syntaxes/relative-selector-list.js +0 -31
  119. package/dist/lib/validation/syntaxes/relative-selector.js +0 -38
  120. package/dist/lib/validation/syntaxes/selector-list.js +0 -5
  121. package/dist/lib/validation/syntaxes/selector.js +0 -5
  122. package/dist/lib/validation/syntaxes/url.js +0 -40
@@ -60,7 +60,7 @@ var declarations = {
60
60
  syntax: "auto | after"
61
61
  },
62
62
  "-ms-overflow-style": {
63
- syntax: "auto | none | scrollbar | -ms-autohiding-scrollbar auto | none | scrollbar | -ms-autohiding-scrollbar"
63
+ syntax: " auto | none | scrollbar | -ms-autohiding-scrollbar"
64
64
  },
65
65
  "-ms-scroll-chaining": {
66
66
  syntax: "chained | none"
@@ -210,19 +210,55 @@ var declarations = {
210
210
  syntax: "default | menu | tooltip | sheet | none"
211
211
  },
212
212
  "-webkit-appearance": {
213
- syntax: "none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"
213
+ syntax: " none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"
214
+ },
215
+ "-webkit-border-after": {
216
+ syntax: "<'border-top'>"
217
+ },
218
+ "-webkit-border-after-color": {
219
+ syntax: "<'border-top-color'>"
220
+ },
221
+ "-webkit-border-after-style": {
222
+ syntax: "<'border-top-style'>"
223
+ },
224
+ "-webkit-border-after-width": {
225
+ syntax: "<'border-top-width'>"
214
226
  },
215
227
  "-webkit-border-before": {
216
- syntax: "<'border-width'> || <'border-style'> || <color>"
228
+ syntax: "<'border-top'>"
217
229
  },
218
230
  "-webkit-border-before-color": {
219
- syntax: "<color>"
231
+ syntax: "<'border-top-color'>"
220
232
  },
221
233
  "-webkit-border-before-style": {
222
- syntax: "<'border-style'>"
234
+ syntax: "<'border-top-style'>"
223
235
  },
224
236
  "-webkit-border-before-width": {
225
- syntax: "<'border-width'>"
237
+ syntax: "<'border-top-width'>"
238
+ },
239
+ "-webkit-border-end": {
240
+ syntax: "<'border-top'>"
241
+ },
242
+ "-webkit-border-end-color": {
243
+ syntax: "<'border-top-color'>"
244
+ },
245
+ "-webkit-border-end-style": {
246
+ syntax: "<'border-top-style'>"
247
+ },
248
+ "-webkit-border-end-width": {
249
+ syntax: "<'border-top-width'>"
250
+ },
251
+ "-webkit-border-start": {
252
+ syntax: "<'border-top'>"
253
+ },
254
+ "-webkit-border-start-color": {
255
+ syntax: "<'border-top-color'>"
256
+ },
257
+ "-webkit-border-start-style": {
258
+ syntax: "<'border-top-style'>"
259
+ },
260
+ "-webkit-border-start-width": {
261
+ syntax: "<'border-top-width'>"
226
262
  },
227
263
  "-webkit-box-reflect": {
228
264
  syntax: "[ above | below | right | left ]? <length>? <image>?"
@@ -294,7 +330,7 @@ var declarations = {
294
330
  syntax: "read-only | read-write | read-write-plaintext-only"
295
331
  },
296
332
  "-webkit-user-select": {
297
- syntax: "auto | text | none | all auto | none | text | all"
333
+ syntax: " auto | none | text | all"
298
334
  },
299
335
  "accent-color": {
300
336
  syntax: "auto | <color>"
@@ -312,7 +348,7 @@ var declarations = {
312
348
  syntax: "[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#"
313
349
  },
314
350
  "alignment-baseline": {
315
- syntax: "baseline | alphabetic | ideographic | middle | central | mathematical | text-before-edge | text-after-edge auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"
351
+ syntax: " auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"
316
352
  },
317
353
  all: {
318
354
  syntax: "initial | inherit | unset | revert | revert-layer"
@@ -365,6 +401,9 @@ var declarations = {
365
401
  "animation-timing-function": {
366
402
  syntax: "<easing-function>#"
367
403
  },
404
+ "animation-trigger": {
405
+ syntax: "[ none | [ <dashed-ident> <animation-action>+ ]+ ]#"
406
+ },
368
407
  appearance: {
369
408
  syntax: "none | auto | <compat-auto> | <compat-special>"
370
409
  },
@@ -414,7 +453,10 @@ var declarations = {
414
453
  syntax: "<bg-size>#"
415
454
  },
416
455
  "baseline-shift": {
417
- syntax: "<length-percentage> | sub | super | baseline baseline | sub | super | <svg-length>"
456
+ syntax: " baseline | sub | super | <svg-length>"
457
+ },
458
+ "baseline-source": {
459
+ syntax: "auto | first | last"
418
460
  },
419
461
  "block-size": {
420
462
  syntax: "<'width'>"
@@ -423,13 +465,13 @@ var declarations = {
423
465
  syntax: "<line-width> || <line-style> || <color>"
424
466
  },
425
467
  "border-block": {
426
- syntax: "<'border-block-start'>"
468
+ syntax: "<'border-top'>"
427
469
  },
428
470
  "border-block-color": {
429
471
  syntax: "<'border-top-color'>{1,2}"
430
472
  },
431
473
  "border-block-end": {
432
- syntax: "<'border-top-width'> || <'border-top-style'> || <color>"
474
+ syntax: "<'border-top'>"
433
475
  },
434
476
  "border-block-end-color": {
435
477
  syntax: "<'border-top-color'>"
@@ -441,7 +483,7 @@ var declarations = {
441
483
  syntax: "<'border-top-width'>"
442
484
  },
443
485
  "border-block-start": {
444
- syntax: "<'border-top-width'> || <'border-top-style'> || <color>"
486
+ syntax: "<'border-top'>"
445
487
  },
446
488
  "border-block-start-color": {
447
489
  syntax: "<'border-top-color'>"
@@ -492,13 +534,13 @@ var declarations = {
492
534
  syntax: "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>"
493
535
  },
494
536
  "border-image-outset": {
495
- syntax: "[ <length [0,∞]> | <number [0,∞]> ]{1,4} "
537
+ syntax: "[ <length [0,∞]> | <number [0,∞]> ]{1,4}"
496
538
  },
497
539
  "border-image-repeat": {
498
540
  syntax: "[ stretch | repeat | round | space ]{1,2}"
499
541
  },
500
542
  "border-image-slice": {
501
- syntax: "[ <number [0,∞]> | <percentage [0,∞]> ]{1,4} && fill?"
543
+ syntax: "[ <number [0,∞]> | <percentage [0,∞]> ]{1,4} && fill?"
502
544
  },
503
545
  "border-image-source": {
504
546
  syntax: "none | <image>"
@@ -507,13 +549,13 @@ var declarations = {
507
549
  syntax: "[ <length-percentage [0,∞]> | <number [0,∞]> | auto ]{1,4}"
508
550
  },
509
551
  "border-inline": {
510
- syntax: "<'border-block-start'>"
552
+ syntax: "<'border-top'>"
511
553
  },
512
554
  "border-inline-color": {
513
555
  syntax: "<'border-top-color'>{1,2}"
514
556
  },
515
557
  "border-inline-end": {
516
- syntax: "<'border-top-width'> || <'border-top-style'> || <color>"
558
+ syntax: "<'border-top'>"
517
559
  },
518
560
  "border-inline-end-color": {
519
561
  syntax: "<'border-top-color'>"
@@ -525,7 +567,7 @@ var declarations = {
525
567
  syntax: "<'border-top-width'>"
526
568
  },
527
569
  "border-inline-start": {
528
- syntax: "<'border-top-width'> || <'border-top-style'> || <color>"
570
+ syntax: "<'border-top'>"
529
571
  },
530
572
  "border-inline-start-color": {
531
573
  syntax: "<'border-top-color'>"
@@ -569,6 +611,9 @@ var declarations = {
569
611
  "border-right-width": {
570
612
  syntax: "<line-width>"
571
613
  },
614
+ "border-shape": {
615
+ syntax: "none | [ <basic-shape> <geometry-box>?]{1,2}"
616
+ },
572
617
  "border-spacing": {
573
618
  syntax: "<length>{1,2}"
574
619
  },
@@ -651,7 +696,10 @@ var declarations = {
651
696
  syntax: "top | bottom"
652
697
  },
653
698
  caret: {
654
- syntax: "<'caret-color'> || <'caret-shape'>"
699
+ syntax: "<'caret-color'> || <'caret-animation'> || <'caret-shape'>"
700
+ },
701
+ "caret-animation": {
702
+ syntax: "auto | manual"
655
703
  },
656
704
  "caret-color": {
657
705
  syntax: "auto | <color>"
@@ -689,6 +737,9 @@ var declarations = {
689
737
  "column-gap": {
690
738
  syntax: "normal | <length-percentage>"
691
739
  },
740
+ "column-height": {
741
+ syntax: "auto | <length [0,∞]>"
742
+ },
692
743
  "column-rule": {
693
744
  syntax: "<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>"
694
745
  },
@@ -696,19 +747,22 @@ var declarations = {
696
747
  syntax: "<color>"
697
748
  },
698
749
  "column-rule-style": {
699
- syntax: "<'border-style'>"
750
+ syntax: "<line-style>"
700
751
  },
701
752
  "column-rule-width": {
702
- syntax: "<'border-width'>"
753
+ syntax: "<line-width>"
703
754
  },
704
755
  "column-span": {
705
756
  syntax: "none | all"
706
757
  },
707
758
  "column-width": {
708
- syntax: "<length> | auto"
759
+ syntax: "auto | <length [0,∞]>"
760
+ },
761
+ "column-wrap": {
762
+ syntax: "auto | nowrap | wrap"
709
763
  },
710
764
  columns: {
711
- syntax: "<'column-width'> || <'column-count'>"
765
+ syntax: "[ <'column-width'> || <'column-count'> ] [ / <'column-height'> ]?"
712
766
  },
713
767
  contain: {
714
768
  syntax: "none | strict | content | [ [ size || inline-size ] || layout || style || paint ]"
@@ -743,6 +797,57 @@ var declarations = {
743
797
  "content-visibility": {
744
798
  syntax: "visible | auto | hidden"
745
799
  },
800
+ "corner-block-end-shape": {
801
+ syntax: "<corner-shape-value>{1,2}"
802
+ },
803
+ "corner-block-start-shape": {
804
+ syntax: "<corner-shape-value>{1,2}"
805
+ },
806
+ "corner-bottom-shape": {
807
+ syntax: "<corner-shape-value>{1,2}"
808
+ },
809
+ "corner-bottom-left-shape": {
810
+ syntax: "<corner-shape-value>"
811
+ },
812
+ "corner-bottom-right-shape": {
813
+ syntax: "<corner-shape-value>"
814
+ },
815
+ "corner-end-end-shape": {
816
+ syntax: "<corner-shape-value>"
817
+ },
818
+ "corner-end-start-shape": {
819
+ syntax: "<corner-shape-value>"
820
+ },
821
+ "corner-inline-end-shape": {
822
+ syntax: "<corner-shape-value>{1,2}"
823
+ },
824
+ "corner-inline-start-shape": {
825
+ syntax: "<corner-shape-value>{1,2}"
826
+ },
827
+ "corner-left-shape": {
828
+ syntax: "<corner-shape-value>{1,2}"
829
+ },
830
+ "corner-right-shape": {
831
+ syntax: "<corner-shape-value>{1,2}"
832
+ },
833
+ "corner-shape": {
834
+ syntax: "<corner-shape-value>{1,4}"
835
+ },
836
+ "corner-start-start-shape": {
837
+ syntax: "<corner-shape-value>"
838
+ },
839
+ "corner-start-end-shape": {
840
+ syntax: "<corner-shape-value>"
841
+ },
842
+ "corner-top-shape": {
843
+ syntax: "<corner-shape-value>{1,2}"
844
+ },
845
+ "corner-top-left-shape": {
846
+ syntax: "<corner-shape-value>"
847
+ },
848
+ "corner-top-right-shape": {
849
+ syntax: "<corner-shape-value>"
850
+ },
746
851
  "counter-increment": {
747
852
  syntax: "[ <counter-name> <integer>? ]+ | none"
748
853
  },
@@ -753,7 +858,7 @@ var declarations = {
753
858
  syntax: "[ <counter-name> <integer>? ]+ | none"
754
859
  },
755
860
  cursor: {
756
- syntax: "[ [ <url> [ <x> <y> ]? , ]* <cursor-predefined> ] [ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"
861
+ syntax: "<cursor-predefined> | [ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"
757
862
  },
758
863
  cx: {
759
864
  syntax: "<length> | <percentage>"
@@ -771,7 +876,10 @@ var declarations = {
771
876
  syntax: "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy> | <-non-standard-display>"
772
877
  },
773
878
  "dominant-baseline": {
774
- syntax: "auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"
879
+ syntax: " auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"
880
+ },
881
+ "dynamic-range-limit": {
882
+ syntax: "standard | no-limit | constrained | <dynamic-range-limit-mix()>"
775
883
  },
776
884
  "empty-cells": {
777
885
  syntax: "show | hide"
@@ -783,7 +891,7 @@ var declarations = {
783
891
  syntax: "<paint>"
784
892
  },
785
893
  "fill-opacity": {
786
- syntax: "<'opacity'> <number-zero-one>"
894
+ syntax: " <number-zero-one> | <percentage>"
787
895
  },
788
896
  "fill-rule": {
789
897
  syntax: "nonzero | evenodd"
@@ -822,7 +930,7 @@ var declarations = {
822
930
  syntax: "<'opacity'>"
823
931
  },
824
932
  font: {
825
- syntax: "[ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-family-name> [ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-family-name> | <-non-standard-font>"
933
+ syntax: " [ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-family-name> | <-non-standard-font> | [ <'font-size'> [ / <'line-height'> ]? <'font-family'># ]"
826
934
  },
827
935
  "font-family": {
828
936
  syntax: "[ <family-name> | <generic-family> ]#"
@@ -908,6 +1016,9 @@ var declarations = {
908
1016
  "forced-color-adjust": {
909
1017
  syntax: "auto | none | preserve-parent-color"
910
1018
  },
1019
+ "frame-sizing": {
1020
+ syntax: "auto | content-width | content-height | content-block-size | content-inline-size"
1021
+ },
911
1022
  gap: {
912
1023
  syntax: "<'row-gap'> <'column-gap'>?"
913
1024
  },
@@ -1028,6 +1139,18 @@ var declarations = {
1028
1139
  isolation: {
1029
1140
  syntax: "auto | isolate"
1030
1141
  },
1142
+ interactivity: {
1143
+ syntax: "auto | inert"
1144
+ },
1145
+ "interest-delay": {
1146
+ syntax: "<'interest-delay-start'>{1,2}"
1147
+ },
1148
+ "interest-delay-end": {
1149
+ syntax: "normal | <time>"
1150
+ },
1151
+ "interest-delay-start": {
1152
+ syntax: "normal | <time>"
1153
+ },
1031
1154
  "justify-content": {
1032
1155
  syntax: "normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]"
1033
1156
  },
@@ -1044,7 +1167,7 @@ var declarations = {
1044
1167
  syntax: "auto | <length-percentage> | <anchor()> | <anchor-size()>"
1045
1168
  },
1046
1169
  "letter-spacing": {
1047
- syntax: "normal | <length> normal | <length-percentage>"
1170
+ syntax: " normal | <length-percentage>"
1048
1171
  },
1049
1172
  "lighting-color": {
1050
1173
  syntax: "<color>"
@@ -1272,7 +1395,7 @@ var declarations = {
1272
1395
  syntax: "auto | none"
1273
1396
  },
1274
1397
  "overflow-block": {
1275
- syntax: "visible | hidden | clip | scroll | auto"
1398
+ syntax: "visible | hidden | clip | scroll | auto | <-non-standard-overflow>"
1276
1399
  },
1277
1400
  "overflow-clip-box": {
1278
1401
  syntax: "padding-box | content-box"
@@ -1281,7 +1404,7 @@ var declarations = {
1281
1404
  syntax: "<visual-box> || <length [0,∞]>"
1282
1405
  },
1283
1406
  "overflow-inline": {
1284
- syntax: "visible | hidden | clip | scroll | auto"
1407
+ syntax: "visible | hidden | clip | scroll | auto | <-non-standard-overflow>"
1285
1408
  },
1286
1409
  "overflow-wrap": {
1287
1410
  syntax: "normal | break-word | anywhere"
@@ -1380,7 +1503,7 @@ var declarations = {
1380
1503
  syntax: "static | relative | absolute | sticky | fixed | -webkit-sticky"
1381
1504
  },
1382
1505
  "position-anchor": {
1383
- syntax: "auto | <anchor-name>"
1506
+ syntax: "normal | auto | none | <anchor-name> | match-parent"
1384
1507
  },
1385
1508
  "position-area": {
1386
1509
  syntax: "none | <position-area>"
@@ -1406,6 +1529,12 @@ var declarations = {
1406
1529
  r: {
1407
1530
  syntax: "<length> | <percentage>"
1408
1531
  },
1532
+ "reading-flow": {
1533
+ syntax: "normal | source-order | flex-visual | flex-flow | grid-rows | grid-columns | grid-order"
1534
+ },
1535
+ "reading-order": {
1536
+ syntax: "<integer>"
1537
+ },
1409
1538
  resize: {
1410
1539
  syntax: "none | both | horizontal | vertical | block | inline"
1411
1540
  },
@@ -1431,10 +1560,10 @@ var declarations = {
1431
1560
  syntax: "[ alternate || [ over | under ] ] | inter-character"
1432
1561
  },
1433
1562
  rx: {
1434
- syntax: "<length> | <percentage>"
1563
+ syntax: "<length-percentage> | auto"
1435
1564
  },
1436
1565
  ry: {
1437
- syntax: "<length> | <percentage>"
1566
+ syntax: "<length-percentage> | auto"
1438
1567
  },
1439
1568
  scale: {
1440
1569
  syntax: "none | [ <number> | <percentage> ]{1,3}"
@@ -1478,6 +1607,9 @@ var declarations = {
1478
1607
  "scroll-margin-top": {
1479
1608
  syntax: "<length>"
1480
1609
  },
1610
+ "scroll-marker-group": {
1611
+ syntax: "none | before | after"
1612
+ },
1481
1613
  "scroll-padding": {
1482
1614
  syntax: "[ auto | <length-percentage> ]{1,4}"
1483
1615
  },
@@ -1538,6 +1670,9 @@ var declarations = {
1538
1670
  "scroll-snap-type-y": {
1539
1671
  syntax: "none | mandatory | proximity"
1540
1672
  },
1673
+ "scroll-target-group": {
1674
+ syntax: "none | auto"
1675
+ },
1541
1676
  "scroll-timeline": {
1542
1677
  syntax: "[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#"
1543
1678
  },
@@ -1584,25 +1719,25 @@ var declarations = {
1584
1719
  syntax: "<color>"
1585
1720
  },
1586
1721
  "stroke-dasharray": {
1587
- syntax: "none | <dasharray> none | [ <svg-length>+ ]#"
1722
+ syntax: " none | [ <svg-length>+ ]#"
1588
1723
  },
1589
1724
  "stroke-dashoffset": {
1590
- syntax: "<length-percentage> | <number> <svg-length>"
1725
+ syntax: " <svg-length>"
1591
1726
  },
1592
1727
  "stroke-linecap": {
1593
1728
  syntax: "butt | round | square"
1594
1729
  },
1595
1730
  "stroke-linejoin": {
1596
- syntax: "miter | miter-clip | round | bevel | arcs miter | round | bevel"
1731
+ syntax: " miter | round | bevel | arcs | crop | fallback | miter-clip"
1597
1732
  },
1598
1733
  "stroke-miterlimit": {
1599
- syntax: "<number> <number-one-or-greater>"
1734
+ syntax: " <number-one-or-greater>"
1600
1735
  },
1601
1736
  "stroke-opacity": {
1602
1737
  syntax: "<'opacity'>"
1603
1738
  },
1604
1739
  "stroke-width": {
1605
- syntax: "<length-percentage> | <number> <svg-length>"
1740
+ syntax: " [ <length-percentage> | <line-width> | <number> ]# "
1606
1741
  },
1607
1742
  "tab-size": {
1608
1743
  syntax: "<integer> | <length>"
@@ -1640,6 +1775,9 @@ var declarations = {
1640
1775
  "text-decoration-color": {
1641
1776
  syntax: "<color>"
1642
1777
  },
1778
+ "text-decoration-inset": {
1779
+ syntax: "<length>{1,2} | auto"
1780
+ },
1643
1781
  "text-decoration-line": {
1644
1782
  syntax: "none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error"
1645
1783
  },
@@ -1653,7 +1791,7 @@ var declarations = {
1653
1791
  syntax: "solid | double | dotted | dashed | wavy"
1654
1792
  },
1655
1793
  "text-decoration-thickness": {
1656
- syntax: "auto | from-font | <length> | <percentage> "
1794
+ syntax: "auto | from-font | <length> | <percentage>"
1657
1795
  },
1658
1796
  "text-emphasis": {
1659
1797
  syntax: "<'text-emphasis-style'> || <'text-emphasis-color'>"
@@ -1695,7 +1833,7 @@ var declarations = {
1695
1833
  syntax: "none | [ capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto"
1696
1834
  },
1697
1835
  "text-underline-offset": {
1698
- syntax: "auto | <length> | <percentage> "
1836
+ syntax: "auto | <length> | <percentage>"
1699
1837
  },
1700
1838
  "text-underline-position": {
1701
1839
  syntax: "auto | from-font | [ under || [ left | right ] ]"
@@ -1712,6 +1850,33 @@ var declarations = {
1712
1850
  "timeline-scope": {
1713
1851
  syntax: "none | <dashed-ident>#"
1714
1852
  },
1853
+ "timeline-trigger": {
1854
+ syntax: "none | [ <'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-activation-range'> [ '/' <'timeline-trigger-active-range'> ]? ]#"
1855
+ },
1856
+ "timeline-trigger-activation-range": {
1857
+ syntax: "[ <'timeline-trigger-activation-range-start'> <'timeline-trigger-activation-range-end'>? ]#"
1858
+ },
1859
+ "timeline-trigger-activation-range-end": {
1860
+ syntax: "[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#"
1861
+ },
1862
+ "timeline-trigger-activation-range-start": {
1863
+ syntax: "[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#"
1864
+ },
1865
+ "timeline-trigger-active-range": {
1866
+ syntax: "[ <'timeline-trigger-active-range-start'> <'timeline-trigger-active-range-end'>? ]#"
1867
+ },
1868
+ "timeline-trigger-active-range-end": {
1869
+ syntax: "[ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#"
1870
+ },
1871
+ "timeline-trigger-active-range-start": {
1872
+ syntax: "[ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#"
1873
+ },
1874
+ "timeline-trigger-name": {
1875
+ syntax: "none | <dashed-ident>#"
1876
+ },
1877
+ "timeline-trigger-source": {
1878
+ syntax: "<single-animation-timeline>#"
1879
+ },
1715
1880
  top: {
1716
1881
  syntax: "auto | <length-percentage> | <anchor()> | <anchor-size()>"
1717
1882
  },
@@ -1725,7 +1890,7 @@ var declarations = {
1725
1890
  syntax: "content-box | border-box | fill-box | stroke-box | view-box"
1726
1891
  },
1727
1892
  "transform-origin": {
1728
- syntax: "[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?"
1893
+ syntax: " [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] <length>? | [ [ center | left | right ] && [ center | top | bottom ] ] <length>?"
1729
1894
  },
1730
1895
  "transform-style": {
1731
1896
  syntax: "flat | preserve-3d"
@@ -1751,6 +1916,9 @@ var declarations = {
1751
1916
  translate: {
1752
1917
  syntax: "none | <length-percentage> [ <length-percentage> <length>? ]?"
1753
1918
  },
1919
+ "trigger-scope": {
1920
+ syntax: "none | all | <dashed-ident>#"
1921
+ },
1754
1922
  "unicode-bidi": {
1755
1923
  syntax: "normal | embed | isolate | bidi-override | isolate-override | plaintext | -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"
1756
1924
  },
@@ -1781,6 +1949,9 @@ var declarations = {
1781
1949
  "view-transition-name": {
1782
1950
  syntax: "none | <custom-ident> | match-element"
1783
1951
  },
1952
+ "view-transition-scope": {
1953
+ syntax: "none | all"
1954
+ },
1784
1955
  visibility: {
1785
1956
  syntax: "visible | hidden | collapse"
1786
1957
  },
@@ -1982,11 +2153,14 @@ var declarations = {
1982
2153
  "white-space-trim": {
1983
2154
  syntax: "none | discard-before || discard-after || discard-inner"
1984
2155
  },
2156
+ "-moz-padding-start": {
2157
+ syntax: "<'padding-top'>"
2158
+ },
2159
+ "-webkit-margin-end": {
2160
+ syntax: "<'margin-block-end'>"
2161
+ },
1985
2162
  composes: {
1986
2163
  syntax: "<composes-selector>#"
1987
- },
1988
- "composes-selector": {
1989
- syntax: "<ident>+ [from [global&&<string>]]?"
1990
2164
  }
1991
2165
  };
1992
2166
  var functions = {
@@ -2317,7 +2491,7 @@ var syntaxes = {
2317
2491
  syntax: "acos( <calc-sum> )"
2318
2492
  },
2319
2493
  "alpha-value": {
2320
- syntax: "<number> | <percentage>"
2494
+ syntax: "<number> | <percentage> | none"
2321
2495
  },
2322
2496
  "an+b": {
2323
2497
  syntax: "odd | even | <integer> | <n-dimension> | '+'?† n | -n | <ndashdigit-dimension> | '+'?† <ndashdigit-ident> | <dashndashdigit-ident> | <n-dimension> <signed-integer> | '+'?† n <signed-integer> | -n <signed-integer> | <ndash-dimension> <signless-integer> | '+'?† n- <signless-integer> | -n- <signless-integer> | <n-dimension> ['+' | '-'] <signless-integer> | '+'?† n ['+' | '-'] <signless-integer> | -n ['+' | '-'] <signless-integer>"
@@ -2352,6 +2526,9 @@ var syntaxes = {
2352
2526
  "animateable-feature": {
2353
2527
  syntax: "scroll-position | contents | <custom-ident>"
2354
2528
  },
2529
+ "animation-action": {
2530
+ syntax: "none | play | play-once | play-forwards | play-backwards | pause | reset | replay"
2531
+ },
2355
2532
  "asin()": {
2356
2533
  syntax: "asin( <calc-sum> )"
2357
2534
  },
@@ -2392,7 +2569,7 @@ var syntaxes = {
2392
2569
  syntax: "[ first | last ]? baseline"
2393
2570
  },
2394
2571
  "basic-shape": {
2395
- syntax: "<inset()> | <xywh()> | <rect()> | <circle()> | <ellipse()> | <polygon()> | <path()>"
2572
+ syntax: "<inset()> | <xywh()> | <rect()> | <circle()> | <ellipse()> | <polygon()> | <path()> | shape()"
2396
2573
  },
2397
2574
  "basic-shape-rect": {
2398
2575
  syntax: "<inset()> | <rect()> | <xywh()>"
@@ -2407,7 +2584,7 @@ var syntaxes = {
2407
2584
  syntax: "<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <visual-box> || <visual-box>"
2408
2585
  },
2409
2586
  "bg-position": {
2410
- syntax: "[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]"
2587
+ syntax: "<position> | <position-three>"
2411
2588
  },
2412
2589
  "bg-size": {
2413
2590
  syntax: "[ <length-percentage [0,∞]> | auto ]{1,2} | cover | contain"
@@ -2464,7 +2641,7 @@ var syntaxes = {
2464
2641
  syntax: "<color-base> | currentColor | <system-color> | <device-cmyk()> | <light-dark()> | <-non-standard-color>"
2465
2642
  },
2466
2643
  "color()": {
2467
- syntax: "color( <colorspace-params> [ / [ <alpha-value> | none ] ]? )"
2644
+ syntax: "color( [from <color>]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )"
2468
2645
  },
2469
2646
  "color-base": {
2470
2647
  syntax: "<hex-color> | <color-function> | <named-color> | <color-mix()> | transparent"
@@ -2476,7 +2653,7 @@ var syntaxes = {
2476
2653
  syntax: "in [ <rectangular-color-space> | <polar-color-space> <hue-interpolation-method>? | <custom-color-space> ]"
2477
2654
  },
2478
2655
  "color-mix()": {
2479
- syntax: "color-mix( <color-interpolation-method> , [ <color> && <percentage [0,100]>? ]#{2} )"
2656
+ syntax: "color-mix( <color-interpolation-method> ,? [ <color> && <percentage [0,100]>? ]#)"
2480
2657
  },
2481
2658
  "color-stop": {
2482
2659
  syntax: "<color-stop-length> | <color-stop-angle>"
@@ -2491,7 +2668,7 @@ var syntaxes = {
2491
2668
  syntax: "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#?"
2492
2669
  },
2493
2670
  "colorspace-params": {
2494
- syntax: "[ <predefined-rgb-params> | <xyz-params>]"
2671
+ syntax: "[<custom-params> | <predefined-rgb-params> | <xyz-params>]"
2495
2672
  },
2496
2673
  combinator: {
2497
2674
  syntax: "'>' | '+' | '~' | [ '|' '|' ]"
@@ -2530,7 +2707,7 @@ var syntaxes = {
2530
2707
  syntax: "[ [ [ from [ <angle> | <zero> ] ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>"
2531
2708
  },
2532
2709
  "container-condition": {
2533
- syntax: "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]"
2710
+ syntax: "[ <container-name>? <container-query>? ]!"
2534
2711
  },
2535
2712
  "container-name": {
2536
2713
  syntax: "<custom-ident>"
@@ -2559,6 +2736,9 @@ var syntaxes = {
2559
2736
  "coord-box": {
2560
2737
  syntax: "content-box | padding-box | border-box | fill-box | stroke-box | view-box"
2561
2738
  },
2739
+ "corner-shape-value": {
2740
+ syntax: "round | scoop | bevel | notch | square | squircle | <superellipse()>"
2741
+ },
2562
2742
  "cos()": {
2563
2743
  syntax: "cos( <calc-sum> )"
2564
2744
  },
@@ -2631,6 +2811,9 @@ var syntaxes = {
2631
2811
  "drop-shadow()": {
2632
2812
  syntax: "drop-shadow( [ <color>? && <length>{2,3} ] )"
2633
2813
  },
2814
+ "dynamic-range-limit-mix()": {
2815
+ syntax: "dynamic-range-limit-mix( [ <'dynamic-range-limit'> && <percentage [0,100]> ]#{2,} )"
2816
+ },
2634
2817
  "easing-function": {
2635
2818
  syntax: "<linear-easing-function> | <cubic-bezier-easing-function> | <step-easing-function>"
2636
2819
  },
@@ -2647,7 +2830,7 @@ var syntaxes = {
2647
2830
  syntax: "ellipse( <radial-size>? [ at <position> ]? )"
2648
2831
  },
2649
2832
  "env()": {
2650
- syntax: "env( <custom-ident> , <declaration-value>? )"
2833
+ syntax: "env( <custom-ident> <integer [0,∞]>* , <declaration-value>? )"
2651
2834
  },
2652
2835
  "exp()": {
2653
2836
  syntax: "exp( <calc-sum> )"
@@ -2734,7 +2917,7 @@ var syntaxes = {
2734
2917
  syntax: "<shape-box> | fill-box | stroke-box | view-box"
2735
2918
  },
2736
2919
  gradient: {
2737
- syntax: "| <-legacy-gradient>"
2920
+ syntax: "<linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> | <-legacy-gradient>"
2738
2921
  },
2739
2922
  "grayscale()": {
2740
2923
  syntax: "grayscale( [ <number> | <percentage> ]? )"
@@ -2746,10 +2929,10 @@ var syntaxes = {
2746
2929
  syntax: "[ historical-ligatures | no-historical-ligatures ]"
2747
2930
  },
2748
2931
  "hsl()": {
2749
- syntax: "hsl( <hue>, <percentage>, <percentage>, <alpha-value>? ) | hsl( [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )"
2932
+ syntax: "hsl( <hue>, <percentage>, <percentage>, <alpha-value>? ) | hsl( [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? ) | hsl(from <color> [ <hue> | none | h | s | l ] <relative-hsl-component>{2} [ / [ <alpha-value> | none] ]? )"
2750
2933
  },
2751
2934
  "hsla()": {
2752
- syntax: "hsla( <hue>, <percentage>, <percentage>, <alpha-value>? ) | hsla( [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )"
2935
+ syntax: "hsla( <hue>, <percentage>, <percentage>, <alpha-value>? ) | hsla( [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? ) | hsla(from <color> < [ <hue> | none | h | s | l ] <relative-hsl-component>{2} [ / [ <alpha-value> | none ] ]? )"
2753
2936
  },
2754
2937
  hue: {
2755
2938
  syntax: "<number> | <angle>"
@@ -2761,7 +2944,7 @@ var syntaxes = {
2761
2944
  syntax: "hue-rotate( [ <angle> | <zero> ]? )"
2762
2945
  },
2763
2946
  "hwb()": {
2764
- syntax: "hwb( [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? )"
2947
+ syntax: "hwb( [ <hue> | none ] [ <percentage> | <number> | none ] [ <percentage> | <number> | none ] [ / [ <alpha-value> | none ] ]? ) | hwb(from <color> [ <hue> | none | h | w | b ] <relative-hwb-component>{2} [ / [ <alpha-value> | none] ]? )"
2765
2948
  },
2766
2949
  "hypot()": {
2767
2950
  syntax: "hypot( <calc-sum># )"
@@ -2809,7 +2992,7 @@ var syntaxes = {
2809
2992
  syntax: "<custom-ident> | <string>"
2810
2993
  },
2811
2994
  "lab()": {
2812
- syntax: "lab( [<percentage> | <number> | none] [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
2995
+ syntax: "lab( [<percentage> | <number> | none] [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ / [<alpha-value> | none] ]? ) | lab(from <color> <relative-lab-component>{3} [ / [ <alpha-value> | none ] ]? )"
2813
2996
  },
2814
2997
  "layer()": {
2815
2998
  syntax: "layer( <layer-name> )"
@@ -2818,7 +3001,7 @@ var syntaxes = {
2818
3001
  syntax: "<ident> [ '.' <ident> ]*"
2819
3002
  },
2820
3003
  "lch()": {
2821
- syntax: "lch( [<percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? )"
3004
+ syntax: "lch( [<percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? ) | lch(from <color> <relative-lch-component>{2} [ <hue> | none | l | c | h ] [ / [ <alpha-value> | none ] ]? )"
2822
3005
  },
2823
3006
  "leader()": {
2824
3007
  syntax: "leader( <leader-type> )"
@@ -2983,10 +3166,10 @@ var syntaxes = {
2983
3166
  syntax: "<ray()> | <url> | <basic-shape>"
2984
3167
  },
2985
3168
  "oklab()": {
2986
- syntax: "oklab( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
3169
+ syntax: "oklab( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ / [<alpha-value> | none] ]? ) | oklab(from <color> <relative-lab-component>{3} [ / [ <alpha-value> | none ] ]? )"
2987
3170
  },
2988
3171
  "oklch()": {
2989
- syntax: "oklch( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? )"
3172
+ syntax: "oklch( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? ) | oklch(from <color> <relative-lch-component>{2} [ <hue> | none | l | c | h ] [ / [ <alpha-value> | none ] ]? )"
2990
3173
  },
2991
3174
  "opacity()": {
2992
3175
  syntax: "opacity( [ <number> | <percentage> ]? )"
@@ -3049,7 +3232,7 @@ var syntaxes = {
3049
3232
  syntax: "polygon( <'fill-rule'>? , [ <length-percentage> <length-percentage> ]# )"
3050
3233
  },
3051
3234
  position: {
3052
- syntax: "[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"
3235
+ syntax: "<position-one> | <position-two> | <position-four>"
3053
3236
  },
3054
3237
  "position-area": {
3055
3238
  syntax: "[ [ left | center | right | span-left | span-right | x-start | x-end | span-x-start | span-x-end | x-self-start | x-self-end | span-x-self-start | span-x-self-end | span-all ] || [ top | center | bottom | span-top | span-bottom | y-start | y-end | span-y-start | span-y-end | y-self-start | y-self-end | span-y-self-start | span-y-self-end | span-all ] | [ block-start | center | block-end | span-block-start | span-block-end | span-all ] || [ inline-start | center | inline-end | span-inline-start | span-inline-end | span-all ] | [ self-block-start | center | self-block-end | span-self-block-start | span-self-block-end | span-all ] || [ self-inline-start | center | self-inline-end | span-self-inline-start | span-self-inline-end | span-all ] | [ start | center | end | span-start | span-end | span-all ]{1,2} | [ self-start | center | self-end | span-self-start | span-self-end | span-all ]{1,2} ]"
@@ -3058,7 +3241,7 @@ var syntaxes = {
3058
3241
  syntax: "pow( <calc-sum>, <calc-sum> )"
3059
3242
  },
3060
3243
  "predefined-rgb": {
3061
- syntax: "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020"
3244
+ syntax: "srgb | srgb-linear | display-p3 | display-p3-linear | a98-rgb | prophoto-rgb | rec2020"
3062
3245
  },
3063
3246
  "predefined-rgb-params": {
3064
3247
  syntax: "<predefined-rgb> [ <number> | <percentage> | none ]{3}"
@@ -3073,7 +3256,7 @@ var syntaxes = {
3073
3256
  syntax: ": [ left | right | first | blank ]"
3074
3257
  },
3075
3258
  "query-in-parens": {
3076
- syntax: "( <container-condition> ) | ( <size-feature> ) | style( <style-query> ) | <general-enclosed>"
3259
+ syntax: "( <container-query> ) | ( <size-feature> ) | style( <style-query> ) | scroll-state( <scroll-state-query> ) | <general-enclosed>"
3077
3260
  },
3078
3261
  quote: {
3079
3262
  syntax: "open-quote | close-quote | no-open-quote | no-close-quote"
@@ -3106,7 +3289,7 @@ var syntaxes = {
3106
3289
  syntax: "rect( [ <length-percentage> | auto ]{4} [ round <'border-radius'> ]? )"
3107
3290
  },
3108
3291
  "rectangular-color-space": {
3109
- syntax: "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | xyz | xyz-d50 | xyz-d65"
3292
+ syntax: "srgb | srgb-linear | display-p3 | display-p3-linear | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | xyz | xyz-d50 | xyz-d65"
3110
3293
  },
3111
3294
  "relative-selector": {
3112
3295
  syntax: "<combinator>? <complex-selector>"
@@ -3136,10 +3319,10 @@ var syntaxes = {
3136
3319
  syntax: "reversed( <counter-name> )"
3137
3320
  },
3138
3321
  "rgb()": {
3139
- syntax: "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? ) | rgb( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )"
3322
+ syntax: "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? ) | rgb( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? ) | rgb(from <color> <relative-rgb-component>{3} [ / [ <alpha-value> | none] ]? )"
3140
3323
  },
3141
3324
  "rgba()": {
3142
- syntax: "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? ) | rgba( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )"
3325
+ syntax: "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? ) | rgba( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? ) | rgba(from <color> <relative-rgb-component>{3} [ / [ <alpha-value> | none ] ]? )"
3143
3326
  },
3144
3327
  "rotate()": {
3145
3328
  syntax: "rotate( [ <angle> | <zero> ] )"
@@ -3193,13 +3376,13 @@ var syntaxes = {
3193
3376
  syntax: "root | nearest | self"
3194
3377
  },
3195
3378
  "scroll-state-feature": {
3196
- syntax: "<media-query-list>"
3379
+ syntax: "<scroll-state-feature-plain> | <scroll-state-feature-boolean>"
3197
3380
  },
3198
3381
  "scroll-state-in-parens": {
3199
3382
  syntax: "( <scroll-state-query> ) | ( <scroll-state-feature> ) | <general-enclosed>"
3200
3383
  },
3201
3384
  "scroll-state-query": {
3202
- syntax: "not <scroll-state-in-parens> | <scroll-state-in-parens> [ [ and <scroll-state-in-parens> ]* | [ or <scroll-state-in-parens> ]* ] | <scroll-state-feature> "
3385
+ syntax: " not <scroll-state-in-parens> | <scroll-state-in-parens> [ [ and <scroll-state-in-parens> ]* | [ or <scroll-state-in-parens> ]* ] | <scroll-state-feature>"
3203
3386
  },
3204
3387
  "selector-list": {
3205
3388
  syntax: "<complex-selector-list>"
@@ -3292,17 +3475,20 @@ var syntaxes = {
3292
3475
  syntax: "steps( <integer>, <step-position>? )"
3293
3476
  },
3294
3477
  "style-feature": {
3295
- syntax: "<declaration>"
3478
+ syntax: "<style-feature-plain> | <style-feature-boolean> | <style-range>"
3296
3479
  },
3297
3480
  "style-in-parens": {
3298
- syntax: "( <style-condition> ) | ( <style-feature> ) | <general-enclosed>"
3481
+ syntax: "( <style-query> ) | ( <style-feature> ) | <general-enclosed>"
3299
3482
  },
3300
3483
  "style-query": {
3301
- syntax: "<style-condition> | <style-feature>"
3484
+ syntax: "not <style-in-parens> | <style-in-parens> [ [ and <style-in-parens> ]* | [ or <style-in-parens> ]* ] | <style-feature>"
3302
3485
  },
3303
3486
  "subclass-selector": {
3304
3487
  syntax: "<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"
3305
3488
  },
3489
+ "superellipse()": {
3490
+ syntax: "superellipse( [ <number> | infinity | -infinity ] )"
3491
+ },
3306
3492
  "supports-condition": {
3307
3493
  syntax: "not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"
3308
3494
  },
@@ -3448,7 +3634,7 @@ var syntaxes = {
3448
3634
  syntax: "-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"
3449
3635
  },
3450
3636
  "-legacy-radial-gradient-arguments": {
3451
- syntax: "[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"
3637
+ syntax: " <position>? , [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ]? , <color-stop-list>"
3452
3638
  },
3453
3639
  "-legacy-radial-gradient-size": {
3454
3640
  syntax: "closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"
@@ -3510,6 +3696,9 @@ var syntaxes = {
3510
3696
  "attr-fallback": {
3511
3697
  syntax: "<any-value>"
3512
3698
  },
3699
+ autospace: {
3700
+ syntax: "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]"
3701
+ },
3513
3702
  bottom: {
3514
3703
  syntax: "<length> | auto"
3515
3704
  },
@@ -3627,6 +3816,162 @@ var syntaxes = {
3627
3816
  "inset-area": {
3628
3817
  syntax: "[ [ left | center | right | span-left | span-right | x-start | x-end | span-x-start | span-x-end | x-self-start | x-self-end | span-x-self-start | span-x-self-end | span-all ] || [ top | center | bottom | span-top | span-bottom | y-start | y-end | span-y-start | span-y-end | y-self-start | y-self-end | span-y-self-start | span-y-self-end | span-all ] | [ block-start | center | block-end | span-block-start | span-block-end | span-all ] || [ inline-start | center | inline-end | span-inline-start | span-inline-end | span-all ] | [ self-block-start | self-block-end | span-self-block-start | span-self-block-end | span-all ] || [ self-inline-start | self-inline-end | span-self-inline-start | span-self-inline-end | span-all ] | [ start | center | end | span-start | span-end | span-all ]{1,2} | [ self-start | center | self-end | span-self-start | span-self-end | span-all ]{1,2} ]"
3629
3818
  },
3819
+ syntax: {
3820
+ syntax: "'*' | <syntax-component> [ <syntax-combinator> <syntax-component> ]* | <syntax-string>"
3821
+ },
3822
+ "syntax-component": {
3823
+ syntax: "<syntax-single-component> <syntax-multiplier>? | '<' transform-list '>'"
3824
+ },
3825
+ "syntax-single-component": {
3826
+ syntax: "'<' <syntax-type-name> '>' | <ident>"
3827
+ },
3828
+ "syntax-type-name": {
3829
+ syntax: "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function"
3830
+ },
3831
+ "syntax-combinator": {
3832
+ syntax: "'|'"
3833
+ },
3834
+ "syntax-multiplier": {
3835
+ syntax: "'#' | '+'"
3836
+ },
3837
+ "syntax-string": {
3838
+ syntax: "<string>"
3839
+ },
3840
+ "relative-hwb-component": {
3841
+ syntax: "<number> | <percentage> | none | h | w | b | alpha"
3842
+ },
3843
+ "relative-hsl-component": {
3844
+ syntax: "<number> | <percentage> | none | h | s | l | alpha"
3845
+ },
3846
+ "relative-rgb-component": {
3847
+ syntax: "<number> | <percentage> | none | r | g | b | alpha"
3848
+ },
3849
+ "relative-lab-component": {
3850
+ syntax: "<number> | <percentage> | none | l | a | b | alpha"
3851
+ },
3852
+ "relative-lch-component": {
3853
+ syntax: "<number> | <percentage> | none | l | c | h | alpha"
3854
+ },
3855
+ "function-name": {
3856
+ syntax: "<dashed-ident>("
3857
+ },
3858
+ "function-parameter": {
3859
+ syntax: "<dashed-ident> <css-type>? [ : <default-value> ]?"
3860
+ },
3861
+ "alpha()": {
3862
+ syntax: " alpha([from <color>] [ / [<alpha-value> | none] ]? )"
3863
+ },
3864
+ "if()": {
3865
+ syntax: "if( [ <if-branch> ; ]* )"
3866
+ },
3867
+ "if-branch": {
3868
+ syntax: "<if-condition> : <declaration-value>?"
3869
+ },
3870
+ "if-condition": {
3871
+ syntax: "<if-test> | else"
3872
+ },
3873
+ "if-test": {
3874
+ syntax: "supports( [ <ident> : <declaration-value> ] | <supports-condition> ) | media( <media-feature> | <media-condition> ) | style( <style-query> )"
3875
+ },
3876
+ "position-three": {
3877
+ syntax: "[ left | center | right ] && [ [ top | bottom ] <length-percentage> ] | [ [ left | right ] <length-percentage> ] && [ top | center | bottom ] "
3878
+ },
3879
+ "position-one": {
3880
+ syntax: "left | center | right | top | bottom | x-start | x-end | y-start | y-end | block-start | block-end | inline-start | inline-end | <length-percentage> "
3881
+ },
3882
+ "position-two": {
3883
+ syntax: "[ left | center | right | x-start | x-end ] && [ top | center | bottom | y-start | y-end ] | [ left | center | right | x-start | x-end | <length-percentage> ] [ top | center | bottom | y-start | y-end | <length-percentage> ] | [ block-start | center | block-end ] && [ inline-start | center | inline-end ] | [ start | center | end ]{2} "
3884
+ },
3885
+ "position-four": {
3886
+ syntax: "[ [ left | right | x-start | x-end ] <length-percentage> ] && [ [ top | bottom | y-start | y-end ] <length-percentage> ] | [ [ block-start | block-end ] <length-percentage> ] && [ [ inline-start | inline-end ] <length-percentage> ] | [ [ start | end ] <length-percentage> ]{2} "
3887
+ },
3888
+ "composes-selector": {
3889
+ syntax: "<ident>+ [from [global&&<string>]]?"
3890
+ },
3891
+ "contrast-color()": {
3892
+ syntax: "contrast-color(<color> )"
3893
+ },
3894
+ "font-feature-custom-ident": {
3895
+ syntax: "<integer>"
3896
+ },
3897
+ "font-feature-custom-ident-list": {
3898
+ syntax: "<integer>+"
3899
+ },
3900
+ "font-feature-custom-ident-character-variant": {
3901
+ syntax: "<integer> <integer>?"
3902
+ },
3903
+ "style-feature-name": {
3904
+ syntax: "<ident> |<custom-property-name>"
3905
+ },
3906
+ "style-feature-plain": {
3907
+ syntax: "<style-feature-name> : <style-feature-value>"
3908
+ },
3909
+ "style-feature-boolean": {
3910
+ syntax: "<style-feature-name>"
3911
+ },
3912
+ "style-range": {
3913
+ syntax: "<style-range-value> <mf-comparison> <style-range-value> | <style-range-value> <mf-lt> <style-range-value> <mf-lt> <style-range-value> | <style-range-value> <mf-gt> <style-range-value> <mf-gt> <style-range-value>"
3914
+ },
3915
+ "style-range-value": {
3916
+ syntax: "<custom-property-name> | <style-feature-value>"
3917
+ },
3918
+ "scroll-state-feature-plain": {
3919
+ syntax: "<scroll-state-feature-stuck> | <scroll-state-feature-snapped> | <scroll-state-feature-scrollable> | <scroll-state-feature-scrolled>"
3920
+ },
3921
+ "scroll-state-feature-stuck": {
3922
+ syntax: "stuck : [ none | top | right | bottom | left | block-start | inline-start | block-end | inline-end ]"
3923
+ },
3924
+ "scroll-state-feature-snapped": {
3925
+ syntax: "snapped : [ none | x | y | block | inline | both ]"
3926
+ },
3927
+ "scroll-state-feature-scrollable": {
3928
+ syntax: "scrollable : [ none | top | right | bottom | left | block-start | inline-start | block-end | inline-end | x | y | block | inline ]"
3929
+ },
3930
+ "scroll-state-feature-scrolled": {
3931
+ syntax: "scrolled : [ none | top | right | bottom | left | block-start | inline-start | block-end | inline-end | x | y | block | inline ]"
3932
+ },
3933
+ "scroll-state-feature-boolean": {
3934
+ syntax: "stuck | snapped | scrollable | scrolled"
3935
+ },
3936
+ "color-font-tech": {
3937
+ syntax: "color-colrv0 | color-colrv1 | color-svg | color-sbix | color-cbdt"
3938
+ },
3939
+ "font-features-tech": {
3940
+ syntax: "features-opentype | features-aat | features-graphite"
3941
+ },
3942
+ "font-tech-patch-values": {
3943
+ syntax: "incremental-patch | incremental-range | incremental-auto | variations | palettes"
3944
+ },
3945
+ "font-tech()": {
3946
+ syntax: "font-tech( <color-font-tech> | <font-features-tech> | <font-tech-patch-values> )"
3947
+ },
3948
+ "font-format-values": {
3949
+ syntax: "collection | embedded-opentype | opentype | truetype | svg | woff | woff2"
3950
+ },
3951
+ "font-format()": {
3952
+ syntax: "font-format(<font-format-values>)"
3953
+ },
3954
+ "at-rule()": {
3955
+ syntax: "at-rule(<at-keyword-token>)"
3956
+ },
3957
+ "named-feature()": {
3958
+ syntax: "named-feature( <ident> )"
3959
+ },
3960
+ "media()": {
3961
+ syntax: "media( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"
3962
+ },
3963
+ "selector()": {
3964
+ syntax: "selector( <complex-selector> )"
3965
+ },
3966
+ "scroll-state()": {
3967
+ syntax: "scroll-state( <scroll-state-query> )"
3968
+ },
3969
+ "supports()": {
3970
+ syntax: "supports( <declaration> )"
3971
+ },
3972
+ "keyframe-selectors": {
3973
+ syntax: "<keyframe-selector>#"
3974
+ },
3630
3975
  "-non-standard-text-align": {
3631
3976
  syntax: "| -moz-center | -webkit-center | -webkit-match-parent"
3632
3977
  }
@@ -4019,6 +4364,18 @@ var selectors = {
4019
4364
  "::view-transition-old()": {
4020
4365
  syntax: "::view-transition-old([ '*' | <custom-ident> ])"
4021
4366
  },
4367
+ ":global": {
4368
+ syntax: ":global"
4369
+ },
4370
+ ":global()": {
4371
+ syntax: ":global( <forgiving-selector-list> )"
4372
+ },
4373
+ ":local": {
4374
+ syntax: ":local"
4375
+ },
4376
+ ":local()": {
4377
+ syntax: ":local( <forgiving-selector-list> )"
4378
+ },
4022
4379
  ":-webkit-any()": {
4023
4380
  syntax: ":-webkit-any( <forgiving-selector-list> )"
4024
4381
  },
@@ -4116,7 +4473,12 @@ var atRules = {
4116
4473
  }
4117
4474
  },
4118
4475
  "@font-feature-values": {
4119
- syntax: "@font-feature-values <family-name># {\n <feature-value-block-list>\n}"
4476
+ syntax: " @font-feature-values <family-name># { <@historical-forms> | <@styleset> | <@character-variant> | <@swash> | <@ornaments> | <@annotation> } ",
4477
+ descriptors: {
4478
+ "font-display": {
4479
+ syntax: "auto | block | swap | fallback | optional"
4480
+ }
4481
+ }
4120
4482
  },
4121
4483
  "@font-palette-values": {
4122
4484
  syntax: "@font-palette-values <dashed-ident> {\n <declaration-list>\n}",
@@ -4157,7 +4519,7 @@ var atRules = {
4157
4519
  syntax: "none | [ crop || cross ]"
4158
4520
  },
4159
4521
  "page-orientation": {
4160
- syntax: "upright | rotate-left | rotate-right "
4522
+ syntax: "upright | rotate-left | rotate-right"
4161
4523
  },
4162
4524
  size: {
4163
4525
  syntax: "<length [0,∞]>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]"
@@ -4165,7 +4527,45 @@ var atRules = {
4165
4527
  }
4166
4528
  },
4167
4529
  "@position-try": {
4168
- syntax: "@position-try <dashed-ident> {\n <declaration-list>\n}"
4530
+ syntax: " @position-try <dashed-ident> { <declaration-list> } ",
4531
+ descriptors: {
4532
+ top: "<'top'>",
4533
+ left: "<'left'>",
4534
+ bottom: "<'bottom'>",
4535
+ right: "<'right'>",
4536
+ "inset-block-start": "<'inset-block-start'>",
4537
+ "inset-block-end": "<'inset-block-end'>",
4538
+ "inset-inline-start": "<'inset-inline-start'>",
4539
+ "inset-inline-end": "<'inset-inline-end'>",
4540
+ "inset-block": "<'inset-block'>",
4541
+ "inset-inline": "<'inset-inline'>",
4542
+ inset: "<'inset'>",
4543
+ "margin-top": "<'margin-top'>",
4544
+ "margin-left": "<'margin-left'>",
4545
+ "margin-bottom": "<'margin-bottom'>",
4546
+ "margin-right": "<'margin-right'>",
4547
+ "margin-block-start": "<'margin-block-start'>",
4548
+ "margin-block-end": "<'margin-block-end'>",
4549
+ "margin-inline-start": "<'margin-inline-start'>",
4550
+ "margin-inline-end": "<'margin-inline-end'>",
4551
+ margin: "<'margin'>",
4552
+ "margin-block": "<'margin-block'>",
4553
+ "margin-inline": "<'margin-inline'>",
4554
+ width: "<'width'>",
4555
+ height: "<'height'>",
4556
+ "min-width": "<'min-width'>",
4557
+ "min-height": "<'min-height'>",
4558
+ "max-width": "<'max-width'>",
4559
+ "max-height": "<'max-height'>",
4560
+ "block-size": "<'block-size'>",
4561
+ "inline-size": "<'inline-size'>",
4562
+ "min-block-size": "<'min-block-size'>",
4563
+ "min-inline-size": "<'min-inline-size'>",
4564
+ "max-block-size": "<'max-block-size'>",
4565
+ "max-inline-size": "<'max-inline-size'>",
4566
+ "align-self": "<'align-self'> | anchor-center",
4567
+ "justify-self": "<'justify-self'> | anchor-center"
4568
+ }
4169
4569
  },
4170
4570
  "@property": {
4171
4571
  syntax: "@property <custom-property-name> {\n <declaration-list>\n}",
@@ -4201,28 +4601,725 @@ var atRules = {
4201
4601
  }
4202
4602
  }
4203
4603
  },
4204
- "@nest": {
4604
+ "@font-features-values": {
4605
+ descriptors: {
4606
+ "font-display": "auto | block | swap | fallback | optional"
4607
+ }
4205
4608
  },
4206
- "@stylistic": {
4207
- syntax: " @stylistic { <feature-value-declaration-list> } "
4609
+ "@color-profile": {
4610
+ syntax: "@color-profile [ <dashed-ident> | device-cmyk ] { <declaration-list> }",
4611
+ descriptors: {
4612
+ src: {
4613
+ syntax: "<url>"
4614
+ }
4615
+ }
4208
4616
  },
4209
4617
  "@historical-forms": {
4210
- syntax: " @historical-forms { <feature-value-declaration-list> } "
4618
+ syntax: " @historical-forms { <declaration-list> }"
4211
4619
  },
4212
4620
  "@styleset": {
4213
- syntax: " @styleset { <feature-value-declaration-list> } "
4621
+ syntax: "@styleset { <declaration-list> }"
4214
4622
  },
4215
4623
  "@character-variant": {
4216
- syntax: " @character-variant { <feature-value-declaration-list> } "
4624
+ syntax: "@character-variant { <declaration-list> }"
4217
4625
  },
4218
4626
  "@swash": {
4219
- syntax: " @swash { <feature-value-declaration-list> } "
4627
+ syntax: "@swash { <declaration-list> }"
4220
4628
  },
4221
4629
  "@ornaments": {
4222
- syntax: " @ornaments { <feature-value-declaration-list> } "
4630
+ syntax: "@ornaments { <declaration-list> }"
4223
4631
  },
4224
4632
  "@annotation": {
4225
- syntax: " @annotation { <feature-value-declaration-list> } "
4633
+ syntax: "@annotation { <declaration-list> }"
4634
+ },
4635
+ "@when": {
4636
+ syntax: " @when <when-condition> {\n <group-rule-body>\n}"
4637
+ },
4638
+ "@else": {
4639
+ syntax: " @else <when-condition>? {\n <group-rule-body>\n}"
4640
+ },
4641
+ "@custom-media": {
4642
+ syntax: " @custom-media <extension-name> [<media-query-list> | true | false ];"
4643
+ },
4644
+ "@top-left-corner": {
4645
+ syntax: " @top-left-corner { <declaration-list> }"
4646
+ },
4647
+ "@top-left": {
4648
+ syntax: " @top-left { <declaration-list> }"
4649
+ },
4650
+ "@top-center": {
4651
+ syntax: " @top-center { <declaration-list> }"
4652
+ },
4653
+ "@top-right": {
4654
+ syntax: " @top-right { <declaration-list> }"
4655
+ },
4656
+ "@top-right-corner": {
4657
+ syntax: " @top-right-corner { <declaration-list> }"
4658
+ },
4659
+ "@bottom-left-corner": {
4660
+ syntax: " @bottom-left-corner { <declaration-list> }"
4661
+ },
4662
+ "@bottom-left": {
4663
+ syntax: " @bottom-left { <declaration-list> }"
4664
+ },
4665
+ "@bottom-right": {
4666
+ syntax: " @bottom-right { <declaration-list> }"
4667
+ },
4668
+ "@bottom-right-corner": {
4669
+ syntax: " @bottom-right-corner { <declaration-list> }"
4670
+ },
4671
+ "@function": {
4672
+ syntax: " @function <dashed-ident>(<function-parameter>#?) [returns <css-type>]? { <declaration-rule-list> }"
4673
+ },
4674
+ "@left-top": {
4675
+ syntax: " @left-top { <declaration-list> }"
4676
+ },
4677
+ "@left-middle": {
4678
+ syntax: " @left-middle { <declaration-list> }"
4679
+ },
4680
+ "@left-bottom": {
4681
+ syntax: " @left-bottom { <declaration-list> }"
4682
+ },
4683
+ "@right-top": {
4684
+ syntax: " @right-top { <declaration-list> }"
4685
+ },
4686
+ "@right-middle": {
4687
+ syntax: " @right-middle { <declaration-list> }"
4688
+ },
4689
+ "@right-bottom": {
4690
+ syntax: " @right-bottom { <declaration-list> }"
4691
+ },
4692
+ "@value": {
4693
+ syntax: "@value [<declaration> && [ <ident># from <ident> ]]"
4694
+ }
4695
+ };
4696
+ var units = [
4697
+ "cap",
4698
+ "ch",
4699
+ "cm",
4700
+ "deg",
4701
+ "dpcm",
4702
+ "dpi",
4703
+ "dppx",
4704
+ "em",
4705
+ "ex",
4706
+ "fr",
4707
+ "grad",
4708
+ "Hz",
4709
+ "ic",
4710
+ "in",
4711
+ "kHz",
4712
+ "mm",
4713
+ "ms",
4714
+ "pc",
4715
+ "pt",
4716
+ "px",
4717
+ "Q",
4718
+ "rad",
4719
+ "rem",
4720
+ "s",
4721
+ "turn",
4722
+ "vh",
4723
+ "vmax",
4724
+ "vmin",
4725
+ "vw",
4726
+ "x"
4727
+ ];
4728
+ var languages = [
4729
+ "aa",
4730
+ "ab",
4731
+ "af",
4732
+ "ak",
4733
+ "sq",
4734
+ "am",
4735
+ "ar",
4736
+ "an",
4737
+ "hy",
4738
+ "as",
4739
+ "av",
4740
+ "ae",
4741
+ "ay",
4742
+ "az",
4743
+ "ba",
4744
+ "bm",
4745
+ "eu",
4746
+ "be",
4747
+ "bn",
4748
+ "bh",
4749
+ "bi",
4750
+ "bo",
4751
+ "bs",
4752
+ "br",
4753
+ "bg",
4754
+ "my",
4755
+ "ca",
4756
+ "cs",
4757
+ "ch",
4758
+ "ce",
4759
+ "zh",
4760
+ "cu",
4761
+ "cv",
4762
+ "kw",
4763
+ "co",
4764
+ "cr",
4765
+ "cy",
4766
+ "da",
4767
+ "de",
4768
+ "dv",
4769
+ "nl",
4770
+ "dz",
4771
+ "el",
4772
+ "en",
4773
+ "eo",
4774
+ "et",
4775
+ "ee",
4776
+ "fo",
4777
+ "fa",
4778
+ "fj",
4779
+ "fi",
4780
+ "fr",
4781
+ "fy",
4782
+ "ff",
4783
+ "ka",
4784
+ "gd",
4785
+ "ga",
4786
+ "gl",
4787
+ "gv",
4788
+ "gn",
4789
+ "gu",
4790
+ "ht",
4791
+ "ha",
4792
+ "he",
4793
+ "hz",
4794
+ "hi",
4795
+ "ho",
4796
+ "hr",
4797
+ "hu",
4798
+ "ig",
4799
+ "is",
4800
+ "io",
4801
+ "ii",
4802
+ "iu",
4803
+ "ie",
4804
+ "ia",
4805
+ "id",
4806
+ "ik",
4807
+ "it",
4808
+ "jv",
4809
+ "ja",
4810
+ "kl",
4811
+ "kn",
4812
+ "ks",
4813
+ "kr",
4814
+ "kk",
4815
+ "km",
4816
+ "ki",
4817
+ "rw",
4818
+ "ky",
4819
+ "kv",
4820
+ "kg",
4821
+ "ko",
4822
+ "kj",
4823
+ "ku",
4824
+ "lo",
4825
+ "la",
4826
+ "lv",
4827
+ "li",
4828
+ "ln",
4829
+ "lt",
4830
+ "lb",
4831
+ "lu",
4832
+ "lg",
4833
+ "mk",
4834
+ "mh",
4835
+ "ml",
4836
+ "mi",
4837
+ "mr",
4838
+ "ms",
4839
+ "mg",
4840
+ "mt",
4841
+ "mo",
4842
+ "mn",
4843
+ "na",
4844
+ "nv",
4845
+ "nr",
4846
+ "nd",
4847
+ "ng",
4848
+ "ne",
4849
+ "nn",
4850
+ "nb",
4851
+ "no",
4852
+ "ny",
4853
+ "oc",
4854
+ "oj",
4855
+ "or",
4856
+ "om",
4857
+ "os",
4858
+ "pa",
4859
+ "pi",
4860
+ "pl",
4861
+ "pt",
4862
+ "ps",
4863
+ "qu",
4864
+ "rm",
4865
+ "ro",
4866
+ "rn",
4867
+ "ru",
4868
+ "sg",
4869
+ "sa",
4870
+ "sr",
4871
+ "si",
4872
+ "sk",
4873
+ "sl",
4874
+ "se",
4875
+ "sm",
4876
+ "sn",
4877
+ "sd",
4878
+ "so",
4879
+ "st",
4880
+ "es",
4881
+ "sc",
4882
+ "ss",
4883
+ "su",
4884
+ "sw",
4885
+ "sv",
4886
+ "ty",
4887
+ "ta",
4888
+ "tt",
4889
+ "te",
4890
+ "tg",
4891
+ "tl",
4892
+ "th",
4893
+ "ti",
4894
+ "to",
4895
+ "tn",
4896
+ "ts",
4897
+ "tk",
4898
+ "tr",
4899
+ "tw",
4900
+ "ug",
4901
+ "uk",
4902
+ "ur",
4903
+ "uz",
4904
+ "ve",
4905
+ "vi",
4906
+ "vo",
4907
+ "wa",
4908
+ "wo",
4909
+ "xh",
4910
+ "yi",
4911
+ "yo",
4912
+ "za",
4913
+ "zu"
4914
+ ];
4915
+ var mediaFeatures = {
4916
+ width: {
4917
+ type: "length",
4918
+ category: "viewport"
4919
+ },
4920
+ "min-width": {
4921
+ type: "length",
4922
+ category: "viewport"
4923
+ },
4924
+ "max-width": {
4925
+ type: "length",
4926
+ category: "viewport"
4927
+ },
4928
+ height: {
4929
+ type: "length",
4930
+ category: "viewport"
4931
+ },
4932
+ "min-height": {
4933
+ type: "length",
4934
+ category: "viewport"
4935
+ },
4936
+ "max-height": {
4937
+ type: "length",
4938
+ category: "viewport"
4939
+ },
4940
+ "aspect-ratio": {
4941
+ type: "ratio",
4942
+ category: "viewport"
4943
+ },
4944
+ "min-aspect-ratio": {
4945
+ type: "ratio",
4946
+ category: "viewport"
4947
+ },
4948
+ "max-aspect-ratio": {
4949
+ type: "ratio",
4950
+ category: "viewport"
4951
+ },
4952
+ orientation: {
4953
+ type: "keyword",
4954
+ values: [
4955
+ "portrait",
4956
+ "landscape"
4957
+ ],
4958
+ category: "viewport"
4959
+ },
4960
+ "device-width": {
4961
+ type: "length",
4962
+ status: "deprecated",
4963
+ category: "device-viewport"
4964
+ },
4965
+ "device-height": {
4966
+ type: "length",
4967
+ status: "deprecated",
4968
+ category: "device-viewport"
4969
+ },
4970
+ "device-aspect-ratio": {
4971
+ type: "ratio",
4972
+ status: "deprecated",
4973
+ category: "device-viewport"
4974
+ },
4975
+ resolution: {
4976
+ type: "resolution",
4977
+ units: [
4978
+ "dpi",
4979
+ "dpcm",
4980
+ "dppx"
4981
+ ],
4982
+ category: "display"
4983
+ },
4984
+ "min-resolution": {
4985
+ type: "resolution",
4986
+ category: "display"
4987
+ },
4988
+ "max-resolution": {
4989
+ type: "resolution",
4990
+ category: "display"
4991
+ },
4992
+ scan: {
4993
+ type: "keyword",
4994
+ values: [
4995
+ "interlace",
4996
+ "progressive"
4997
+ ],
4998
+ status: "deprecated",
4999
+ category: "display"
5000
+ },
5001
+ update: {
5002
+ type: "keyword",
5003
+ values: [
5004
+ "none",
5005
+ "slow",
5006
+ "fast"
5007
+ ],
5008
+ category: "display"
5009
+ },
5010
+ "overflow-block": {
5011
+ type: "keyword",
5012
+ values: [
5013
+ "none",
5014
+ "scroll",
5015
+ "paged"
5016
+ ],
5017
+ category: "display"
5018
+ },
5019
+ "overflow-inline": {
5020
+ type: "keyword",
5021
+ values: [
5022
+ "none",
5023
+ "scroll"
5024
+ ],
5025
+ category: "display"
5026
+ },
5027
+ "display-mode": {
5028
+ type: "keyword",
5029
+ values: [
5030
+ "fullscreen",
5031
+ "standalone",
5032
+ "minimal-ui",
5033
+ "browser"
5034
+ ],
5035
+ category: "display"
5036
+ },
5037
+ color: {
5038
+ type: "integer",
5039
+ category: "color"
5040
+ },
5041
+ "min-color": {
5042
+ type: "integer",
5043
+ category: "color"
5044
+ },
5045
+ "max-color": {
5046
+ type: "integer",
5047
+ category: "color"
5048
+ },
5049
+ "color-index": {
5050
+ type: "integer",
5051
+ category: "color"
5052
+ },
5053
+ "min-color-index": {
5054
+ type: "integer",
5055
+ category: "color"
5056
+ },
5057
+ "max-color-index": {
5058
+ type: "integer",
5059
+ category: "color"
5060
+ },
5061
+ monochrome: {
5062
+ type: "integer",
5063
+ category: "color"
5064
+ },
5065
+ "min-monochrome": {
5066
+ type: "integer",
5067
+ category: "color"
5068
+ },
5069
+ "max-monochrome": {
5070
+ type: "integer",
5071
+ category: "color"
5072
+ },
5073
+ "color-gamut": {
5074
+ type: "keyword",
5075
+ values: [
5076
+ "srgb",
5077
+ "p3",
5078
+ "rec2020"
5079
+ ],
5080
+ category: "color"
5081
+ },
5082
+ "dynamic-range": {
5083
+ type: "keyword",
5084
+ values: [
5085
+ "standard",
5086
+ "high"
5087
+ ],
5088
+ category: "color"
5089
+ },
5090
+ "inverted-colors": {
5091
+ type: "keyword",
5092
+ values: [
5093
+ "none",
5094
+ "inverted"
5095
+ ],
5096
+ category: "color"
5097
+ },
5098
+ pointer: {
5099
+ type: "keyword",
5100
+ values: [
5101
+ "none",
5102
+ "coarse",
5103
+ "fine"
5104
+ ],
5105
+ category: "input"
5106
+ },
5107
+ "any-pointer": {
5108
+ type: "keyword",
5109
+ values: [
5110
+ "none",
5111
+ "coarse",
5112
+ "fine"
5113
+ ],
5114
+ category: "input"
5115
+ },
5116
+ hover: {
5117
+ type: "keyword",
5118
+ values: [
5119
+ "none",
5120
+ "hover"
5121
+ ],
5122
+ category: "input"
5123
+ },
5124
+ "any-hover": {
5125
+ type: "keyword",
5126
+ values: [
5127
+ "none",
5128
+ "hover"
5129
+ ],
5130
+ category: "input"
5131
+ },
5132
+ "prefers-reduced-motion": {
5133
+ type: "keyword",
5134
+ values: [
5135
+ "no-preference",
5136
+ "reduce"
5137
+ ],
5138
+ category: "user-preferences"
5139
+ },
5140
+ "prefers-reduced-transparency": {
5141
+ type: "keyword",
5142
+ values: [
5143
+ "no-preference",
5144
+ "reduce"
5145
+ ],
5146
+ category: "user-preferences"
5147
+ },
5148
+ "prefers-contrast": {
5149
+ type: "keyword",
5150
+ values: [
5151
+ "no-preference",
5152
+ "less",
5153
+ "more",
5154
+ "custom"
5155
+ ],
5156
+ category: "user-preferences"
5157
+ },
5158
+ "prefers-color-scheme": {
5159
+ type: "keyword",
5160
+ values: [
5161
+ "light",
5162
+ "dark"
5163
+ ],
5164
+ category: "user-preferences"
5165
+ },
5166
+ "prefers-reduced-data": {
5167
+ type: "keyword",
5168
+ values: [
5169
+ "no-preference",
5170
+ "reduce"
5171
+ ],
5172
+ category: "user-preferences"
5173
+ },
5174
+ "forced-colors": {
5175
+ type: "keyword",
5176
+ values: [
5177
+ "none",
5178
+ "active"
5179
+ ],
5180
+ category: "accessibility"
5181
+ },
5182
+ scripting: {
5183
+ type: "keyword",
5184
+ values: [
5185
+ "none",
5186
+ "initial-only",
5187
+ "enabled"
5188
+ ],
5189
+ category: "accessibility"
5190
+ },
5191
+ grid: {
5192
+ type: "boolean",
5193
+ values: [
5194
+ 0,
5195
+ 1
5196
+ ],
5197
+ category: "legacy"
5198
+ },
5199
+ "light-level": {
5200
+ type: "keyword",
5201
+ values: [
5202
+ "dim",
5203
+ "normal",
5204
+ "washed"
5205
+ ],
5206
+ status: "deprecated",
5207
+ category: "legacy"
5208
+ },
5209
+ "environment-blending": {
5210
+ type: "keyword",
5211
+ values: [
5212
+ "opaque",
5213
+ "additive",
5214
+ "subtractive"
5215
+ ],
5216
+ category: "environment"
5217
+ },
5218
+ "nav-controls": {
5219
+ type: "keyword",
5220
+ values: [
5221
+ "none",
5222
+ "back"
5223
+ ],
5224
+ category: "navigation"
5225
+ },
5226
+ "video-color-gamut": {
5227
+ type: "keyword",
5228
+ values: [
5229
+ "srgb",
5230
+ "p3",
5231
+ "rec2020"
5232
+ ],
5233
+ category: "video"
5234
+ },
5235
+ "video-dynamic-range": {
5236
+ type: "keyword",
5237
+ values: [
5238
+ "standard",
5239
+ "high"
5240
+ ],
5241
+ category: "video"
5242
+ },
5243
+ "-webkit-device-pixel-ratio": {
5244
+ type: "number",
5245
+ status: "deprecated",
5246
+ equivalent: "resolution",
5247
+ category: "-webkit-"
5248
+ },
5249
+ "-webkit-max-device-pixel-ratio": {
5250
+ type: "number",
5251
+ status: "deprecated",
5252
+ category: "-webkit-"
5253
+ },
5254
+ "-webkit-transform-3d": {
5255
+ type: "boolean",
5256
+ values: [
5257
+ 0,
5258
+ 1
5259
+ ],
5260
+ status: "non-standard",
5261
+ category: "-webkit-"
5262
+ },
5263
+ "-webkit-touch-enabled": {
5264
+ type: "boolean",
5265
+ values: [
5266
+ 0,
5267
+ 1
5268
+ ],
5269
+ status: "non-standard",
5270
+ category: "-webkit-"
5271
+ },
5272
+ "-webkit-min-device-pixel-ratio": {
5273
+ type: "number",
5274
+ status: "deprecated",
5275
+ category: "-webkit-"
5276
+ },
5277
+ "-moz-device-pixel-ratio": {
5278
+ type: "number",
5279
+ status: "deprecated",
5280
+ category: "-moz-"
5281
+ },
5282
+ "-moz-touch-enabled": {
5283
+ type: "boolean",
5284
+ values: [
5285
+ 0,
5286
+ 1
5287
+ ],
5288
+ status: "non-standard",
5289
+ category: "-moz-"
5290
+ },
5291
+ "-moz-os-version": {
5292
+ type: "string",
5293
+ status: "internal",
5294
+ category: "-moz-"
5295
+ },
5296
+ "-ms-high-contrast": {
5297
+ type: "keyword",
5298
+ values: [
5299
+ "none",
5300
+ "active",
5301
+ "black-on-white",
5302
+ "white-on-black"
5303
+ ],
5304
+ status: "deprecated",
5305
+ equivalent: "forced-colors",
5306
+ category: "-ms-"
5307
+ },
5308
+ "-ms-view-state": {
5309
+ type: "keyword",
5310
+ values: [
5311
+ "snapped",
5312
+ "fullscreen-portrait",
5313
+ "fullscreen-landscape",
5314
+ "filled"
5315
+ ],
5316
+ status: "obsolete",
5317
+ category: "-ms-"
5318
+ },
5319
+ "-o-device-pixel-ratio": {
5320
+ type: "number",
5321
+ status: "obsolete",
5322
+ category: "-o-"
4226
5323
  }
4227
5324
  };
4228
5325
  var config = {
@@ -4230,7 +5327,10 @@ var config = {
4230
5327
  functions: functions,
4231
5328
  syntaxes: syntaxes,
4232
5329
  selectors: selectors,
4233
- atRules: atRules
5330
+ atRules: atRules,
5331
+ units: units,
5332
+ languages: languages,
5333
+ mediaFeatures: mediaFeatures
4234
5334
  };
4235
5335
 
4236
- export { atRules, declarations, config as default, functions, selectors, syntaxes };
5336
+ export { atRules, declarations, config as default, functions, languages, mediaFeatures, selectors, syntaxes, units };