cssstyle 6.0.1 → 6.1.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// autogenerated - 2026-02-
|
|
2
|
+
// autogenerated - 2026-02-23
|
|
3
3
|
|
|
4
4
|
module.exports = new Map([
|
|
5
5
|
[
|
|
@@ -1097,7 +1097,7 @@ module.exports = new Map([
|
|
|
1097
1097
|
"alignment-baseline",
|
|
1098
1098
|
"alignmentBaseline"
|
|
1099
1099
|
],
|
|
1100
|
-
"syntax": "baseline |
|
|
1100
|
+
"syntax": "baseline | <baseline-metric>"
|
|
1101
1101
|
}
|
|
1102
1102
|
],
|
|
1103
1103
|
[
|
|
@@ -4362,7 +4362,7 @@ module.exports = new Map([
|
|
|
4362
4362
|
{
|
|
4363
4363
|
"name": "column-rule-break",
|
|
4364
4364
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-column-rule-break",
|
|
4365
|
-
"initial": "
|
|
4365
|
+
"initial": "normal",
|
|
4366
4366
|
"appliesTo": "grid containers, flex containers, multicol containers, and grid lanes containers",
|
|
4367
4367
|
"inherited": "no",
|
|
4368
4368
|
"percentages": "n/a",
|
|
@@ -4373,7 +4373,7 @@ module.exports = new Map([
|
|
|
4373
4373
|
"column-rule-break",
|
|
4374
4374
|
"columnRuleBreak"
|
|
4375
4375
|
],
|
|
4376
|
-
"syntax": "none |
|
|
4376
|
+
"syntax": "none | normal | intersection"
|
|
4377
4377
|
}
|
|
4378
4378
|
],
|
|
4379
4379
|
[
|
|
@@ -4387,7 +4387,7 @@ module.exports = new Map([
|
|
|
4387
4387
|
"percentages": "n/a",
|
|
4388
4388
|
"computedValue": "as specified",
|
|
4389
4389
|
"canonicalOrder": "per grammar",
|
|
4390
|
-
"animationType": "repeatable list, see §
|
|
4390
|
+
"animationType": "repeatable list, see § 4.6 Interpolation of list values.",
|
|
4391
4391
|
"styleDeclaration": [
|
|
4392
4392
|
"column-rule-color",
|
|
4393
4393
|
"columnRuleColor"
|
|
@@ -4401,7 +4401,7 @@ module.exports = new Map([
|
|
|
4401
4401
|
"name": "column-rule-edge-inset",
|
|
4402
4402
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-column-rule-edge-inset",
|
|
4403
4403
|
"initial": "see individual properties",
|
|
4404
|
-
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
4404
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-start, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-edge-inset-end, row-rule-interior-inset-start, and row-rule-interior-inset-end",
|
|
4405
4405
|
"inherited": "see individual properties",
|
|
4406
4406
|
"percentages": "see individual properties",
|
|
4407
4407
|
"computedValue": "see individual properties",
|
|
@@ -4468,7 +4468,7 @@ module.exports = new Map([
|
|
|
4468
4468
|
"column-rule-inset",
|
|
4469
4469
|
"columnRuleInset"
|
|
4470
4470
|
],
|
|
4471
|
-
"syntax": "<
|
|
4471
|
+
"syntax": "<'column-rule-edge-inset'> [ / <'column-rule-interior-inset'> ]?"
|
|
4472
4472
|
}
|
|
4473
4473
|
],
|
|
4474
4474
|
[
|
|
@@ -4477,7 +4477,7 @@ module.exports = new Map([
|
|
|
4477
4477
|
"name": "column-rule-inset-end",
|
|
4478
4478
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-column-rule-inset-end",
|
|
4479
4479
|
"initial": "see individual properties",
|
|
4480
|
-
"appliesTo": "column-rule-edge-inset-
|
|
4480
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
4481
4481
|
"inherited": "see individual properties",
|
|
4482
4482
|
"percentages": "see individual properties",
|
|
4483
4483
|
"computedValue": "see individual properties",
|
|
@@ -4496,7 +4496,7 @@ module.exports = new Map([
|
|
|
4496
4496
|
"name": "column-rule-inset-start",
|
|
4497
4497
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-column-rule-inset-start",
|
|
4498
4498
|
"initial": "see individual properties",
|
|
4499
|
-
"appliesTo": "column-rule-edge-inset-start
|
|
4499
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
4500
4500
|
"inherited": "see individual properties",
|
|
4501
4501
|
"percentages": "see individual properties",
|
|
4502
4502
|
"computedValue": "see individual properties",
|
|
@@ -4515,7 +4515,7 @@ module.exports = new Map([
|
|
|
4515
4515
|
"name": "column-rule-interior-inset",
|
|
4516
4516
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-column-rule-interior-inset",
|
|
4517
4517
|
"initial": "see individual properties",
|
|
4518
|
-
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
4518
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-start, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-edge-inset-end, row-rule-interior-inset-start, and row-rule-interior-inset-end",
|
|
4519
4519
|
"inherited": "see individual properties",
|
|
4520
4520
|
"percentages": "see individual properties",
|
|
4521
4521
|
"computedValue": "see individual properties",
|
|
@@ -4615,7 +4615,7 @@ module.exports = new Map([
|
|
|
4615
4615
|
"percentages": "n/a",
|
|
4616
4616
|
"computedValue": "list of absolute lengths, snapped as a border width",
|
|
4617
4617
|
"canonicalOrder": "per grammar",
|
|
4618
|
-
"animationType": "repeatable list, see §
|
|
4618
|
+
"animationType": "repeatable list, see § 4.6 Interpolation of list values.",
|
|
4619
4619
|
"styleDeclaration": [
|
|
4620
4620
|
"column-rule-width",
|
|
4621
4621
|
"columnRuleWidth"
|
|
@@ -5835,7 +5835,7 @@ module.exports = new Map([
|
|
|
5835
5835
|
"dominant-baseline",
|
|
5836
5836
|
"dominantBaseline"
|
|
5837
5837
|
],
|
|
5838
|
-
"syntax": "auto |
|
|
5838
|
+
"syntax": "auto | <baseline-metric>"
|
|
5839
5839
|
}
|
|
5840
5840
|
],
|
|
5841
5841
|
[
|
|
@@ -7970,120 +7970,6 @@ module.exports = new Map([
|
|
|
7970
7970
|
"syntax": "<isolation-mode>"
|
|
7971
7971
|
}
|
|
7972
7972
|
],
|
|
7973
|
-
[
|
|
7974
|
-
"item-cross",
|
|
7975
|
-
{
|
|
7976
|
-
"name": "item-cross",
|
|
7977
|
-
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-cross",
|
|
7978
|
-
"initial": "auto",
|
|
7979
|
-
"appliesTo": "flex containers, grid containers, grid lanes containers",
|
|
7980
|
-
"inherited": "no",
|
|
7981
|
-
"percentages": "N/A",
|
|
7982
|
-
"computedValue": "as specified",
|
|
7983
|
-
"canonicalOrder": "per grammar",
|
|
7984
|
-
"animationType": "discrete",
|
|
7985
|
-
"styleDeclaration": [
|
|
7986
|
-
"item-cross",
|
|
7987
|
-
"itemCross"
|
|
7988
|
-
],
|
|
7989
|
-
"syntax": "[ auto | nowrap | wrap ] || [ normal | reverse ] | wrap-reverse"
|
|
7990
|
-
}
|
|
7991
|
-
],
|
|
7992
|
-
[
|
|
7993
|
-
"item-direction",
|
|
7994
|
-
{
|
|
7995
|
-
"name": "item-direction",
|
|
7996
|
-
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-direction",
|
|
7997
|
-
"initial": "auto",
|
|
7998
|
-
"appliesTo": "flex containers, grid containers, grid lanes containers",
|
|
7999
|
-
"inherited": "no",
|
|
8000
|
-
"percentages": "N/A",
|
|
8001
|
-
"computedValue": "as specified",
|
|
8002
|
-
"canonicalOrder": "per grammar",
|
|
8003
|
-
"animationType": "discrete",
|
|
8004
|
-
"styleDeclaration": [
|
|
8005
|
-
"item-direction",
|
|
8006
|
-
"itemDirection"
|
|
8007
|
-
],
|
|
8008
|
-
"syntax": "auto | row | column | row-reverse | column-reverse"
|
|
8009
|
-
}
|
|
8010
|
-
],
|
|
8011
|
-
[
|
|
8012
|
-
"item-flow",
|
|
8013
|
-
{
|
|
8014
|
-
"name": "item-flow",
|
|
8015
|
-
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-flow",
|
|
8016
|
-
"initial": "see individual properties",
|
|
8017
|
-
"appliesTo": "see individual properties",
|
|
8018
|
-
"inherited": "see individual properties",
|
|
8019
|
-
"percentages": "see individual properties",
|
|
8020
|
-
"computedValue": "see individual properties",
|
|
8021
|
-
"animationType": "see individual properties",
|
|
8022
|
-
"canonicalOrder": "per grammar",
|
|
8023
|
-
"styleDeclaration": [
|
|
8024
|
-
"item-flow",
|
|
8025
|
-
"itemFlow"
|
|
8026
|
-
],
|
|
8027
|
-
"syntax": "<'item-direction'> || <'item-wrap'> || <'item-pack'> || <'flow-tolerance'>"
|
|
8028
|
-
}
|
|
8029
|
-
],
|
|
8030
|
-
[
|
|
8031
|
-
"item-pack",
|
|
8032
|
-
{
|
|
8033
|
-
"name": "item-pack",
|
|
8034
|
-
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-pack",
|
|
8035
|
-
"initial": "normal",
|
|
8036
|
-
"appliesTo": "flex containers, grid containers, grid lanes containers",
|
|
8037
|
-
"inherited": "no",
|
|
8038
|
-
"percentages": "N/A",
|
|
8039
|
-
"computedValue": "as specified",
|
|
8040
|
-
"canonicalOrder": "per grammar",
|
|
8041
|
-
"animationType": "discrete",
|
|
8042
|
-
"styleDeclaration": [
|
|
8043
|
-
"item-pack",
|
|
8044
|
-
"itemPack"
|
|
8045
|
-
],
|
|
8046
|
-
"syntax": "normal | dense || balance"
|
|
8047
|
-
}
|
|
8048
|
-
],
|
|
8049
|
-
[
|
|
8050
|
-
"item-track",
|
|
8051
|
-
{
|
|
8052
|
-
"name": "item-track",
|
|
8053
|
-
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-track",
|
|
8054
|
-
"initial": "auto",
|
|
8055
|
-
"appliesTo": "flex containers, grid containers, grid lanes containers",
|
|
8056
|
-
"inherited": "no",
|
|
8057
|
-
"percentages": "N/A",
|
|
8058
|
-
"computedValue": "as specified",
|
|
8059
|
-
"canonicalOrder": "per grammar",
|
|
8060
|
-
"animationType": "discrete",
|
|
8061
|
-
"styleDeclaration": [
|
|
8062
|
-
"item-track",
|
|
8063
|
-
"itemTrack"
|
|
8064
|
-
],
|
|
8065
|
-
"syntax": "auto | row | column | row-reverse | column-reverse"
|
|
8066
|
-
}
|
|
8067
|
-
],
|
|
8068
|
-
[
|
|
8069
|
-
"item-wrap",
|
|
8070
|
-
{
|
|
8071
|
-
"name": "item-wrap",
|
|
8072
|
-
"href": "https://drafts.csswg.org/css-grid-3/#propdef-item-wrap",
|
|
8073
|
-
"initial": "auto",
|
|
8074
|
-
"appliesTo": "flex containers, grid containers, grid lanes containers",
|
|
8075
|
-
"inherited": "no",
|
|
8076
|
-
"percentages": "N/A",
|
|
8077
|
-
"computedValue": "as specified",
|
|
8078
|
-
"canonicalOrder": "per grammar",
|
|
8079
|
-
"animationType": "discrete",
|
|
8080
|
-
"styleDeclaration": [
|
|
8081
|
-
"item-wrap",
|
|
8082
|
-
"itemWrap"
|
|
8083
|
-
],
|
|
8084
|
-
"syntax": "[ auto | nowrap | wrap ] || [ normal | reverse ] | wrap-reverse"
|
|
8085
|
-
}
|
|
8086
|
-
],
|
|
8087
7973
|
[
|
|
8088
7974
|
"justify-content",
|
|
8089
7975
|
{
|
|
@@ -11222,7 +11108,7 @@ module.exports = new Map([
|
|
|
11222
11108
|
{
|
|
11223
11109
|
"name": "row-rule-break",
|
|
11224
11110
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-row-rule-break",
|
|
11225
|
-
"initial": "
|
|
11111
|
+
"initial": "normal",
|
|
11226
11112
|
"appliesTo": "grid containers, flex containers, multicol containers, and grid lanes containers",
|
|
11227
11113
|
"inherited": "no",
|
|
11228
11114
|
"percentages": "n/a",
|
|
@@ -11233,7 +11119,7 @@ module.exports = new Map([
|
|
|
11233
11119
|
"row-rule-break",
|
|
11234
11120
|
"rowRuleBreak"
|
|
11235
11121
|
],
|
|
11236
|
-
"syntax": "none |
|
|
11122
|
+
"syntax": "none | normal | intersection"
|
|
11237
11123
|
}
|
|
11238
11124
|
],
|
|
11239
11125
|
[
|
|
@@ -11247,7 +11133,7 @@ module.exports = new Map([
|
|
|
11247
11133
|
"percentages": "n/a",
|
|
11248
11134
|
"computedValue": "as specified",
|
|
11249
11135
|
"canonicalOrder": "per grammar",
|
|
11250
|
-
"animationType": "repeatable list, see §
|
|
11136
|
+
"animationType": "repeatable list, see § 4.6 Interpolation of list values.",
|
|
11251
11137
|
"styleDeclaration": [
|
|
11252
11138
|
"row-rule-color",
|
|
11253
11139
|
"rowRuleColor"
|
|
@@ -11261,7 +11147,7 @@ module.exports = new Map([
|
|
|
11261
11147
|
"name": "row-rule-edge-inset",
|
|
11262
11148
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-row-rule-edge-inset",
|
|
11263
11149
|
"initial": "see individual properties",
|
|
11264
|
-
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
11150
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-start, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-edge-inset-end, row-rule-interior-inset-start, and row-rule-interior-inset-end",
|
|
11265
11151
|
"inherited": "see individual properties",
|
|
11266
11152
|
"percentages": "see individual properties",
|
|
11267
11153
|
"computedValue": "see individual properties",
|
|
@@ -11328,7 +11214,7 @@ module.exports = new Map([
|
|
|
11328
11214
|
"row-rule-inset",
|
|
11329
11215
|
"rowRuleInset"
|
|
11330
11216
|
],
|
|
11331
|
-
"syntax": "<
|
|
11217
|
+
"syntax": "<'column-rule-edge-inset'> [ / <'column-rule-interior-inset'> ]?"
|
|
11332
11218
|
}
|
|
11333
11219
|
],
|
|
11334
11220
|
[
|
|
@@ -11337,7 +11223,7 @@ module.exports = new Map([
|
|
|
11337
11223
|
"name": "row-rule-inset-end",
|
|
11338
11224
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-row-rule-inset-end",
|
|
11339
11225
|
"initial": "see individual properties",
|
|
11340
|
-
"appliesTo": "column-rule-edge-inset-
|
|
11226
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
11341
11227
|
"inherited": "see individual properties",
|
|
11342
11228
|
"percentages": "see individual properties",
|
|
11343
11229
|
"computedValue": "see individual properties",
|
|
@@ -11356,7 +11242,7 @@ module.exports = new Map([
|
|
|
11356
11242
|
"name": "row-rule-inset-start",
|
|
11357
11243
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-row-rule-inset-start",
|
|
11358
11244
|
"initial": "see individual properties",
|
|
11359
|
-
"appliesTo": "column-rule-edge-inset-start
|
|
11245
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
11360
11246
|
"inherited": "see individual properties",
|
|
11361
11247
|
"percentages": "see individual properties",
|
|
11362
11248
|
"computedValue": "see individual properties",
|
|
@@ -11375,7 +11261,7 @@ module.exports = new Map([
|
|
|
11375
11261
|
"name": "row-rule-interior-inset",
|
|
11376
11262
|
"href": "https://drafts.csswg.org/css-gaps-1/#propdef-row-rule-interior-inset",
|
|
11377
11263
|
"initial": "see individual properties",
|
|
11378
|
-
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-interior-inset-start, row-rule-edge-inset-end, and row-rule-interior-inset-end",
|
|
11264
|
+
"appliesTo": "Same as column-rule-edge-inset-start, column-rule-edge-inset-end, column-rule-interior-inset-start, column-rule-interior-inset-end, row-rule-edge-inset-start, row-rule-edge-inset-end, row-rule-interior-inset-start, and row-rule-interior-inset-end",
|
|
11379
11265
|
"inherited": "see individual properties",
|
|
11380
11266
|
"percentages": "see individual properties",
|
|
11381
11267
|
"computedValue": "see individual properties",
|
|
@@ -11475,7 +11361,7 @@ module.exports = new Map([
|
|
|
11475
11361
|
"percentages": "n/a",
|
|
11476
11362
|
"computedValue": "list of absolute lengths, snapped as a border width",
|
|
11477
11363
|
"canonicalOrder": "per grammar",
|
|
11478
|
-
"animationType": "repeatable list, see §
|
|
11364
|
+
"animationType": "repeatable list, see § 4.6 Interpolation of list values.",
|
|
11479
11365
|
"styleDeclaration": [
|
|
11480
11366
|
"row-rule-width",
|
|
11481
11367
|
"rowRuleWidth"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// autogenerated - 2026-02-
|
|
2
|
+
// autogenerated - 2026-02-23
|
|
3
3
|
|
|
4
4
|
const background = require("../properties/background.js");
|
|
5
5
|
const backgroundAttachment = require("../properties/backgroundAttachment.js");
|
|
@@ -782,13 +782,13 @@ module.exports = {
|
|
|
782
782
|
"eventTriggerSource": createGenericPropertyDescriptor("event-trigger-source", {"caseSensitive":true}),
|
|
783
783
|
"field-sizing": createGenericPropertyDescriptor("field-sizing", {"caseSensitive":false}),
|
|
784
784
|
"fieldSizing": createGenericPropertyDescriptor("field-sizing", {"caseSensitive":false}),
|
|
785
|
-
"fill": createGenericPropertyDescriptor("fill", {"caseSensitive":false,"
|
|
785
|
+
"fill": createGenericPropertyDescriptor("fill", {"caseSensitive":false,"functionTypes":{"paint":"paint"}}),
|
|
786
786
|
"fill-break": createGenericPropertyDescriptor("fill-break", {"caseSensitive":false}),
|
|
787
787
|
"fillBreak": createGenericPropertyDescriptor("fill-break", {"caseSensitive":false}),
|
|
788
788
|
"fill-color": createGenericPropertyDescriptor("fill-color", {"caseSensitive":false,"functionTypes":{"color":"color"}}),
|
|
789
789
|
"fillColor": createGenericPropertyDescriptor("fill-color", {"caseSensitive":false,"functionTypes":{"color":"color"}}),
|
|
790
|
-
"fill-image": createGenericPropertyDescriptor("fill-image", {"caseSensitive":false,"
|
|
791
|
-
"fillImage": createGenericPropertyDescriptor("fill-image", {"caseSensitive":false,"
|
|
790
|
+
"fill-image": createGenericPropertyDescriptor("fill-image", {"caseSensitive":false,"functionTypes":{"paint":"paint"}}),
|
|
791
|
+
"fillImage": createGenericPropertyDescriptor("fill-image", {"caseSensitive":false,"functionTypes":{"paint":"paint"}}),
|
|
792
792
|
"fill-opacity": createGenericPropertyDescriptor("fill-opacity", {"caseSensitive":false,"dimensionTypes":{"number":{"type":"number"},"percentage":{"type":"percentage"}}}),
|
|
793
793
|
"fillOpacity": createGenericPropertyDescriptor("fill-opacity", {"caseSensitive":false,"dimensionTypes":{"number":{"type":"number"},"percentage":{"type":"percentage"}}}),
|
|
794
794
|
"fill-origin": createGenericPropertyDescriptor("fill-origin", {"caseSensitive":false}),
|
|
@@ -984,18 +984,6 @@ module.exports = {
|
|
|
984
984
|
"interpolate-size": createGenericPropertyDescriptor("interpolate-size", {"caseSensitive":false}),
|
|
985
985
|
"interpolateSize": createGenericPropertyDescriptor("interpolate-size", {"caseSensitive":false}),
|
|
986
986
|
"isolation": createGenericPropertyDescriptor("isolation", {"caseSensitive":false}),
|
|
987
|
-
"item-cross": createGenericPropertyDescriptor("item-cross", {"caseSensitive":false}),
|
|
988
|
-
"itemCross": createGenericPropertyDescriptor("item-cross", {"caseSensitive":false}),
|
|
989
|
-
"item-direction": createGenericPropertyDescriptor("item-direction", {"caseSensitive":false}),
|
|
990
|
-
"itemDirection": createGenericPropertyDescriptor("item-direction", {"caseSensitive":false}),
|
|
991
|
-
"item-flow": createGenericPropertyDescriptor("item-flow", {"caseSensitive":false,"dimensionTypes":{"length":{"type":"length"}}}),
|
|
992
|
-
"itemFlow": createGenericPropertyDescriptor("item-flow", {"caseSensitive":false,"dimensionTypes":{"length":{"type":"length"}}}),
|
|
993
|
-
"item-pack": createGenericPropertyDescriptor("item-pack", {"caseSensitive":false}),
|
|
994
|
-
"itemPack": createGenericPropertyDescriptor("item-pack", {"caseSensitive":false}),
|
|
995
|
-
"item-track": createGenericPropertyDescriptor("item-track", {"caseSensitive":false}),
|
|
996
|
-
"itemTrack": createGenericPropertyDescriptor("item-track", {"caseSensitive":false}),
|
|
997
|
-
"item-wrap": createGenericPropertyDescriptor("item-wrap", {"caseSensitive":false}),
|
|
998
|
-
"itemWrap": createGenericPropertyDescriptor("item-wrap", {"caseSensitive":false}),
|
|
999
987
|
"justify-content": createGenericPropertyDescriptor("justify-content", {"caseSensitive":false}),
|
|
1000
988
|
"justifyContent": createGenericPropertyDescriptor("justify-content", {"caseSensitive":false}),
|
|
1001
989
|
"justify-items": createGenericPropertyDescriptor("justify-items", {"caseSensitive":false}),
|
|
@@ -1461,7 +1449,7 @@ module.exports = {
|
|
|
1461
1449
|
"stopOpacity": createGenericPropertyDescriptor("stop-opacity", {"caseSensitive":false,"dimensionTypes":{"number":{"type":"number"},"percentage":{"type":"percentage"}}}),
|
|
1462
1450
|
"string-set": createGenericPropertyDescriptor("string-set", {"caseSensitive":true}),
|
|
1463
1451
|
"stringSet": createGenericPropertyDescriptor("string-set", {"caseSensitive":true}),
|
|
1464
|
-
"stroke": createGenericPropertyDescriptor("stroke", {"caseSensitive":false,"
|
|
1452
|
+
"stroke": createGenericPropertyDescriptor("stroke", {"caseSensitive":false,"functionTypes":{"paint":"paint"}}),
|
|
1465
1453
|
"stroke-align": createGenericPropertyDescriptor("stroke-align", {"caseSensitive":false}),
|
|
1466
1454
|
"strokeAlign": createGenericPropertyDescriptor("stroke-align", {"caseSensitive":false}),
|
|
1467
1455
|
"stroke-alignment": createGenericPropertyDescriptor("stroke-alignment", {"caseSensitive":false}),
|
|
@@ -1482,8 +1470,8 @@ module.exports = {
|
|
|
1482
1470
|
"strokeDashcorner": createGenericPropertyDescriptor("stroke-dashcorner", {"caseSensitive":false,"dimensionTypes":{"length":{"type":"length"}}}),
|
|
1483
1471
|
"stroke-dashoffset": createGenericPropertyDescriptor("stroke-dashoffset", {"caseSensitive":false,"dimensionTypes":{"length":{"type":"length"},"number":{"type":"number"}}}),
|
|
1484
1472
|
"strokeDashoffset": createGenericPropertyDescriptor("stroke-dashoffset", {"caseSensitive":false,"dimensionTypes":{"length":{"type":"length"},"number":{"type":"number"}}}),
|
|
1485
|
-
"stroke-image": createGenericPropertyDescriptor("stroke-image", {"caseSensitive":false,"
|
|
1486
|
-
"strokeImage": createGenericPropertyDescriptor("stroke-image", {"caseSensitive":false,"
|
|
1473
|
+
"stroke-image": createGenericPropertyDescriptor("stroke-image", {"caseSensitive":false,"functionTypes":{"paint":"paint"}}),
|
|
1474
|
+
"strokeImage": createGenericPropertyDescriptor("stroke-image", {"caseSensitive":false,"functionTypes":{"paint":"paint"}}),
|
|
1487
1475
|
"stroke-linecap": createGenericPropertyDescriptor("stroke-linecap", {"caseSensitive":false}),
|
|
1488
1476
|
"strokeLinecap": createGenericPropertyDescriptor("stroke-linecap", {"caseSensitive":false}),
|
|
1489
1477
|
"stroke-linejoin": createGenericPropertyDescriptor("stroke-linejoin", {"caseSensitive":false}),
|
package/lib/index.js
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
const { CSSStyleDeclaration } = require("./CSSStyleDeclaration");
|
|
4
4
|
const propertyDefinitions = require("./generated/propertyDefinitions");
|
|
5
|
+
const { parsePropertyValue } = require("./parsers");
|
|
5
6
|
|
|
6
7
|
module.exports = {
|
|
7
8
|
CSSStyleDeclaration,
|
|
9
|
+
parsePropertyValue,
|
|
8
10
|
propertyDefinitions
|
|
9
11
|
};
|
|
@@ -40,7 +40,7 @@ function createGenericPropertyDescriptor(property, { caseSensitive, dimensionTyp
|
|
|
40
40
|
number: numberType,
|
|
41
41
|
percentage: percentageType
|
|
42
42
|
} = dimensionTypes;
|
|
43
|
-
const { color: colorType, image: imageType } = functionTypes;
|
|
43
|
+
const { color: colorType, image: imageType, paint: paintType } = functionTypes;
|
|
44
44
|
const [{ name, type, value: itemValue }] = parsedValue;
|
|
45
45
|
switch (type) {
|
|
46
46
|
case AST_TYPES.CALC: {
|
|
@@ -111,7 +111,7 @@ function createGenericPropertyDescriptor(property, { caseSensitive, dimensionTyp
|
|
|
111
111
|
}
|
|
112
112
|
case AST_TYPES.FUNCTION:
|
|
113
113
|
default: {
|
|
114
|
-
if (colorType) {
|
|
114
|
+
if (colorType || paintType) {
|
|
115
115
|
this._setProperty(property, parsers.serializeColor(parsedValue), priority);
|
|
116
116
|
} else if (imageType) {
|
|
117
117
|
this._setProperty(property, parsers.serializeGradient(parsedValue), priority);
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"CSSStyleDeclaration",
|
|
7
7
|
"StyleSheet"
|
|
8
8
|
],
|
|
9
|
-
"version": "6.0
|
|
9
|
+
"version": "6.1.0",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/jsdom/cssstyle.git"
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
],
|
|
17
17
|
"main": "./lib/index.js",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@asamuzakjp/css-color": "^
|
|
20
|
-
"@csstools/css-syntax-patches-for-csstree": "^1.0.
|
|
19
|
+
"@asamuzakjp/css-color": "^5.0.0",
|
|
20
|
+
"@csstools/css-syntax-patches-for-csstree": "^1.0.28",
|
|
21
21
|
"css-tree": "^3.1.0",
|
|
22
|
-
"lru-cache": "^11.2.
|
|
22
|
+
"lru-cache": "^11.2.6"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@domenic/eslint-config": "^4.1.0",
|
|
26
|
-
"@webref/css": "^8.2.
|
|
26
|
+
"@webref/css": "^8.2.6",
|
|
27
27
|
"eslint": "^9.39.2",
|
|
28
28
|
"eslint-config-prettier": "^10.1.8",
|
|
29
29
|
"eslint-plugin-prettier": "^5.5.5",
|