cssstyle 5.3.7 → 6.0.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.
Files changed (93) hide show
  1. package/lib/CSSStyleDeclaration.js +359 -395
  2. package/lib/generated/.gitkeep +0 -0
  3. package/lib/generated/propertyDefinitions.js +3685 -1498
  4. package/lib/generated/propertyDescriptors.js +1705 -0
  5. package/lib/index.js +9 -0
  6. package/lib/normalize.js +127 -253
  7. package/lib/parsers.js +152 -164
  8. package/lib/properties/background.js +201 -202
  9. package/lib/properties/backgroundAttachment.js +35 -33
  10. package/lib/properties/backgroundClip.js +35 -33
  11. package/lib/properties/backgroundColor.js +26 -24
  12. package/lib/properties/backgroundImage.js +36 -34
  13. package/lib/properties/backgroundOrigin.js +35 -33
  14. package/lib/properties/backgroundPosition.js +57 -57
  15. package/lib/properties/backgroundRepeat.js +40 -37
  16. package/lib/properties/backgroundSize.js +38 -34
  17. package/lib/properties/border.js +41 -34
  18. package/lib/properties/{webkitBorderEndColor.js → borderBlockEndColor.js} +26 -22
  19. package/lib/properties/{webkitBorderAfterColor.js → borderBlockStartColor.js} +26 -22
  20. package/lib/properties/borderBottom.js +40 -36
  21. package/lib/properties/borderBottomColor.js +25 -21
  22. package/lib/properties/borderBottomStyle.js +25 -21
  23. package/lib/properties/borderBottomWidth.js +28 -24
  24. package/lib/properties/borderCollapse.js +25 -21
  25. package/lib/properties/borderColor.js +36 -33
  26. package/lib/properties/{webkitBorderStartColor.js → borderInlineEndColor.js} +26 -22
  27. package/lib/properties/borderInlineStartColor.js +49 -0
  28. package/lib/properties/borderLeft.js +40 -36
  29. package/lib/properties/borderLeftColor.js +25 -21
  30. package/lib/properties/borderLeftStyle.js +25 -21
  31. package/lib/properties/borderLeftWidth.js +28 -24
  32. package/lib/properties/borderRight.js +40 -36
  33. package/lib/properties/borderRightColor.js +25 -21
  34. package/lib/properties/borderRightStyle.js +25 -21
  35. package/lib/properties/borderRightWidth.js +28 -24
  36. package/lib/properties/borderSpacing.js +33 -29
  37. package/lib/properties/borderStyle.js +36 -33
  38. package/lib/properties/borderTop.js +40 -36
  39. package/lib/properties/borderTopColor.js +25 -21
  40. package/lib/properties/borderTopStyle.js +25 -21
  41. package/lib/properties/borderTopWidth.js +28 -24
  42. package/lib/properties/borderWidth.js +36 -33
  43. package/lib/properties/bottom.js +27 -23
  44. package/lib/properties/clear.js +25 -21
  45. package/lib/properties/clip.js +37 -31
  46. package/lib/properties/color.js +25 -21
  47. package/lib/properties/display.js +36 -30
  48. package/lib/properties/flex.js +53 -45
  49. package/lib/properties/flexBasis.js +28 -26
  50. package/lib/properties/flexGrow.js +28 -26
  51. package/lib/properties/flexShrink.js +28 -26
  52. package/lib/properties/float.js +25 -21
  53. package/lib/properties/floodColor.js +25 -21
  54. package/lib/properties/font.js +89 -118
  55. package/lib/properties/fontFamily.js +38 -33
  56. package/lib/properties/fontSize.js +29 -27
  57. package/lib/properties/fontStyle.js +38 -34
  58. package/lib/properties/fontVariant.js +35 -33
  59. package/lib/properties/fontWeight.js +33 -31
  60. package/lib/properties/height.js +28 -24
  61. package/lib/properties/left.js +27 -23
  62. package/lib/properties/lightingColor.js +25 -21
  63. package/lib/properties/lineHeight.js +28 -26
  64. package/lib/properties/margin.js +40 -34
  65. package/lib/properties/marginBottom.js +30 -27
  66. package/lib/properties/marginLeft.js +30 -27
  67. package/lib/properties/marginRight.js +30 -27
  68. package/lib/properties/marginTop.js +30 -27
  69. package/lib/properties/opacity.js +27 -23
  70. package/lib/properties/outlineColor.js +25 -21
  71. package/lib/properties/padding.js +40 -34
  72. package/lib/properties/paddingBottom.js +31 -28
  73. package/lib/properties/paddingLeft.js +31 -28
  74. package/lib/properties/paddingRight.js +31 -28
  75. package/lib/properties/paddingTop.js +31 -28
  76. package/lib/properties/right.js +27 -23
  77. package/lib/properties/stopColor.js +25 -21
  78. package/lib/properties/{webkitBorderBeforeColor.js → textEmphasisColor.js} +26 -22
  79. package/lib/properties/top.js +27 -23
  80. package/lib/properties/webkitTextFillColor.js +25 -21
  81. package/lib/properties/webkitTextStrokeColor.js +25 -21
  82. package/lib/properties/width.js +28 -24
  83. package/lib/utils/propertyDescriptors.js +129 -42
  84. package/lib/utils/strings.js +11 -156
  85. package/package.json +11 -21
  86. package/lib/generated/allProperties.js +0 -653
  87. package/lib/generated/implementedProperties.js +0 -1466
  88. package/lib/generated/properties.js +0 -6637
  89. package/lib/properties/webkitColumnRuleColor.js +0 -45
  90. package/lib/properties/webkitTapHighlightColor.js +0 -45
  91. package/lib/properties/webkitTextEmphasisColor.js +0 -45
  92. package/lib/utils/allExtraProperties.js +0 -155
  93. package/lib/utils/camelize.js +0 -37
@@ -1,653 +0,0 @@
1
- "use strict";
2
- // autogenerated - 2025-08-02
3
- // https://www.w3.org/Style/CSS/all-properties.en.html
4
-
5
- module.exports = new Set([
6
- "-webkit-line-clamp",
7
- "accent-color",
8
- "align-content",
9
- "align-items",
10
- "align-self",
11
- "alignment-baseline",
12
- "all",
13
- "anchor-name",
14
- "anchor-scope",
15
- "animation",
16
- "animation-composition",
17
- "animation-delay",
18
- "animation-direction",
19
- "animation-duration",
20
- "animation-fill-mode",
21
- "animation-iteration-count",
22
- "animation-name",
23
- "animation-play-state",
24
- "animation-range",
25
- "animation-range-end",
26
- "animation-range-start",
27
- "animation-timeline",
28
- "animation-timing-function",
29
- "appearance",
30
- "aspect-ratio",
31
- "azimuth",
32
- "backface-visibility",
33
- "background",
34
- "background-attachment",
35
- "background-blend-mode",
36
- "background-clip",
37
- "background-color",
38
- "background-image",
39
- "background-origin",
40
- "background-position",
41
- "background-repeat",
42
- "background-size",
43
- "baseline-shift",
44
- "baseline-source",
45
- "block-ellipsis",
46
- "block-size",
47
- "block-step",
48
- "block-step-align",
49
- "block-step-insert",
50
- "block-step-round",
51
- "block-step-size",
52
- "bookmark-label",
53
- "bookmark-level",
54
- "bookmark-state",
55
- "border",
56
- "border-block",
57
- "border-block-color",
58
- "border-block-end",
59
- "border-block-end-color",
60
- "border-block-end-radius",
61
- "border-block-end-style",
62
- "border-block-end-width",
63
- "border-block-start",
64
- "border-block-start-color",
65
- "border-block-start-radius",
66
- "border-block-start-style",
67
- "border-block-start-width",
68
- "border-block-style",
69
- "border-block-width",
70
- "border-bottom",
71
- "border-bottom-color",
72
- "border-bottom-left-radius",
73
- "border-bottom-radius",
74
- "border-bottom-right-radius",
75
- "border-bottom-style",
76
- "border-bottom-width",
77
- "border-boundary",
78
- "border-clip",
79
- "border-clip-bottom",
80
- "border-clip-left",
81
- "border-clip-right",
82
- "border-clip-top",
83
- "border-collapse",
84
- "border-color",
85
- "border-end-end-radius",
86
- "border-end-start-radius",
87
- "border-image",
88
- "border-image-outset",
89
- "border-image-repeat",
90
- "border-image-slice",
91
- "border-image-source",
92
- "border-image-width",
93
- "border-inline",
94
- "border-inline-color",
95
- "border-inline-end",
96
- "border-inline-end-color",
97
- "border-inline-end-radius",
98
- "border-inline-end-style",
99
- "border-inline-end-width",
100
- "border-inline-start",
101
- "border-inline-start-color",
102
- "border-inline-start-radius",
103
- "border-inline-start-style",
104
- "border-inline-start-width",
105
- "border-inline-style",
106
- "border-inline-width",
107
- "border-left",
108
- "border-left-color",
109
- "border-left-radius",
110
- "border-left-style",
111
- "border-left-width",
112
- "border-limit",
113
- "border-radius",
114
- "border-right",
115
- "border-right-color",
116
- "border-right-radius",
117
- "border-right-style",
118
- "border-right-width",
119
- "border-shape",
120
- "border-spacing",
121
- "border-start-end-radius",
122
- "border-start-start-radius",
123
- "border-style",
124
- "border-top",
125
- "border-top-color",
126
- "border-top-left-radius",
127
- "border-top-radius",
128
- "border-top-right-radius",
129
- "border-top-style",
130
- "border-top-width",
131
- "border-width",
132
- "bottom",
133
- "box-decoration-break",
134
- "box-shadow",
135
- "box-shadow-blur",
136
- "box-shadow-color",
137
- "box-shadow-offset",
138
- "box-shadow-position",
139
- "box-shadow-spread",
140
- "box-sizing",
141
- "box-snap",
142
- "break-after",
143
- "break-before",
144
- "break-inside",
145
- "caption-side",
146
- "caret",
147
- "caret-color",
148
- "caret-shape",
149
- "clear",
150
- "clip",
151
- "clip-path",
152
- "clip-rule",
153
- "color",
154
- "color-adjust",
155
- "color-interpolation-filters",
156
- "color-scheme",
157
- "column-count",
158
- "column-fill",
159
- "column-gap",
160
- "column-rule",
161
- "column-rule-break",
162
- "column-rule-color",
163
- "column-rule-outset",
164
- "column-rule-style",
165
- "column-rule-width",
166
- "column-span",
167
- "column-width",
168
- "columns",
169
- "contain",
170
- "contain-intrinsic-block-size",
171
- "contain-intrinsic-height",
172
- "contain-intrinsic-inline-size",
173
- "contain-intrinsic-size",
174
- "contain-intrinsic-width",
175
- "container",
176
- "container-name",
177
- "container-type",
178
- "content",
179
- "content-visibility",
180
- "continue",
181
- "corner-block-end-shape",
182
- "corner-block-start-shape",
183
- "corner-bottom-left-shape",
184
- "corner-bottom-right-shape",
185
- "corner-bottom-shape",
186
- "corner-end-end-shape",
187
- "corner-end-start-shape",
188
- "corner-inline-end-shape",
189
- "corner-inline-start-shape",
190
- "corner-left-shape",
191
- "corner-right-shape",
192
- "corner-shape",
193
- "corner-start-end-shape",
194
- "corner-start-start-shape",
195
- "corner-top-left-shape",
196
- "corner-top-right-shape",
197
- "corner-top-shape",
198
- "counter-increment",
199
- "counter-reset",
200
- "counter-set",
201
- "cue",
202
- "cue-after",
203
- "cue-before",
204
- "cursor",
205
- "direction",
206
- "display",
207
- "dominant-baseline",
208
- "dynamic-range-limit",
209
- "elevation",
210
- "empty-cells",
211
- "fill",
212
- "fill-break",
213
- "fill-color",
214
- "fill-image",
215
- "fill-opacity",
216
- "fill-origin",
217
- "fill-position",
218
- "fill-repeat",
219
- "fill-rule",
220
- "fill-size",
221
- "filter",
222
- "flex",
223
- "flex-basis",
224
- "flex-direction",
225
- "flex-flow",
226
- "flex-grow",
227
- "flex-shrink",
228
- "flex-wrap",
229
- "float",
230
- "float-defer",
231
- "float-offset",
232
- "float-reference",
233
- "flood-color",
234
- "flood-opacity",
235
- "flow-from",
236
- "flow-into",
237
- "font",
238
- "font-family",
239
- "font-feature-settings",
240
- "font-kerning",
241
- "font-language-override",
242
- "font-optical-sizing",
243
- "font-palette",
244
- "font-size",
245
- "font-size-adjust",
246
- "font-stretch",
247
- "font-style",
248
- "font-synthesis",
249
- "font-synthesis-position",
250
- "font-synthesis-small-caps",
251
- "font-synthesis-style",
252
- "font-synthesis-weight",
253
- "font-variant",
254
- "font-variant-alternates",
255
- "font-variant-caps",
256
- "font-variant-east-asian",
257
- "font-variant-emoji",
258
- "font-variant-ligatures",
259
- "font-variant-numeric",
260
- "font-variant-position",
261
- "font-variation-settings",
262
- "font-weight",
263
- "font-width",
264
- "footnote-display",
265
- "footnote-policy",
266
- "forced-color-adjust",
267
- "gap",
268
- "glyph-orientation-vertical",
269
- "grid",
270
- "grid-area",
271
- "grid-auto-columns",
272
- "grid-auto-flow",
273
- "grid-auto-rows",
274
- "grid-column",
275
- "grid-column-end",
276
- "grid-column-start",
277
- "grid-row",
278
- "grid-row-end",
279
- "grid-row-start",
280
- "grid-template",
281
- "grid-template-areas",
282
- "grid-template-columns",
283
- "grid-template-rows",
284
- "hanging-punctuation",
285
- "height",
286
- "hyphenate-character",
287
- "hyphenate-limit-chars",
288
- "hyphenate-limit-last",
289
- "hyphenate-limit-lines",
290
- "hyphenate-limit-zone",
291
- "hyphens",
292
- "image-orientation",
293
- "image-rendering",
294
- "image-resolution",
295
- "initial-letter",
296
- "initial-letter-align",
297
- "initial-letter-wrap",
298
- "inline-size",
299
- "inline-sizing",
300
- "inset",
301
- "inset-block",
302
- "inset-block-end",
303
- "inset-block-start",
304
- "inset-inline",
305
- "inset-inline-end",
306
- "inset-inline-start",
307
- "interpolate-size",
308
- "isolation",
309
- "item-cross",
310
- "item-direction",
311
- "item-flow",
312
- "item-pack",
313
- "item-slack",
314
- "item-track",
315
- "item-wrap",
316
- "justify-content",
317
- "justify-items",
318
- "justify-self",
319
- "left",
320
- "letter-spacing",
321
- "lighting-color",
322
- "line-break",
323
- "line-clamp",
324
- "line-fit-edge",
325
- "line-grid",
326
- "line-height",
327
- "line-height-step",
328
- "line-padding",
329
- "line-snap",
330
- "list-style",
331
- "list-style-image",
332
- "list-style-position",
333
- "list-style-type",
334
- "margin",
335
- "margin-block",
336
- "margin-block-end",
337
- "margin-block-start",
338
- "margin-bottom",
339
- "margin-break",
340
- "margin-inline",
341
- "margin-inline-end",
342
- "margin-inline-start",
343
- "margin-left",
344
- "margin-right",
345
- "margin-top",
346
- "margin-trim",
347
- "marker",
348
- "marker-end",
349
- "marker-knockout-left",
350
- "marker-knockout-right",
351
- "marker-mid",
352
- "marker-pattern",
353
- "marker-segment",
354
- "marker-side",
355
- "marker-start",
356
- "mask",
357
- "mask-border",
358
- "mask-border-mode",
359
- "mask-border-outset",
360
- "mask-border-repeat",
361
- "mask-border-slice",
362
- "mask-border-source",
363
- "mask-border-width",
364
- "mask-clip",
365
- "mask-composite",
366
- "mask-image",
367
- "mask-mode",
368
- "mask-origin",
369
- "mask-position",
370
- "mask-repeat",
371
- "mask-size",
372
- "mask-type",
373
- "max-block-size",
374
- "max-height",
375
- "max-inline-size",
376
- "max-lines",
377
- "max-width",
378
- "min-block-size",
379
- "min-height",
380
- "min-inline-size",
381
- "min-intrinsic-sizing",
382
- "min-width",
383
- "mix-blend-mode",
384
- "nav-down",
385
- "nav-left",
386
- "nav-right",
387
- "nav-up",
388
- "object-fit",
389
- "object-position",
390
- "offset",
391
- "offset-anchor",
392
- "offset-distance",
393
- "offset-path",
394
- "offset-position",
395
- "offset-rotate",
396
- "opacity",
397
- "order",
398
- "orphans",
399
- "outline",
400
- "outline-color",
401
- "outline-offset",
402
- "outline-style",
403
- "outline-width",
404
- "overflow",
405
- "overflow-anchor",
406
- "overflow-block",
407
- "overflow-clip-margin",
408
- "overflow-clip-margin-block",
409
- "overflow-clip-margin-block-end",
410
- "overflow-clip-margin-block-start",
411
- "overflow-clip-margin-bottom",
412
- "overflow-clip-margin-inline",
413
- "overflow-clip-margin-inline-end",
414
- "overflow-clip-margin-inline-start",
415
- "overflow-clip-margin-left",
416
- "overflow-clip-margin-right",
417
- "overflow-clip-margin-top",
418
- "overflow-inline",
419
- "overflow-wrap",
420
- "overflow-x",
421
- "overflow-y",
422
- "overlay",
423
- "overscroll-behavior",
424
- "overscroll-behavior-block",
425
- "overscroll-behavior-inline",
426
- "overscroll-behavior-x",
427
- "overscroll-behavior-y",
428
- "padding",
429
- "padding-block",
430
- "padding-block-end",
431
- "padding-block-start",
432
- "padding-bottom",
433
- "padding-inline",
434
- "padding-inline-end",
435
- "padding-inline-start",
436
- "padding-left",
437
- "padding-right",
438
- "padding-top",
439
- "page",
440
- "page-break-after",
441
- "page-break-before",
442
- "page-break-inside",
443
- "pause",
444
- "pause-after",
445
- "pause-before",
446
- "perspective",
447
- "perspective-origin",
448
- "pitch",
449
- "pitch-range",
450
- "place-content",
451
- "place-items",
452
- "place-self",
453
- "play-during",
454
- "position",
455
- "position-anchor",
456
- "position-area",
457
- "position-try",
458
- "position-try-fallbacks",
459
- "position-try-order",
460
- "position-visibility",
461
- "print-color-adjust",
462
- "quotes",
463
- "reading-flow",
464
- "region-fragment",
465
- "resize",
466
- "rest",
467
- "rest-after",
468
- "rest-before",
469
- "richness",
470
- "right",
471
- "rotate",
472
- "row-gap",
473
- "row-rule",
474
- "row-rule-break",
475
- "row-rule-color",
476
- "row-rule-outset",
477
- "row-rule-style",
478
- "row-rule-width",
479
- "ruby-align",
480
- "ruby-merge",
481
- "ruby-overhang",
482
- "ruby-position",
483
- "rule",
484
- "rule-break",
485
- "rule-color",
486
- "rule-outset",
487
- "rule-paint-order",
488
- "rule-style",
489
- "rule-width",
490
- "running",
491
- "scale",
492
- "scroll-behavior",
493
- "scroll-margin",
494
- "scroll-margin-block",
495
- "scroll-margin-block-end",
496
- "scroll-margin-block-start",
497
- "scroll-margin-bottom",
498
- "scroll-margin-inline",
499
- "scroll-margin-inline-end",
500
- "scroll-margin-inline-start",
501
- "scroll-margin-left",
502
- "scroll-margin-right",
503
- "scroll-margin-top",
504
- "scroll-marker-group",
505
- "scroll-padding",
506
- "scroll-padding-block",
507
- "scroll-padding-block-end",
508
- "scroll-padding-block-start",
509
- "scroll-padding-bottom",
510
- "scroll-padding-inline",
511
- "scroll-padding-inline-end",
512
- "scroll-padding-inline-start",
513
- "scroll-padding-left",
514
- "scroll-padding-right",
515
- "scroll-padding-top",
516
- "scroll-snap-align",
517
- "scroll-snap-stop",
518
- "scroll-snap-type",
519
- "scroll-start-target",
520
- "scroll-timeline",
521
- "scroll-timeline-axis",
522
- "scroll-timeline-name",
523
- "scrollbar-color",
524
- "scrollbar-gutter",
525
- "scrollbar-width",
526
- "shape-image-threshold",
527
- "shape-inside",
528
- "shape-margin",
529
- "shape-outside",
530
- "slider-orientation",
531
- "spatial-navigation-action",
532
- "spatial-navigation-contain",
533
- "spatial-navigation-function",
534
- "speak",
535
- "speak-as",
536
- "speak-header",
537
- "speak-numeral",
538
- "speak-punctuation",
539
- "speech-rate",
540
- "stress",
541
- "string-set",
542
- "stroke",
543
- "stroke-align",
544
- "stroke-alignment",
545
- "stroke-break",
546
- "stroke-color",
547
- "stroke-dash-corner",
548
- "stroke-dash-justify",
549
- "stroke-dashadjust",
550
- "stroke-dasharray",
551
- "stroke-dashcorner",
552
- "stroke-dashoffset",
553
- "stroke-image",
554
- "stroke-linecap",
555
- "stroke-linejoin",
556
- "stroke-miterlimit",
557
- "stroke-opacity",
558
- "stroke-origin",
559
- "stroke-position",
560
- "stroke-repeat",
561
- "stroke-size",
562
- "stroke-width",
563
- "tab-size",
564
- "table-layout",
565
- "text-align",
566
- "text-align-all",
567
- "text-align-last",
568
- "text-autospace",
569
- "text-box",
570
- "text-box-edge",
571
- "text-box-trim",
572
- "text-combine-upright",
573
- "text-decoration",
574
- "text-decoration-color",
575
- "text-decoration-line",
576
- "text-decoration-skip",
577
- "text-decoration-skip-box",
578
- "text-decoration-skip-ink",
579
- "text-decoration-skip-inset",
580
- "text-decoration-skip-self",
581
- "text-decoration-skip-spaces",
582
- "text-decoration-style",
583
- "text-decoration-thickness",
584
- "text-emphasis",
585
- "text-emphasis-color",
586
- "text-emphasis-position",
587
- "text-emphasis-skip",
588
- "text-emphasis-style",
589
- "text-group-align",
590
- "text-indent",
591
- "text-justify",
592
- "text-orientation",
593
- "text-overflow",
594
- "text-shadow",
595
- "text-spacing",
596
- "text-spacing-trim",
597
- "text-transform",
598
- "text-underline-offset",
599
- "text-underline-position",
600
- "text-wrap",
601
- "text-wrap-mode",
602
- "text-wrap-style",
603
- "timeline-scope",
604
- "top",
605
- "transform",
606
- "transform-box",
607
- "transform-origin",
608
- "transform-style",
609
- "transition",
610
- "transition-behavior",
611
- "transition-delay",
612
- "transition-duration",
613
- "transition-property",
614
- "transition-timing-function",
615
- "translate",
616
- "unicode-bidi",
617
- "user-select",
618
- "vertical-align",
619
- "view-timeline",
620
- "view-timeline-axis",
621
- "view-timeline-inset",
622
- "view-timeline-name",
623
- "view-transition-class",
624
- "view-transition-group",
625
- "view-transition-name",
626
- "visibility",
627
- "voice-balance",
628
- "voice-duration",
629
- "voice-family",
630
- "voice-pitch",
631
- "voice-range",
632
- "voice-rate",
633
- "voice-stress",
634
- "voice-volume",
635
- "volume",
636
- "white-space",
637
- "white-space-collapse",
638
- "white-space-trim",
639
- "widows",
640
- "width",
641
- "will-change",
642
- "word-break",
643
- "word-space-transform",
644
- "word-spacing",
645
- "word-wrap",
646
- "wrap-after",
647
- "wrap-before",
648
- "wrap-flow",
649
- "wrap-inside",
650
- "wrap-through",
651
- "writing-mode",
652
- "z-index"
653
- ]);