cssstyle 4.3.0 → 4.4.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 (94) hide show
  1. package/lib/CSSStyleDeclaration.js +545 -206
  2. package/lib/allExtraProperties.js +42 -60
  3. package/lib/allWebkitProperties.js +107 -187
  4. package/lib/generated/allProperties.js +615 -0
  5. package/lib/{implementedProperties.js → generated/implementedProperties.js} +11 -18
  6. package/lib/generated/properties.js +2574 -0
  7. package/lib/parsers.js +400 -544
  8. package/lib/properties/background.js +40 -13
  9. package/lib/properties/backgroundAttachment.js +23 -15
  10. package/lib/properties/backgroundColor.js +21 -19
  11. package/lib/properties/backgroundImage.js +19 -14
  12. package/lib/properties/backgroundPosition.js +35 -41
  13. package/lib/properties/backgroundRepeat.js +20 -20
  14. package/lib/properties/border.js +34 -25
  15. package/lib/properties/borderBottom.js +34 -11
  16. package/lib/properties/borderBottomColor.js +27 -8
  17. package/lib/properties/borderBottomStyle.js +42 -13
  18. package/lib/properties/borderBottomWidth.js +28 -8
  19. package/lib/properties/borderCollapse.js +16 -16
  20. package/lib/properties/borderColor.js +32 -18
  21. package/lib/properties/borderLeft.js +34 -11
  22. package/lib/properties/borderLeftColor.js +27 -8
  23. package/lib/properties/borderLeftStyle.js +42 -13
  24. package/lib/properties/borderLeftWidth.js +28 -8
  25. package/lib/properties/borderRight.js +34 -11
  26. package/lib/properties/borderRightColor.js +27 -8
  27. package/lib/properties/borderRightStyle.js +42 -13
  28. package/lib/properties/borderRightWidth.js +28 -8
  29. package/lib/properties/borderSpacing.js +31 -27
  30. package/lib/properties/borderStyle.js +43 -27
  31. package/lib/properties/borderTop.js +34 -11
  32. package/lib/properties/borderTopColor.js +27 -8
  33. package/lib/properties/borderTopStyle.js +42 -13
  34. package/lib/properties/borderTopWidth.js +28 -9
  35. package/lib/properties/borderWidth.js +32 -34
  36. package/lib/properties/bottom.js +23 -7
  37. package/lib/properties/clear.js +32 -8
  38. package/lib/properties/clip.js +33 -27
  39. package/lib/properties/color.js +23 -7
  40. package/lib/properties/flex.js +59 -29
  41. package/lib/properties/flexBasis.js +21 -16
  42. package/lib/properties/flexGrow.js +19 -10
  43. package/lib/properties/flexShrink.js +19 -10
  44. package/lib/properties/float.js +21 -6
  45. package/lib/properties/floodColor.js +23 -7
  46. package/lib/properties/font.js +120 -33
  47. package/lib/properties/fontFamily.js +59 -21
  48. package/lib/properties/fontSize.js +37 -28
  49. package/lib/properties/fontStyle.js +23 -9
  50. package/lib/properties/fontVariant.js +26 -8
  51. package/lib/properties/fontWeight.js +26 -23
  52. package/lib/properties/height.js +21 -14
  53. package/lib/properties/left.js +23 -7
  54. package/lib/properties/lightingColor.js +23 -7
  55. package/lib/properties/lineHeight.js +29 -16
  56. package/lib/properties/margin.js +42 -57
  57. package/lib/properties/marginBottom.js +34 -7
  58. package/lib/properties/marginLeft.js +34 -7
  59. package/lib/properties/marginRight.js +34 -7
  60. package/lib/properties/marginTop.js +34 -7
  61. package/lib/properties/opacity.js +39 -7
  62. package/lib/properties/outlineColor.js +23 -7
  63. package/lib/properties/padding.js +43 -51
  64. package/lib/properties/paddingBottom.js +36 -7
  65. package/lib/properties/paddingLeft.js +34 -7
  66. package/lib/properties/paddingRight.js +34 -7
  67. package/lib/properties/paddingTop.js +34 -7
  68. package/lib/properties/right.js +23 -7
  69. package/lib/properties/stopColor.js +23 -7
  70. package/lib/properties/top.js +23 -7
  71. package/lib/properties/webkitBorderAfterColor.js +23 -7
  72. package/lib/properties/webkitBorderBeforeColor.js +23 -7
  73. package/lib/properties/webkitBorderEndColor.js +23 -7
  74. package/lib/properties/webkitBorderStartColor.js +23 -7
  75. package/lib/properties/webkitColumnRuleColor.js +23 -7
  76. package/lib/properties/webkitTapHighlightColor.js +23 -7
  77. package/lib/properties/webkitTextEmphasisColor.js +23 -7
  78. package/lib/properties/webkitTextFillColor.js +23 -7
  79. package/lib/properties/webkitTextStrokeColor.js +23 -7
  80. package/lib/properties/width.js +21 -14
  81. package/lib/utils/camelize.js +35 -0
  82. package/lib/utils/propertyDescriptors.js +16 -0
  83. package/package.json +5 -4
  84. package/lib/allProperties.js +0 -529
  85. package/lib/constants.js +0 -6
  86. package/lib/named_colors.json +0 -152
  87. package/lib/properties/azimuth.js +0 -64
  88. package/lib/properties/cssFloat.js +0 -12
  89. package/lib/properties/textLineThroughColor.js +0 -14
  90. package/lib/properties/textOverlineColor.js +0 -14
  91. package/lib/properties/textUnderlineColor.js +0 -14
  92. package/lib/properties/webkitMatchNearestMailBlockquoteColor.js +0 -14
  93. package/lib/properties.js +0 -1672
  94. package/lib/utils/getBasicPropertyDescriptor.js +0 -14
@@ -1,67 +1,49 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  /**
4
4
  * This file contains all implemented properties that are not a part of any
5
5
  * current specifications or drafts, but are handled by browsers nevertheless.
6
6
  */
7
7
 
8
- var allWebkitProperties = require('./allWebkitProperties');
8
+ const allWebkitProperties = require("./allWebkitProperties");
9
9
 
10
- module.exports = new Set(
11
- [
12
- 'background-position-x',
13
- 'background-position-y',
14
- 'background-repeat-x',
15
- 'background-repeat-y',
16
- 'color-interpolation',
17
- 'color-profile',
18
- 'color-rendering',
19
- 'css-float',
20
- 'enable-background',
21
- 'fill',
22
- 'fill-opacity',
23
- 'fill-rule',
24
- 'glyph-orientation-horizontal',
25
- 'image-rendering',
26
- 'kerning',
27
- 'marker',
28
- 'marker-end',
29
- 'marker-mid',
30
- 'marker-offset',
31
- 'marker-start',
32
- 'marks',
33
- 'pointer-events',
34
- 'shape-rendering',
35
- 'size',
36
- 'src',
37
- 'stop-color',
38
- 'stop-opacity',
39
- 'stroke',
40
- 'stroke-dasharray',
41
- 'stroke-dashoffset',
42
- 'stroke-linecap',
43
- 'stroke-linejoin',
44
- 'stroke-miterlimit',
45
- 'stroke-opacity',
46
- 'stroke-width',
47
- 'text-anchor',
48
- 'text-line-through',
49
- 'text-line-through-color',
50
- 'text-line-through-mode',
51
- 'text-line-through-style',
52
- 'text-line-through-width',
53
- 'text-overline',
54
- 'text-overline-color',
55
- 'text-overline-mode',
56
- 'text-overline-style',
57
- 'text-overline-width',
58
- 'text-rendering',
59
- 'text-underline',
60
- 'text-underline-color',
61
- 'text-underline-mode',
62
- 'text-underline-style',
63
- 'text-underline-width',
64
- 'unicode-range',
65
- 'vector-effect',
66
- ].concat(allWebkitProperties)
67
- );
10
+ module.exports = new Set([
11
+ "background-position-x",
12
+ "background-position-y",
13
+ "background-repeat-x",
14
+ "background-repeat-y",
15
+ "color-interpolation",
16
+ "color-profile",
17
+ "color-rendering",
18
+ "enable-background",
19
+ "glyph-orientation-horizontal",
20
+ "kerning",
21
+ "marker-offset",
22
+ "marks",
23
+ "pointer-events",
24
+ "shape-rendering",
25
+ "size",
26
+ "src",
27
+ "stop-color",
28
+ "stop-opacity",
29
+ "text-anchor",
30
+ "text-line-through",
31
+ "text-line-through-color",
32
+ "text-line-through-mode",
33
+ "text-line-through-style",
34
+ "text-line-through-width",
35
+ "text-overline",
36
+ "text-overline-color",
37
+ "text-overline-mode",
38
+ "text-overline-style",
39
+ "text-overline-width",
40
+ "text-rendering",
41
+ "text-underline",
42
+ "text-underline-color",
43
+ "text-underline-mode",
44
+ "text-underline-style",
45
+ "text-underline-width",
46
+ "unicode-range",
47
+ "vector-effect",
48
+ ...allWebkitProperties
49
+ ]);
@@ -1,4 +1,4 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  /**
4
4
  * This file contains all implemented properties that are not a part of any
@@ -6,189 +6,109 @@
6
6
  */
7
7
 
8
8
  module.exports = [
9
- 'animation',
10
- 'animation-delay',
11
- 'animation-direction',
12
- 'animation-duration',
13
- 'animation-fill-mode',
14
- 'animation-iteration-count',
15
- 'animation-name',
16
- 'animation-play-state',
17
- 'animation-timing-function',
18
- 'appearance',
19
- 'aspect-ratio',
20
- 'backface-visibility',
21
- 'background-clip',
22
- 'background-composite',
23
- 'background-origin',
24
- 'background-size',
25
- 'border-after',
26
- 'border-after-color',
27
- 'border-after-style',
28
- 'border-after-width',
29
- 'border-before',
30
- 'border-before-color',
31
- 'border-before-style',
32
- 'border-before-width',
33
- 'border-end',
34
- 'border-end-color',
35
- 'border-end-style',
36
- 'border-end-width',
37
- 'border-fit',
38
- 'border-horizontal-spacing',
39
- 'border-image',
40
- 'border-radius',
41
- 'border-start',
42
- 'border-start-color',
43
- 'border-start-style',
44
- 'border-start-width',
45
- 'border-vertical-spacing',
46
- 'box-align',
47
- 'box-direction',
48
- 'box-flex',
49
- 'box-flex-group',
50
- 'box-lines',
51
- 'box-ordinal-group',
52
- 'box-orient',
53
- 'box-pack',
54
- 'box-reflect',
55
- 'box-shadow',
56
- 'color-correction',
57
- 'column-axis',
58
- 'column-break-after',
59
- 'column-break-before',
60
- 'column-break-inside',
61
- 'column-count',
62
- 'column-gap',
63
- 'column-rule',
64
- 'column-rule-color',
65
- 'column-rule-style',
66
- 'column-rule-width',
67
- 'columns',
68
- 'column-span',
69
- 'column-width',
70
- 'filter',
71
- 'flex-align',
72
- 'flex-direction',
73
- 'flex-flow',
74
- 'flex-item-align',
75
- 'flex-line-pack',
76
- 'flex-order',
77
- 'flex-pack',
78
- 'flex-wrap',
79
- 'flow-from',
80
- 'flow-into',
81
- 'font-feature-settings',
82
- 'font-kerning',
83
- 'font-size-delta',
84
- 'font-smoothing',
85
- 'font-variant-ligatures',
86
- 'highlight',
87
- 'hyphenate-character',
88
- 'hyphenate-limit-after',
89
- 'hyphenate-limit-before',
90
- 'hyphenate-limit-lines',
91
- 'hyphens',
92
- 'line-align',
93
- 'line-box-contain',
94
- 'line-break',
95
- 'line-clamp',
96
- 'line-grid',
97
- 'line-snap',
98
- 'locale',
99
- 'logical-height',
100
- 'logical-width',
101
- 'margin-after',
102
- 'margin-after-collapse',
103
- 'margin-before',
104
- 'margin-before-collapse',
105
- 'margin-bottom-collapse',
106
- 'margin-collapse',
107
- 'margin-end',
108
- 'margin-start',
109
- 'margin-top-collapse',
110
- 'marquee',
111
- 'marquee-direction',
112
- 'marquee-increment',
113
- 'marquee-repetition',
114
- 'marquee-speed',
115
- 'marquee-style',
116
- 'mask',
117
- 'mask-attachment',
118
- 'mask-box-image',
119
- 'mask-box-image-outset',
120
- 'mask-box-image-repeat',
121
- 'mask-box-image-slice',
122
- 'mask-box-image-source',
123
- 'mask-box-image-width',
124
- 'mask-clip',
125
- 'mask-composite',
126
- 'mask-image',
127
- 'mask-origin',
128
- 'mask-position',
129
- 'mask-position-x',
130
- 'mask-position-y',
131
- 'mask-repeat',
132
- 'mask-repeat-x',
133
- 'mask-repeat-y',
134
- 'mask-size',
135
- 'match-nearest-mail-blockquote-color',
136
- 'max-logical-height',
137
- 'max-logical-width',
138
- 'min-logical-height',
139
- 'min-logical-width',
140
- 'nbsp-mode',
141
- 'overflow-scrolling',
142
- 'padding-after',
143
- 'padding-before',
144
- 'padding-end',
145
- 'padding-start',
146
- 'perspective',
147
- 'perspective-origin',
148
- 'perspective-origin-x',
149
- 'perspective-origin-y',
150
- 'print-color-adjust',
151
- 'region-break-after',
152
- 'region-break-before',
153
- 'region-break-inside',
154
- 'region-overflow',
155
- 'rtl-ordering',
156
- 'svg-shadow',
157
- 'tap-highlight-color',
158
- 'text-combine',
159
- 'text-decorations-in-effect',
160
- 'text-emphasis',
161
- 'text-emphasis-color',
162
- 'text-emphasis-position',
163
- 'text-emphasis-style',
164
- 'text-fill-color',
165
- 'text-orientation',
166
- 'text-security',
167
- 'text-size-adjust',
168
- 'text-stroke',
169
- 'text-stroke-color',
170
- 'text-stroke-width',
171
- 'transform',
172
- 'transform-origin',
173
- 'transform-origin-x',
174
- 'transform-origin-y',
175
- 'transform-origin-z',
176
- 'transform-style',
177
- 'transition',
178
- 'transition-delay',
179
- 'transition-duration',
180
- 'transition-property',
181
- 'transition-timing-function',
182
- 'user-drag',
183
- 'user-modify',
184
- 'user-select',
185
- 'wrap',
186
- 'wrap-flow',
187
- 'wrap-margin',
188
- 'wrap-padding',
189
- 'wrap-shape-inside',
190
- 'wrap-shape-outside',
191
- 'wrap-through',
192
- 'writing-mode',
193
- 'zoom',
194
- ].map((prop) => 'webkit-' + prop);
9
+ "background-composite",
10
+ "border-after",
11
+ "border-after-color",
12
+ "border-after-style",
13
+ "border-after-width",
14
+ "border-before",
15
+ "border-before-color",
16
+ "border-before-style",
17
+ "border-before-width",
18
+ "border-end",
19
+ "border-end-color",
20
+ "border-end-style",
21
+ "border-end-width",
22
+ "border-fit",
23
+ "border-horizontal-spacing",
24
+ "border-start",
25
+ "border-start-color",
26
+ "border-start-style",
27
+ "border-start-width",
28
+ "border-vertical-spacing",
29
+ "color-correction",
30
+ "column-axis",
31
+ "column-break-after",
32
+ "column-break-before",
33
+ "column-break-inside",
34
+ "column-rule-color",
35
+ "flex-align",
36
+ "flex-item-align",
37
+ "flex-line-pack",
38
+ "flex-order",
39
+ "flex-pack",
40
+ "flex-wrap",
41
+ "font-size-delta",
42
+ "font-smoothing",
43
+ "highlight",
44
+ "hyphenate-limit-after",
45
+ "hyphenate-limit-before",
46
+ "locale",
47
+ "logical-height",
48
+ "logical-width",
49
+ "margin-after",
50
+ "margin-after-collapse",
51
+ "margin-before",
52
+ "margin-before-collapse",
53
+ "margin-bottom-collapse",
54
+ "margin-collapse",
55
+ "margin-end",
56
+ "margin-start",
57
+ "margin-top-collapse",
58
+ "marquee",
59
+ "marquee-direction",
60
+ "marquee-increment",
61
+ "marquee-repetition",
62
+ "marquee-speed",
63
+ "marquee-style",
64
+ "mask-attachment",
65
+ "mask-box-image-outset",
66
+ "mask-box-image-repeat",
67
+ "mask-box-image-slice",
68
+ "mask-box-image-source",
69
+ "mask-box-image-width",
70
+ "mask-position-x",
71
+ "mask-position-y",
72
+ "mask-repeat-x",
73
+ "mask-repeat-y",
74
+ "match-nearest-mail-blockquote-color",
75
+ "max-logical-height",
76
+ "max-logical-width",
77
+ "min-logical-height",
78
+ "min-logical-width",
79
+ "nbsp-mode",
80
+ "overflow-scrolling",
81
+ "padding-after",
82
+ "padding-before",
83
+ "padding-end",
84
+ "padding-start",
85
+ "perspective-origin-x",
86
+ "perspective-origin-y",
87
+ "region-break-after",
88
+ "region-break-before",
89
+ "region-break-inside",
90
+ "region-overflow",
91
+ "rtl-ordering",
92
+ "svg-shadow",
93
+ "tap-highlight-color",
94
+ "text-decorations-in-effect",
95
+ "text-emphasis-color",
96
+ "text-fill-color",
97
+ "text-security",
98
+ "text-size-adjust",
99
+ "text-stroke",
100
+ "text-stroke-color",
101
+ "text-stroke-width",
102
+ "transform",
103
+ "transform-origin-x",
104
+ "transform-origin-y",
105
+ "transform-origin-z",
106
+ "user-drag",
107
+ "user-modify",
108
+ "wrap",
109
+ "wrap-margin",
110
+ "wrap-padding",
111
+ "wrap-shape-inside",
112
+ "wrap-shape-outside",
113
+ "zoom"
114
+ ].map((prop) => `-webkit-${prop}`);