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.
- package/lib/CSSStyleDeclaration.js +545 -206
- package/lib/allExtraProperties.js +42 -60
- package/lib/allWebkitProperties.js +107 -187
- package/lib/generated/allProperties.js +615 -0
- package/lib/{implementedProperties.js → generated/implementedProperties.js} +11 -18
- package/lib/generated/properties.js +2574 -0
- package/lib/parsers.js +400 -544
- package/lib/properties/background.js +40 -13
- package/lib/properties/backgroundAttachment.js +23 -15
- package/lib/properties/backgroundColor.js +21 -19
- package/lib/properties/backgroundImage.js +19 -14
- package/lib/properties/backgroundPosition.js +35 -41
- package/lib/properties/backgroundRepeat.js +20 -20
- package/lib/properties/border.js +34 -25
- package/lib/properties/borderBottom.js +34 -11
- package/lib/properties/borderBottomColor.js +27 -8
- package/lib/properties/borderBottomStyle.js +42 -13
- package/lib/properties/borderBottomWidth.js +28 -8
- package/lib/properties/borderCollapse.js +16 -16
- package/lib/properties/borderColor.js +32 -18
- package/lib/properties/borderLeft.js +34 -11
- package/lib/properties/borderLeftColor.js +27 -8
- package/lib/properties/borderLeftStyle.js +42 -13
- package/lib/properties/borderLeftWidth.js +28 -8
- package/lib/properties/borderRight.js +34 -11
- package/lib/properties/borderRightColor.js +27 -8
- package/lib/properties/borderRightStyle.js +42 -13
- package/lib/properties/borderRightWidth.js +28 -8
- package/lib/properties/borderSpacing.js +31 -27
- package/lib/properties/borderStyle.js +43 -27
- package/lib/properties/borderTop.js +34 -11
- package/lib/properties/borderTopColor.js +27 -8
- package/lib/properties/borderTopStyle.js +42 -13
- package/lib/properties/borderTopWidth.js +28 -9
- package/lib/properties/borderWidth.js +32 -34
- package/lib/properties/bottom.js +23 -7
- package/lib/properties/clear.js +32 -8
- package/lib/properties/clip.js +33 -27
- package/lib/properties/color.js +23 -7
- package/lib/properties/flex.js +59 -29
- package/lib/properties/flexBasis.js +21 -16
- package/lib/properties/flexGrow.js +19 -10
- package/lib/properties/flexShrink.js +19 -10
- package/lib/properties/float.js +21 -6
- package/lib/properties/floodColor.js +23 -7
- package/lib/properties/font.js +120 -33
- package/lib/properties/fontFamily.js +59 -21
- package/lib/properties/fontSize.js +37 -28
- package/lib/properties/fontStyle.js +23 -9
- package/lib/properties/fontVariant.js +26 -8
- package/lib/properties/fontWeight.js +26 -23
- package/lib/properties/height.js +21 -14
- package/lib/properties/left.js +23 -7
- package/lib/properties/lightingColor.js +23 -7
- package/lib/properties/lineHeight.js +29 -16
- package/lib/properties/margin.js +42 -57
- package/lib/properties/marginBottom.js +34 -7
- package/lib/properties/marginLeft.js +34 -7
- package/lib/properties/marginRight.js +34 -7
- package/lib/properties/marginTop.js +34 -7
- package/lib/properties/opacity.js +39 -7
- package/lib/properties/outlineColor.js +23 -7
- package/lib/properties/padding.js +43 -51
- package/lib/properties/paddingBottom.js +36 -7
- package/lib/properties/paddingLeft.js +34 -7
- package/lib/properties/paddingRight.js +34 -7
- package/lib/properties/paddingTop.js +34 -7
- package/lib/properties/right.js +23 -7
- package/lib/properties/stopColor.js +23 -7
- package/lib/properties/top.js +23 -7
- package/lib/properties/webkitBorderAfterColor.js +23 -7
- package/lib/properties/webkitBorderBeforeColor.js +23 -7
- package/lib/properties/webkitBorderEndColor.js +23 -7
- package/lib/properties/webkitBorderStartColor.js +23 -7
- package/lib/properties/webkitColumnRuleColor.js +23 -7
- package/lib/properties/webkitTapHighlightColor.js +23 -7
- package/lib/properties/webkitTextEmphasisColor.js +23 -7
- package/lib/properties/webkitTextFillColor.js +23 -7
- package/lib/properties/webkitTextStrokeColor.js +23 -7
- package/lib/properties/width.js +21 -14
- package/lib/utils/camelize.js +35 -0
- package/lib/utils/propertyDescriptors.js +16 -0
- package/package.json +5 -4
- package/lib/allProperties.js +0 -529
- package/lib/constants.js +0 -6
- package/lib/named_colors.json +0 -152
- package/lib/properties/azimuth.js +0 -64
- package/lib/properties/cssFloat.js +0 -12
- package/lib/properties/textLineThroughColor.js +0 -14
- package/lib/properties/textOverlineColor.js +0 -14
- package/lib/properties/textUnderlineColor.js +0 -14
- package/lib/properties/webkitMatchNearestMailBlockquoteColor.js +0 -14
- package/lib/properties.js +0 -1672
- package/lib/utils/getBasicPropertyDescriptor.js +0 -14
|
@@ -1,67 +1,49 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
8
|
+
const allWebkitProperties = require("./allWebkitProperties");
|
|
9
9
|
|
|
10
|
-
module.exports = new Set(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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}`);
|