@eslint/css-tree 3.6.2 → 3.6.5
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/cjs/lexer/match.cjs +1 -1
- package/cjs/syntax/atrule/media.cjs +2 -2
- package/cjs/syntax/node/Atrule.cjs +3 -3
- package/cjs/syntax/node/Block.cjs +8 -2
- package/data/patch.json +6 -14
- package/dist/csstree.esm.js +6 -6
- package/dist/csstree.js +6 -6
- package/dist/data.cjs +16 -14
- package/dist/data.js +16 -14
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/lib/lexer/match.js +1 -1
- package/lib/syntax/atrule/media.js +2 -2
- package/lib/syntax/node/Atrule.js +3 -3
- package/lib/syntax/node/Block.js +8 -2
- package/package.json +2 -2
package/dist/data.cjs
CHANGED
|
@@ -181,7 +181,7 @@ module.exports = {
|
|
|
181
181
|
"counters()": "counters( <counter-name> , <string> , <counter-style>? )",
|
|
182
182
|
"cross-fade()": "cross-fade( <cf-mixing-image> , <cf-final-image>? )",
|
|
183
183
|
"cubic-bezier()": "cubic-bezier( [<number [0,1]> , <number>]#{2} )",
|
|
184
|
-
"cubic-bezier-
|
|
184
|
+
"cubic-bezier-easing-function": "ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )",
|
|
185
185
|
"custom-color-space": "<dashed-ident>",
|
|
186
186
|
"custom-params": "<dashed-ident> [<number>|<percentage>|none]+",
|
|
187
187
|
"dasharray": "[[<length-percentage>|<number>]+]#",
|
|
@@ -219,8 +219,9 @@ module.exports = {
|
|
|
219
219
|
"fixed-repeat": "repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )",
|
|
220
220
|
"fixed-size": "<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )",
|
|
221
221
|
"font-stretch-absolute": "normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>",
|
|
222
|
-
"font-variant-
|
|
222
|
+
"font-variant-css2": "normal|small-caps",
|
|
223
223
|
"font-weight-absolute": "normal|bold|<number [1,1000]>",
|
|
224
|
+
"font-width-css3": "normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",
|
|
224
225
|
"form-control-identifier": "select",
|
|
225
226
|
"frequency-percentage": "<frequency>|<percentage>",
|
|
226
227
|
"generic-complete": "serif|sans-serif|system-ui|cursive|fantasy|math|monospace",
|
|
@@ -425,6 +426,7 @@ module.exports = {
|
|
|
425
426
|
"symbols()": "symbols( <symbols-type>? [<string>|<image>]+ )",
|
|
426
427
|
"symbols-type": "cyclic|numeric|alphabetic|symbolic|fixed",
|
|
427
428
|
"system-color": "AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText",
|
|
429
|
+
"system-family-name": "caption|icon|menu|message-box|small-caption|status-bar",
|
|
428
430
|
"tan()": "tan( <calc-sum> )",
|
|
429
431
|
"target": "<target-counter()>|<target-counters()>|<target-text()>",
|
|
430
432
|
"target-counter()": "target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )",
|
|
@@ -485,7 +487,6 @@ module.exports = {
|
|
|
485
487
|
"attr-name": "<wq-name>",
|
|
486
488
|
"attr-fallback": "<any-value>",
|
|
487
489
|
"bottom": "<length>|auto",
|
|
488
|
-
"cubic-bezier-easing-function": "ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )",
|
|
489
490
|
"generic-voice": "[<age>? <gender> <integer>?]",
|
|
490
491
|
"gender": "male|female|neutral",
|
|
491
492
|
"generic-script-specific": "generic( kai )|generic( fangsong )|generic( nastaliq )",
|
|
@@ -523,10 +524,7 @@ module.exports = {
|
|
|
523
524
|
"xyz-space": "xyz|xyz-d50|xyz-d65",
|
|
524
525
|
"style-condition": "not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]",
|
|
525
526
|
"-non-standard-display": "-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box",
|
|
526
|
-
"inset-area": "[[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}]"
|
|
527
|
-
"font-variant-css2": "normal|small-caps",
|
|
528
|
-
"font-width-css3": "normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",
|
|
529
|
-
"system-family-name": "caption|icon|menu|message-box|small-caption|status-bar"
|
|
527
|
+
"inset-area": "[[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}]"
|
|
530
528
|
},
|
|
531
529
|
"properties": {
|
|
532
530
|
"--*": "<declaration-value>",
|
|
@@ -587,7 +585,6 @@ module.exports = {
|
|
|
587
585
|
"-moz-context-properties": "none|[fill|fill-opacity|stroke|stroke-opacity]#",
|
|
588
586
|
"-moz-float-edge": "border-box|content-box|margin-box|padding-box",
|
|
589
587
|
"-moz-force-broken-image-icon": "0|1",
|
|
590
|
-
"-moz-image-region": "<shape>|auto",
|
|
591
588
|
"-moz-orient": "inline|block|horizontal|vertical",
|
|
592
589
|
"-moz-outline-radius": "<outline-radius>{1,4} [/ <outline-radius>{1,4}]?",
|
|
593
590
|
"-moz-outline-radius-bottomleft": "<outline-radius>",
|
|
@@ -643,7 +640,7 @@ module.exports = {
|
|
|
643
640
|
"animation-composition": "<single-animation-composition>#",
|
|
644
641
|
"animation-delay": "<time>#",
|
|
645
642
|
"animation-direction": "<single-animation-direction>#",
|
|
646
|
-
"animation-duration": "
|
|
643
|
+
"animation-duration": "[auto|<time [0s,∞]>]#",
|
|
647
644
|
"animation-fill-mode": "<single-animation-fill-mode>#",
|
|
648
645
|
"animation-iteration-count": "<single-animation-iteration-count>#",
|
|
649
646
|
"animation-name": "[none|<keyframes-name>]#",
|
|
@@ -832,6 +829,7 @@ module.exports = {
|
|
|
832
829
|
"font-variant-position": "normal|sub|super",
|
|
833
830
|
"font-variation-settings": "normal|[<string> <number>]#",
|
|
834
831
|
"font-weight": "<font-weight-absolute>|bolder|lighter",
|
|
832
|
+
"font-width": "normal|<percentage [0,∞]>|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",
|
|
835
833
|
"forced-color-adjust": "auto|none|preserve-parent-color",
|
|
836
834
|
"gap": "<'row-gap'> <'column-gap'>?",
|
|
837
835
|
"grid": "<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>",
|
|
@@ -1005,6 +1003,7 @@ module.exports = {
|
|
|
1005
1003
|
"row-gap": "normal|<length-percentage>",
|
|
1006
1004
|
"ruby-align": "start|center|space-between|space-around",
|
|
1007
1005
|
"ruby-merge": "separate|collapse|auto",
|
|
1006
|
+
"ruby-overhang": "auto|none",
|
|
1008
1007
|
"ruby-position": "[alternate||[over|under]]|inter-character",
|
|
1009
1008
|
"rx": "<length>|<percentage>",
|
|
1010
1009
|
"ry": "<length>|<percentage>",
|
|
@@ -1056,6 +1055,7 @@ module.exports = {
|
|
|
1056
1055
|
"stop-color": "<'color'>",
|
|
1057
1056
|
"stop-opacity": "<'opacity'>",
|
|
1058
1057
|
"stroke": "<paint>",
|
|
1058
|
+
"stroke-color": "<color>",
|
|
1059
1059
|
"stroke-dasharray": "none|[<svg-length>+]#",
|
|
1060
1060
|
"stroke-dashoffset": "<svg-length>",
|
|
1061
1061
|
"stroke-linecap": "butt|round|square",
|
|
@@ -1120,7 +1120,7 @@ module.exports = {
|
|
|
1120
1120
|
"view-timeline-inset": "[[auto|<length-percentage>]{1,2}]#",
|
|
1121
1121
|
"view-timeline-name": "[none|<dashed-ident>]#",
|
|
1122
1122
|
"view-transition-class": "none|<custom-ident>+",
|
|
1123
|
-
"view-transition-name": "none|<custom-ident
|
|
1123
|
+
"view-transition-name": "none|<custom-ident>|match-element",
|
|
1124
1124
|
"visibility": "visible|hidden|collapse",
|
|
1125
1125
|
"white-space": "normal|pre|pre-wrap|pre-line|<'white-space-collapse'>||<'text-wrap-mode'>",
|
|
1126
1126
|
"white-space-collapse": "collapse|preserve|preserve-breaks|preserve-spaces|break-spaces",
|
|
@@ -1200,7 +1200,7 @@ module.exports = {
|
|
|
1200
1200
|
"additive-symbols": "[<integer [0,∞]>&&<symbol>]#",
|
|
1201
1201
|
"fallback": "<counter-style-name>",
|
|
1202
1202
|
"negative": "<symbol> <symbol>?",
|
|
1203
|
-
"pad": "<integer>&&<symbol>",
|
|
1203
|
+
"pad": "<integer [0,∞]>&&<symbol>",
|
|
1204
1204
|
"prefix": "<symbol>",
|
|
1205
1205
|
"range": "[[<integer>|infinite]{2}]#|auto",
|
|
1206
1206
|
"speak-as": "auto|bullets|numbers|words|spell-out|<counter-style-name>",
|
|
@@ -1344,9 +1344,11 @@ module.exports = {
|
|
|
1344
1344
|
"types": "none|<custom-ident>+"
|
|
1345
1345
|
}
|
|
1346
1346
|
},
|
|
1347
|
-
"
|
|
1348
|
-
"prelude": "<
|
|
1349
|
-
"descriptors":
|
|
1347
|
+
"font-features-values": {
|
|
1348
|
+
"prelude": "[<string>|<custom-ident>]+",
|
|
1349
|
+
"descriptors": {
|
|
1350
|
+
"font-display": "auto|block|swap|fallback|optional"
|
|
1351
|
+
}
|
|
1350
1352
|
}
|
|
1351
1353
|
}
|
|
1352
1354
|
};
|
package/dist/data.js
CHANGED
|
@@ -181,7 +181,7 @@ export default {
|
|
|
181
181
|
"counters()": "counters( <counter-name> , <string> , <counter-style>? )",
|
|
182
182
|
"cross-fade()": "cross-fade( <cf-mixing-image> , <cf-final-image>? )",
|
|
183
183
|
"cubic-bezier()": "cubic-bezier( [<number [0,1]> , <number>]#{2} )",
|
|
184
|
-
"cubic-bezier-
|
|
184
|
+
"cubic-bezier-easing-function": "ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )",
|
|
185
185
|
"custom-color-space": "<dashed-ident>",
|
|
186
186
|
"custom-params": "<dashed-ident> [<number>|<percentage>|none]+",
|
|
187
187
|
"dasharray": "[[<length-percentage>|<number>]+]#",
|
|
@@ -219,8 +219,9 @@ export default {
|
|
|
219
219
|
"fixed-repeat": "repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )",
|
|
220
220
|
"fixed-size": "<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )",
|
|
221
221
|
"font-stretch-absolute": "normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>",
|
|
222
|
-
"font-variant-
|
|
222
|
+
"font-variant-css2": "normal|small-caps",
|
|
223
223
|
"font-weight-absolute": "normal|bold|<number [1,1000]>",
|
|
224
|
+
"font-width-css3": "normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",
|
|
224
225
|
"form-control-identifier": "select",
|
|
225
226
|
"frequency-percentage": "<frequency>|<percentage>",
|
|
226
227
|
"generic-complete": "serif|sans-serif|system-ui|cursive|fantasy|math|monospace",
|
|
@@ -425,6 +426,7 @@ export default {
|
|
|
425
426
|
"symbols()": "symbols( <symbols-type>? [<string>|<image>]+ )",
|
|
426
427
|
"symbols-type": "cyclic|numeric|alphabetic|symbolic|fixed",
|
|
427
428
|
"system-color": "AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText",
|
|
429
|
+
"system-family-name": "caption|icon|menu|message-box|small-caption|status-bar",
|
|
428
430
|
"tan()": "tan( <calc-sum> )",
|
|
429
431
|
"target": "<target-counter()>|<target-counters()>|<target-text()>",
|
|
430
432
|
"target-counter()": "target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )",
|
|
@@ -485,7 +487,6 @@ export default {
|
|
|
485
487
|
"attr-name": "<wq-name>",
|
|
486
488
|
"attr-fallback": "<any-value>",
|
|
487
489
|
"bottom": "<length>|auto",
|
|
488
|
-
"cubic-bezier-easing-function": "ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )",
|
|
489
490
|
"generic-voice": "[<age>? <gender> <integer>?]",
|
|
490
491
|
"gender": "male|female|neutral",
|
|
491
492
|
"generic-script-specific": "generic( kai )|generic( fangsong )|generic( nastaliq )",
|
|
@@ -523,10 +524,7 @@ export default {
|
|
|
523
524
|
"xyz-space": "xyz|xyz-d50|xyz-d65",
|
|
524
525
|
"style-condition": "not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]",
|
|
525
526
|
"-non-standard-display": "-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box",
|
|
526
|
-
"inset-area": "[[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}]"
|
|
527
|
-
"font-variant-css2": "normal|small-caps",
|
|
528
|
-
"font-width-css3": "normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",
|
|
529
|
-
"system-family-name": "caption|icon|menu|message-box|small-caption|status-bar"
|
|
527
|
+
"inset-area": "[[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}]"
|
|
530
528
|
},
|
|
531
529
|
"properties": {
|
|
532
530
|
"--*": "<declaration-value>",
|
|
@@ -587,7 +585,6 @@ export default {
|
|
|
587
585
|
"-moz-context-properties": "none|[fill|fill-opacity|stroke|stroke-opacity]#",
|
|
588
586
|
"-moz-float-edge": "border-box|content-box|margin-box|padding-box",
|
|
589
587
|
"-moz-force-broken-image-icon": "0|1",
|
|
590
|
-
"-moz-image-region": "<shape>|auto",
|
|
591
588
|
"-moz-orient": "inline|block|horizontal|vertical",
|
|
592
589
|
"-moz-outline-radius": "<outline-radius>{1,4} [/ <outline-radius>{1,4}]?",
|
|
593
590
|
"-moz-outline-radius-bottomleft": "<outline-radius>",
|
|
@@ -643,7 +640,7 @@ export default {
|
|
|
643
640
|
"animation-composition": "<single-animation-composition>#",
|
|
644
641
|
"animation-delay": "<time>#",
|
|
645
642
|
"animation-direction": "<single-animation-direction>#",
|
|
646
|
-
"animation-duration": "
|
|
643
|
+
"animation-duration": "[auto|<time [0s,∞]>]#",
|
|
647
644
|
"animation-fill-mode": "<single-animation-fill-mode>#",
|
|
648
645
|
"animation-iteration-count": "<single-animation-iteration-count>#",
|
|
649
646
|
"animation-name": "[none|<keyframes-name>]#",
|
|
@@ -832,6 +829,7 @@ export default {
|
|
|
832
829
|
"font-variant-position": "normal|sub|super",
|
|
833
830
|
"font-variation-settings": "normal|[<string> <number>]#",
|
|
834
831
|
"font-weight": "<font-weight-absolute>|bolder|lighter",
|
|
832
|
+
"font-width": "normal|<percentage [0,∞]>|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",
|
|
835
833
|
"forced-color-adjust": "auto|none|preserve-parent-color",
|
|
836
834
|
"gap": "<'row-gap'> <'column-gap'>?",
|
|
837
835
|
"grid": "<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>",
|
|
@@ -1005,6 +1003,7 @@ export default {
|
|
|
1005
1003
|
"row-gap": "normal|<length-percentage>",
|
|
1006
1004
|
"ruby-align": "start|center|space-between|space-around",
|
|
1007
1005
|
"ruby-merge": "separate|collapse|auto",
|
|
1006
|
+
"ruby-overhang": "auto|none",
|
|
1008
1007
|
"ruby-position": "[alternate||[over|under]]|inter-character",
|
|
1009
1008
|
"rx": "<length>|<percentage>",
|
|
1010
1009
|
"ry": "<length>|<percentage>",
|
|
@@ -1056,6 +1055,7 @@ export default {
|
|
|
1056
1055
|
"stop-color": "<'color'>",
|
|
1057
1056
|
"stop-opacity": "<'opacity'>",
|
|
1058
1057
|
"stroke": "<paint>",
|
|
1058
|
+
"stroke-color": "<color>",
|
|
1059
1059
|
"stroke-dasharray": "none|[<svg-length>+]#",
|
|
1060
1060
|
"stroke-dashoffset": "<svg-length>",
|
|
1061
1061
|
"stroke-linecap": "butt|round|square",
|
|
@@ -1120,7 +1120,7 @@ export default {
|
|
|
1120
1120
|
"view-timeline-inset": "[[auto|<length-percentage>]{1,2}]#",
|
|
1121
1121
|
"view-timeline-name": "[none|<dashed-ident>]#",
|
|
1122
1122
|
"view-transition-class": "none|<custom-ident>+",
|
|
1123
|
-
"view-transition-name": "none|<custom-ident
|
|
1123
|
+
"view-transition-name": "none|<custom-ident>|match-element",
|
|
1124
1124
|
"visibility": "visible|hidden|collapse",
|
|
1125
1125
|
"white-space": "normal|pre|pre-wrap|pre-line|<'white-space-collapse'>||<'text-wrap-mode'>",
|
|
1126
1126
|
"white-space-collapse": "collapse|preserve|preserve-breaks|preserve-spaces|break-spaces",
|
|
@@ -1200,7 +1200,7 @@ export default {
|
|
|
1200
1200
|
"additive-symbols": "[<integer [0,∞]>&&<symbol>]#",
|
|
1201
1201
|
"fallback": "<counter-style-name>",
|
|
1202
1202
|
"negative": "<symbol> <symbol>?",
|
|
1203
|
-
"pad": "<integer>&&<symbol>",
|
|
1203
|
+
"pad": "<integer [0,∞]>&&<symbol>",
|
|
1204
1204
|
"prefix": "<symbol>",
|
|
1205
1205
|
"range": "[[<integer>|infinite]{2}]#|auto",
|
|
1206
1206
|
"speak-as": "auto|bullets|numbers|words|spell-out|<counter-style-name>",
|
|
@@ -1344,9 +1344,11 @@ export default {
|
|
|
1344
1344
|
"types": "none|<custom-ident>+"
|
|
1345
1345
|
}
|
|
1346
1346
|
},
|
|
1347
|
-
"
|
|
1348
|
-
"prelude": "<
|
|
1349
|
-
"descriptors":
|
|
1347
|
+
"font-features-values": {
|
|
1348
|
+
"prelude": "[<string>|<custom-ident>]+",
|
|
1349
|
+
"descriptors": {
|
|
1350
|
+
"font-display": "auto|block|swap|fallback|optional"
|
|
1351
|
+
}
|
|
1350
1352
|
}
|
|
1351
1353
|
}
|
|
1352
1354
|
};
|
package/dist/version.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = "3.6.
|
|
1
|
+
module.exports = "3.6.5";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "3.6.
|
|
1
|
+
export const version = "3.6.5";
|
package/lib/lexer/match.js
CHANGED
|
@@ -11,7 +11,7 @@ const EXIT_REASON_MATCH = 'Match';
|
|
|
11
11
|
const EXIT_REASON_MISMATCH = 'Mismatch';
|
|
12
12
|
const EXIT_REASON_ITERATION_LIMIT = 'Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)';
|
|
13
13
|
|
|
14
|
-
const ITERATION_LIMIT =
|
|
14
|
+
const ITERATION_LIMIT = 150000;
|
|
15
15
|
export let totalIterationCount = 0;
|
|
16
16
|
|
|
17
17
|
function reverseList(list) {
|
|
@@ -33,7 +33,7 @@ export const structure = {
|
|
|
33
33
|
block: ['Block', null]
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export function parse(isDeclaration = false) {
|
|
36
|
+
export function parse(isDeclaration = false, { allowNestedRules = false } = {}) {
|
|
37
37
|
const start = this.tokenStart;
|
|
38
38
|
let name;
|
|
39
39
|
let nameLowerCase;
|
|
@@ -67,10 +67,10 @@ export function parse(isDeclaration = false) {
|
|
|
67
67
|
case LeftCurlyBracket:
|
|
68
68
|
if (hasOwnProperty.call(this.atrule, nameLowerCase) &&
|
|
69
69
|
typeof this.atrule[nameLowerCase].block === 'function') {
|
|
70
|
-
block = this.atrule[nameLowerCase].block.call(this, isDeclaration);
|
|
70
|
+
block = this.atrule[nameLowerCase].block.call(this, isDeclaration, { allowNestedRules });
|
|
71
71
|
} else {
|
|
72
72
|
// TODO: should consume block content as Raw?
|
|
73
|
-
block = this.Block(isDeclarationBlockAtrule.call(this));
|
|
73
|
+
block = this.Block(isDeclaration || isDeclarationBlockAtrule.call(this), { allowNestedRules });
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
break;
|
package/lib/syntax/node/Block.js
CHANGED
|
@@ -15,11 +15,17 @@ import {
|
|
|
15
15
|
const AMPERSAND = 0x0026; // U+0026 AMPERSAND (&)
|
|
16
16
|
const DOT = 0x002E; // U+002E FULL STOP (.)
|
|
17
17
|
const STAR = 0x002A; // U+002A ASTERISK (*);
|
|
18
|
+
const PLUSSIGN = 0x002B; // U+002B PLUS SIGN (+)
|
|
19
|
+
const GREATERTHANSIGN = 0x003E; // U+003E GREATER-THAN SIGN (>)
|
|
20
|
+
const TILDE = 0x007E; // U+007E TILDE (~)
|
|
18
21
|
|
|
19
22
|
const selectorStarts = new Set([
|
|
20
23
|
AMPERSAND,
|
|
21
24
|
DOT,
|
|
22
|
-
STAR
|
|
25
|
+
STAR,
|
|
26
|
+
PLUSSIGN,
|
|
27
|
+
GREATERTHANSIGN,
|
|
28
|
+
TILDE
|
|
23
29
|
]);
|
|
24
30
|
|
|
25
31
|
function consumeRaw() {
|
|
@@ -93,7 +99,7 @@ export function parse(isStyleBlock, { allowNestedRules = false } = {}) {
|
|
|
93
99
|
break;
|
|
94
100
|
|
|
95
101
|
case AtKeyword:
|
|
96
|
-
children.push(this.parseWithFallback(this.Atrule.bind(this, isStyleBlock), consumeRaw));
|
|
102
|
+
children.push(this.parseWithFallback(this.Atrule.bind(this, isStyleBlock, { allowNestedRules }), consumeRaw));
|
|
97
103
|
break;
|
|
98
104
|
|
|
99
105
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint/css-tree",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5",
|
|
4
4
|
"description": "A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations",
|
|
5
5
|
"author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"test:types": "tsc -p tests/types/tsconfig.json"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
|
-
"mdn-data": "2.
|
|
110
|
+
"mdn-data": "2.23.0",
|
|
111
111
|
"source-map-js": "^1.0.1"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|