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
@@ -0,0 +1,2574 @@
1
+ "use strict";
2
+ // autogenerated - 2025-06-08
3
+ // https://www.w3.org/Style/CSS/all-properties.en.html
4
+
5
+ var external_dependency_parsers_0 = require("../parsers.js");
6
+ var backgroundImage_export_parse, backgroundImage_export_isValid, backgroundImage_export_definition;
7
+ backgroundImage_export_parse = function parse(v) {
8
+ return external_dependency_parsers_0.parseImage(v);
9
+ };
10
+ backgroundImage_export_isValid = function isValid(v) {
11
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v, ["none"]) === "string") {
12
+ return true;
13
+ }
14
+ return typeof backgroundImage_export_parse(v) === "string";
15
+ };
16
+ backgroundImage_export_definition = {
17
+ set(v) {
18
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
19
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
20
+ this._setProperty("background", "");
21
+ this._setProperty("backgound-image", v);
22
+ } else {
23
+ this._setProperty("background-image", backgroundImage_export_parse(v));
24
+ }
25
+ },
26
+ get() {
27
+ return this.getPropertyValue("background-image");
28
+ },
29
+ enumerable: true,
30
+ configurable: true
31
+ };
32
+ var backgroundPosition_export_parse, backgroundPosition_export_isValid, backgroundPosition_export_definition;
33
+ backgroundPosition_export_parse = function parse(v) {
34
+ const parts = external_dependency_parsers_0.splitValue(v);
35
+ if (!parts.length || parts.length > 2) {
36
+ return;
37
+ }
38
+ const validKeywordsX = ["left", "center", "right"];
39
+ const validKeywordsY = ["top", "center", "bottom"];
40
+ if (parts.length === 1) {
41
+ const dim = external_dependency_parsers_0.parseMeasurement(parts[0]);
42
+ if (dim) {
43
+ return dim;
44
+ }
45
+ const validKeywords = new Set([...validKeywordsX, ...validKeywordsY]);
46
+ return external_dependency_parsers_0.parseKeyword(v, [...validKeywords]);
47
+ }
48
+ const [partX, partY] = parts;
49
+ const posX = external_dependency_parsers_0.parseMeasurement(partX) || external_dependency_parsers_0.parseKeyword(partX, validKeywordsX);
50
+ if (posX) {
51
+ const posY = external_dependency_parsers_0.parseMeasurement(partY) || external_dependency_parsers_0.parseKeyword(partY, validKeywordsY);
52
+ if (posY) {
53
+ return `${posX} ${posY}`;
54
+ }
55
+ }
56
+ };
57
+ backgroundPosition_export_isValid = function isValid(v) {
58
+ if (v === "") {
59
+ return true;
60
+ }
61
+ return typeof backgroundPosition_export_parse(v) === "string";
62
+ };
63
+ backgroundPosition_export_definition = {
64
+ set(v) {
65
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
66
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
67
+ this._setProperty("background", "");
68
+ this._setProperty("backgound-position", v);
69
+ } else {
70
+ this._setProperty("background-position", backgroundPosition_export_parse(v));
71
+ }
72
+ },
73
+ get() {
74
+ return this.getPropertyValue("background-position");
75
+ },
76
+ enumerable: true,
77
+ configurable: true
78
+ };
79
+ var backgroundRepeat_export_parse, backgroundRepeat_export_isValid, backgroundRepeat_export_definition;
80
+ backgroundRepeat_export_parse = function parse(v) {
81
+ const keywords = ["repeat", "repeat-x", "repeat-y", "no-repeat", "space", "round"];
82
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
83
+ };
84
+ backgroundRepeat_export_isValid = function isValid(v) {
85
+ if (v === "") {
86
+ return true;
87
+ }
88
+ return typeof backgroundRepeat_export_parse(v) === "string";
89
+ };
90
+ backgroundRepeat_export_definition = {
91
+ set(v) {
92
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
93
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
94
+ this._setProperty("background", "");
95
+ this._setProperty("backgound-repeat", v);
96
+ } else {
97
+ this._setProperty("background-repeat", backgroundRepeat_export_parse(v));
98
+ }
99
+ },
100
+ get() {
101
+ return this.getPropertyValue("background-repeat");
102
+ },
103
+ enumerable: true,
104
+ configurable: true
105
+ };
106
+ var backgroundAttachment_export_parse, backgroundAttachment_export_isValid, backgroundAttachment_export_definition;
107
+ backgroundAttachment_export_parse = function parse(v) {
108
+ const keywords = ["fixed", "scroll", "local"];
109
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
110
+ };
111
+ backgroundAttachment_export_isValid = function isValid(v) {
112
+ if (v === "") {
113
+ return true;
114
+ }
115
+ return typeof backgroundAttachment_export_parse(v) === "string";
116
+ };
117
+ backgroundAttachment_export_definition = {
118
+ set(v) {
119
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
120
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
121
+ this._setProperty("background", "");
122
+ this._setProperty("backgound-attachemnt", v);
123
+ } else {
124
+ this._setProperty("background-attachment", backgroundAttachment_export_parse(v));
125
+ }
126
+ },
127
+ get() {
128
+ return this.getPropertyValue("background-attachment");
129
+ },
130
+ enumerable: true,
131
+ configurable: true
132
+ };
133
+ var backgroundColor_export_parse, backgroundColor_export_isValid, backgroundColor_export_definition;
134
+ backgroundColor_export_parse = function parse(v) {
135
+ const val = external_dependency_parsers_0.parseColor(v);
136
+ if (val) {
137
+ return val;
138
+ }
139
+ return external_dependency_parsers_0.parseKeyword(v);
140
+ };
141
+ backgroundColor_export_isValid = function isValid(v) {
142
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
143
+ return true;
144
+ }
145
+ return external_dependency_parsers_0.isValidColor(v);
146
+ };
147
+ backgroundColor_export_definition = {
148
+ set(v) {
149
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
150
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
151
+ this._setProperty("background", "");
152
+ this._setProperty("backgound-color", v);
153
+ } else {
154
+ this._setProperty("background-color", backgroundColor_export_parse(v));
155
+ }
156
+ },
157
+ get() {
158
+ return this.getPropertyValue("background-color");
159
+ },
160
+ enumerable: true,
161
+ configurable: true
162
+ };
163
+ var background_export_definition;
164
+ // FIXME:
165
+ // * support multiple backgrounds
166
+ // * also fix longhands
167
+
168
+ const background_local_var_shorthandFor = new Map([["background-image", {
169
+ parse: backgroundImage_export_parse,
170
+ isValid: backgroundImage_export_isValid,
171
+ definition: backgroundImage_export_definition
172
+ }], ["background-position", {
173
+ parse: backgroundPosition_export_parse,
174
+ isValid: backgroundPosition_export_isValid,
175
+ definition: backgroundPosition_export_definition
176
+ }], ["background-repeat", {
177
+ parse: backgroundRepeat_export_parse,
178
+ isValid: backgroundRepeat_export_isValid,
179
+ definition: backgroundRepeat_export_definition
180
+ }], ["background-attachment", {
181
+ parse: backgroundAttachment_export_parse,
182
+ isValid: backgroundAttachment_export_isValid,
183
+ definition: backgroundAttachment_export_definition
184
+ }], ["background-color", {
185
+ parse: backgroundColor_export_parse,
186
+ isValid: backgroundColor_export_isValid,
187
+ definition: backgroundColor_export_definition
188
+ }]]);
189
+ background_export_definition = {
190
+ set(v) {
191
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
192
+ if (v.toLowerCase() === "none" || external_dependency_parsers_0.hasVarFunc(v)) {
193
+ for (const [key] of background_local_var_shorthandFor) {
194
+ this._setProperty(key, "");
195
+ }
196
+ this._setProperty("background", v);
197
+ } else {
198
+ this._shorthandSetter("background", v, background_local_var_shorthandFor);
199
+ }
200
+ },
201
+ get() {
202
+ let val = this.getPropertyValue("background");
203
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
204
+ return val;
205
+ }
206
+ val = this._shorthandGetter("background", background_local_var_shorthandFor);
207
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
208
+ return "";
209
+ }
210
+ return val;
211
+ },
212
+ enumerable: true,
213
+ configurable: true
214
+ };
215
+ var borderWidth_export_parse, borderWidth_export_isValid, borderWidth_export_definition;
216
+ borderWidth_export_parse = function parse(v) {
217
+ const keywords = ["thin", "medium", "thick"];
218
+ const key = external_dependency_parsers_0.parseKeyword(v, keywords);
219
+ if (key) {
220
+ return key;
221
+ }
222
+ return external_dependency_parsers_0.parseLength(v, true);
223
+ };
224
+ borderWidth_export_isValid = function isValid(v) {
225
+ if (v === "") {
226
+ return true;
227
+ }
228
+ return typeof borderWidth_export_parse(v) === "string";
229
+ };
230
+ borderWidth_export_definition = {
231
+ set(v) {
232
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
233
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
234
+ this._setProperty("border", "");
235
+ this._setProperty("border-width", v);
236
+ } else {
237
+ const positions = ["top", "right", "bottom", "left"];
238
+ this._implicitSetter("border", "width", v, borderWidth_export_isValid, borderWidth_export_parse, positions);
239
+ }
240
+ },
241
+ get() {
242
+ return this.getPropertyValue("border-width");
243
+ },
244
+ enumerable: true,
245
+ configurable: true
246
+ };
247
+ var borderStyle_export_parse, borderStyle_export_isValid, borderStyle_export_definition;
248
+ borderStyle_export_parse = function parse(v) {
249
+ const keywords = ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
250
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
251
+ };
252
+ borderStyle_export_isValid = function isValid(v) {
253
+ if (v === "") {
254
+ return true;
255
+ }
256
+ return typeof borderStyle_export_parse(v) === "string";
257
+ };
258
+ borderStyle_export_definition = {
259
+ set(v) {
260
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
261
+ if (v.toLowerCase() === "none") {
262
+ v = "";
263
+ }
264
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
265
+ this._setProperty("border", "");
266
+ this._setProperty("border-style", v);
267
+ return;
268
+ }
269
+ const positions = ["top", "right", "bottom", "left"];
270
+ this._implicitSetter("border", "style", v, borderStyle_export_isValid, borderStyle_export_parse, positions);
271
+ },
272
+ get() {
273
+ return this.getPropertyValue("border-style");
274
+ },
275
+ enumerable: true,
276
+ configurable: true
277
+ };
278
+ var borderColor_export_parse, borderColor_export_isValid, borderColor_export_definition;
279
+ borderColor_export_parse = function parse(v) {
280
+ const val = external_dependency_parsers_0.parseColor(v);
281
+ if (val) {
282
+ return val;
283
+ }
284
+ return external_dependency_parsers_0.parseKeyword(v);
285
+ };
286
+ borderColor_export_isValid = function isValid(v) {
287
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
288
+ return true;
289
+ }
290
+ return external_dependency_parsers_0.isValidColor(v);
291
+ };
292
+ borderColor_export_definition = {
293
+ set(v) {
294
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
295
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
296
+ this._setProperty("border", "");
297
+ this._setProperty("border-color", v);
298
+ } else {
299
+ const positions = ["top", "right", "bottom", "left"];
300
+ this._implicitSetter("border", "color", v, borderColor_export_isValid, borderColor_export_parse, positions);
301
+ }
302
+ },
303
+ get() {
304
+ return this.getPropertyValue("border-color");
305
+ },
306
+ enumerable: true,
307
+ configurable: true
308
+ };
309
+ var border_export_definition;
310
+ const border_local_var_shorthandFor = new Map([["border-width", {
311
+ parse: borderWidth_export_parse,
312
+ isValid: borderWidth_export_isValid,
313
+ definition: borderWidth_export_definition
314
+ }], ["border-style", {
315
+ parse: borderStyle_export_parse,
316
+ isValid: borderStyle_export_isValid,
317
+ definition: borderStyle_export_definition
318
+ }], ["border-color", {
319
+ parse: borderColor_export_parse,
320
+ isValid: borderColor_export_isValid,
321
+ definition: borderColor_export_definition
322
+ }]]);
323
+ border_export_definition = {
324
+ set(v) {
325
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
326
+ if (v.toLowerCase() === "none") {
327
+ v = "";
328
+ }
329
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
330
+ for (const [key] of border_local_var_shorthandFor) {
331
+ this._setProperty(key, "");
332
+ }
333
+ this._setProperty("border", v);
334
+ } else {
335
+ this._midShorthandSetter("border", v, border_local_var_shorthandFor, ["top", "right", "bottom", "left"]);
336
+ }
337
+ },
338
+ get() {
339
+ let val = this.getPropertyValue("border");
340
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
341
+ return val;
342
+ }
343
+ val = this._shorthandGetter("border", border_local_var_shorthandFor);
344
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
345
+ return "";
346
+ }
347
+ return val;
348
+ },
349
+ enumerable: true,
350
+ configurable: true
351
+ };
352
+ var borderTopWidth_export_parse, borderTopWidth_export_isValid, borderTopWidth_export_definition;
353
+ borderTopWidth_export_parse = function parse(v) {
354
+ const keywords = ["thin", "medium", "thick"];
355
+ const key = external_dependency_parsers_0.parseKeyword(v, keywords);
356
+ if (key) {
357
+ return key;
358
+ }
359
+ return external_dependency_parsers_0.parseLength(v, true);
360
+ };
361
+ borderTopWidth_export_isValid = function isValid(v) {
362
+ if (v === "") {
363
+ return true;
364
+ }
365
+ return typeof borderTopWidth_export_parse(v) === "string";
366
+ };
367
+ borderTopWidth_export_definition = {
368
+ set(v) {
369
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
370
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
371
+ this._setProperty("border", "");
372
+ this._setProperty("border-top", "");
373
+ this._setProperty("border-width", "");
374
+ }
375
+ this._setProperty("border-top-width", borderTopWidth_export_parse(v));
376
+ },
377
+ get() {
378
+ return this.getPropertyValue("border-top-width");
379
+ },
380
+ enumerable: true,
381
+ configurable: true
382
+ };
383
+ var borderTopStyle_export_parse, borderTopStyle_export_isValid, borderTopStyle_export_definition;
384
+ borderTopStyle_export_parse = function parse(v) {
385
+ const keywords = ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
386
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
387
+ };
388
+ borderTopStyle_export_isValid = function isValid(v) {
389
+ if (v === "") {
390
+ return true;
391
+ }
392
+ return typeof borderTopStyle_export_parse(v) === "string";
393
+ };
394
+ borderTopStyle_export_definition = {
395
+ set(v) {
396
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
397
+ const val = borderTopStyle_export_parse(v);
398
+ if (val === "none" || val === "hidden" || v === "") {
399
+ this._setProperty("border-top-style", "");
400
+ this._setProperty("border-top-color", "");
401
+ this._setProperty("border-top-width", "");
402
+ return;
403
+ }
404
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
405
+ this._setProperty("border", "");
406
+ this._setProperty("border-top", "");
407
+ this._setProperty("border-style", "");
408
+ }
409
+ this._setProperty("border-top-style", val);
410
+ },
411
+ get() {
412
+ return this.getPropertyValue("border-top-style");
413
+ },
414
+ enumerable: true,
415
+ configurable: true
416
+ };
417
+ var borderTopColor_export_parse, borderTopColor_export_isValid, borderTopColor_export_definition;
418
+ borderTopColor_export_parse = function parse(v) {
419
+ const val = external_dependency_parsers_0.parseColor(v);
420
+ if (val) {
421
+ return val;
422
+ }
423
+ return external_dependency_parsers_0.parseKeyword(v);
424
+ };
425
+ borderTopColor_export_isValid = function isValid(v) {
426
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
427
+ return true;
428
+ }
429
+ return external_dependency_parsers_0.isValidColor(v);
430
+ };
431
+ borderTopColor_export_definition = {
432
+ set(v) {
433
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
434
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
435
+ this._setProperty("border", "");
436
+ this._setProperty("border-top", "");
437
+ this._setProperty("border-color", "");
438
+ }
439
+ this._setProperty("border-top-color", borderTopColor_export_parse(v));
440
+ },
441
+ get() {
442
+ return this.getPropertyValue("border-top-color");
443
+ },
444
+ enumerable: true,
445
+ configurable: true
446
+ };
447
+ var borderBottom_export_definition;
448
+ const borderBottom_local_var_shorthandFor = new Map([["border-bottom-width", {
449
+ parse: borderTopWidth_export_parse,
450
+ isValid: borderTopWidth_export_isValid,
451
+ definition: borderTopWidth_export_definition
452
+ }], ["border-bottom-style", {
453
+ parse: borderTopStyle_export_parse,
454
+ isValid: borderTopStyle_export_isValid,
455
+ definition: borderTopStyle_export_definition
456
+ }], ["border-bottom-color", {
457
+ parse: borderTopColor_export_parse,
458
+ isValid: borderTopColor_export_isValid,
459
+ definition: borderTopColor_export_definition
460
+ }]]);
461
+ borderBottom_export_definition = {
462
+ set(v) {
463
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
464
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
465
+ for (const [key] of borderBottom_local_var_shorthandFor) {
466
+ this._setProperty(key, "");
467
+ }
468
+ this._setProperty("border", "");
469
+ this._setProperty("border-bottom", v);
470
+ } else {
471
+ this._shorthandSetter("border-bottom", v, borderBottom_local_var_shorthandFor);
472
+ }
473
+ },
474
+ get() {
475
+ let val = this.getPropertyValue("border-bottom");
476
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
477
+ return val;
478
+ }
479
+ val = this._shorthandGetter("border-bottom", borderBottom_local_var_shorthandFor);
480
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
481
+ return "";
482
+ }
483
+ return val;
484
+ },
485
+ enumerable: true,
486
+ configurable: true
487
+ };
488
+ var borderBottomColor_export_parse, borderBottomColor_export_isValid, borderBottomColor_export_definition;
489
+ borderBottomColor_export_parse = function parse(v) {
490
+ const val = external_dependency_parsers_0.parseColor(v);
491
+ if (val) {
492
+ return val;
493
+ }
494
+ return external_dependency_parsers_0.parseKeyword(v);
495
+ };
496
+ borderBottomColor_export_isValid = function isValid(v) {
497
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
498
+ return true;
499
+ }
500
+ return external_dependency_parsers_0.isValidColor(v);
501
+ };
502
+ borderBottomColor_export_definition = {
503
+ set(v) {
504
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
505
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
506
+ this._setProperty("border", "");
507
+ this._setProperty("border-bottom", "");
508
+ this._setProperty("border-color", "");
509
+ }
510
+ this._setProperty("border-bottom-color", borderBottomColor_export_parse(v));
511
+ },
512
+ get() {
513
+ return this.getPropertyValue("border-bottom-color");
514
+ },
515
+ enumerable: true,
516
+ configurable: true
517
+ };
518
+ var borderBottomStyle_export_parse, borderBottomStyle_export_isValid, borderBottomStyle_export_definition;
519
+ borderBottomStyle_export_parse = function parse(v) {
520
+ const keywords = ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
521
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
522
+ };
523
+ borderBottomStyle_export_isValid = function isValid(v) {
524
+ if (v === "") {
525
+ return true;
526
+ }
527
+ return typeof borderBottomStyle_export_parse(v) === "string";
528
+ };
529
+ borderBottomStyle_export_definition = {
530
+ set(v) {
531
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
532
+ const val = borderBottomStyle_export_parse(v);
533
+ if (val === "none" || val === "hidden") {
534
+ this._setProperty("border-bottom-style", "");
535
+ this._setProperty("border-bottom-color", "");
536
+ this._setProperty("border-bottom-width", "");
537
+ return;
538
+ }
539
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
540
+ this._setProperty("border", "");
541
+ this._setProperty("border-bottom", "");
542
+ this._setProperty("border-style", "");
543
+ }
544
+ this._setProperty("border-bottom-style", val);
545
+ },
546
+ get() {
547
+ return this.getPropertyValue("border-bottom-style");
548
+ },
549
+ enumerable: true,
550
+ configurable: true
551
+ };
552
+ var borderBottomWidth_export_parse, borderBottomWidth_export_isValid, borderBottomWidth_export_definition;
553
+ borderBottomWidth_export_parse = function parse(v) {
554
+ const keywords = ["thin", "medium", "thick"];
555
+ const key = external_dependency_parsers_0.parseKeyword(v, keywords);
556
+ if (key) {
557
+ return key;
558
+ }
559
+ return external_dependency_parsers_0.parseLength(v, true);
560
+ };
561
+ borderBottomWidth_export_isValid = function isValid(v) {
562
+ if (v === "") {
563
+ return true;
564
+ }
565
+ return typeof borderBottomWidth_export_parse(v) === "string";
566
+ };
567
+ borderBottomWidth_export_definition = {
568
+ set(v) {
569
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
570
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
571
+ this._setProperty("border", "");
572
+ this._setProperty("border-bottom", "");
573
+ this._setProperty("border-width", "");
574
+ }
575
+ this._setProperty("border-bottom-width", borderBottomWidth_export_parse(v));
576
+ },
577
+ get() {
578
+ return this.getPropertyValue("border-bottom-width");
579
+ },
580
+ enumerable: true,
581
+ configurable: true
582
+ };
583
+ var borderCollapse_export_parse, borderCollapse_export_isValid, borderCollapse_export_definition;
584
+ borderCollapse_export_parse = function parse(v) {
585
+ return external_dependency_parsers_0.parseKeyword(v, ["collapse", "separate"]);
586
+ };
587
+ borderCollapse_export_isValid = function isValid(v) {
588
+ if (v === "") {
589
+ return true;
590
+ }
591
+ return typeof borderCollapse_export_parse(v) === "string";
592
+ };
593
+ borderCollapse_export_definition = {
594
+ set(v) {
595
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
596
+ this._setProperty("border-collapse", borderCollapse_export_parse(v));
597
+ },
598
+ get() {
599
+ return this.getPropertyValue("border-collapse");
600
+ },
601
+ enumerable: true,
602
+ configurable: true
603
+ };
604
+ var borderLeft_export_definition;
605
+ const borderLeft_local_var_shorthandFor = new Map([["border-left-width", {
606
+ parse: borderTopWidth_export_parse,
607
+ isValid: borderTopWidth_export_isValid,
608
+ definition: borderTopWidth_export_definition
609
+ }], ["border-left-style", {
610
+ parse: borderTopStyle_export_parse,
611
+ isValid: borderTopStyle_export_isValid,
612
+ definition: borderTopStyle_export_definition
613
+ }], ["border-left-color", {
614
+ parse: borderTopColor_export_parse,
615
+ isValid: borderTopColor_export_isValid,
616
+ definition: borderTopColor_export_definition
617
+ }]]);
618
+ borderLeft_export_definition = {
619
+ set(v) {
620
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
621
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
622
+ for (const [key] of borderLeft_local_var_shorthandFor) {
623
+ this._setProperty(key, "");
624
+ }
625
+ this._setProperty("border", "");
626
+ this._setProperty("border-left", v);
627
+ } else {
628
+ this._shorthandSetter("border-left", v, borderLeft_local_var_shorthandFor);
629
+ }
630
+ },
631
+ get() {
632
+ let val = this.getPropertyValue("border-left");
633
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
634
+ return val;
635
+ }
636
+ val = this._shorthandGetter("border-left", borderLeft_local_var_shorthandFor);
637
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
638
+ return "";
639
+ }
640
+ return val;
641
+ },
642
+ enumerable: true,
643
+ configurable: true
644
+ };
645
+ var borderLeftColor_export_parse, borderLeftColor_export_isValid, borderLeftColor_export_definition;
646
+ borderLeftColor_export_parse = function parse(v) {
647
+ const val = external_dependency_parsers_0.parseColor(v);
648
+ if (val) {
649
+ return val;
650
+ }
651
+ return external_dependency_parsers_0.parseKeyword(v);
652
+ };
653
+ borderLeftColor_export_isValid = function isValid(v) {
654
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
655
+ return true;
656
+ }
657
+ return external_dependency_parsers_0.isValidColor(v);
658
+ };
659
+ borderLeftColor_export_definition = {
660
+ set(v) {
661
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
662
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
663
+ this._setProperty("border", "");
664
+ this._setProperty("border-left", "");
665
+ this._setProperty("border-color", "");
666
+ }
667
+ this._setProperty("border-left-color", borderLeftColor_export_parse(v));
668
+ },
669
+ get() {
670
+ return this.getPropertyValue("border-left-color");
671
+ },
672
+ enumerable: true,
673
+ configurable: true
674
+ };
675
+ var borderLeftStyle_export_parse, borderLeftStyle_export_isValid, borderLeftStyle_export_definition;
676
+ borderLeftStyle_export_parse = function parse(v) {
677
+ const keywords = ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
678
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
679
+ };
680
+ borderLeftStyle_export_isValid = function isValid(v) {
681
+ if (v === "") {
682
+ return true;
683
+ }
684
+ return typeof borderLeftStyle_export_parse(v) === "string";
685
+ };
686
+ borderLeftStyle_export_definition = {
687
+ set(v) {
688
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
689
+ const val = borderLeftStyle_export_parse(v);
690
+ if (val === "none" || val === "hidden") {
691
+ this._setProperty("border-left-style", "");
692
+ this._setProperty("border-left-color", "");
693
+ this._setProperty("border-left-width", "");
694
+ return;
695
+ }
696
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
697
+ this._setProperty("border", "");
698
+ this._setProperty("border-left", "");
699
+ this._setProperty("border-style", "");
700
+ }
701
+ this._setProperty("border-left-style", val);
702
+ },
703
+ get() {
704
+ return this.getPropertyValue("border-left-style");
705
+ },
706
+ enumerable: true,
707
+ configurable: true
708
+ };
709
+ var borderLeftWidth_export_parse, borderLeftWidth_export_isValid, borderLeftWidth_export_definition;
710
+ borderLeftWidth_export_parse = function parse(v) {
711
+ const keywords = ["thin", "medium", "thick"];
712
+ const key = external_dependency_parsers_0.parseKeyword(v, keywords);
713
+ if (key) {
714
+ return key;
715
+ }
716
+ return external_dependency_parsers_0.parseLength(v, true);
717
+ };
718
+ borderLeftWidth_export_isValid = function isValid(v) {
719
+ if (v === "") {
720
+ return true;
721
+ }
722
+ return typeof borderLeftWidth_export_parse(v) === "string";
723
+ };
724
+ borderLeftWidth_export_definition = {
725
+ set(v) {
726
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
727
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
728
+ this._setProperty("border", "");
729
+ this._setProperty("border-left", "");
730
+ this._setProperty("border-width", "");
731
+ }
732
+ this._setProperty("border-left-width", borderLeftWidth_export_parse(v));
733
+ },
734
+ get() {
735
+ return this.getPropertyValue("border-left-width");
736
+ },
737
+ enumerable: true,
738
+ configurable: true
739
+ };
740
+ var borderRight_export_definition;
741
+ const borderRight_local_var_shorthandFor = new Map([["border-right-width", {
742
+ parse: borderTopWidth_export_parse,
743
+ isValid: borderTopWidth_export_isValid,
744
+ definition: borderTopWidth_export_definition
745
+ }], ["border-right-style", {
746
+ parse: borderTopStyle_export_parse,
747
+ isValid: borderTopStyle_export_isValid,
748
+ definition: borderTopStyle_export_definition
749
+ }], ["border-right-color", {
750
+ parse: borderTopColor_export_parse,
751
+ isValid: borderTopColor_export_isValid,
752
+ definition: borderTopColor_export_definition
753
+ }]]);
754
+ borderRight_export_definition = {
755
+ set(v) {
756
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
757
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
758
+ for (const [key] of borderRight_local_var_shorthandFor) {
759
+ this._setProperty(key, "");
760
+ }
761
+ this._setProperty("border", "");
762
+ this._setProperty("border-right", v);
763
+ } else {
764
+ this._shorthandSetter("border-right", v, borderRight_local_var_shorthandFor);
765
+ }
766
+ },
767
+ get() {
768
+ let val = this.getPropertyValue("border-right");
769
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
770
+ return val;
771
+ }
772
+ val = this._shorthandGetter("border-right", borderRight_local_var_shorthandFor);
773
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
774
+ return "";
775
+ }
776
+ return val;
777
+ },
778
+ enumerable: true,
779
+ configurable: true
780
+ };
781
+ var borderRightColor_export_parse, borderRightColor_export_isValid, borderRightColor_export_definition;
782
+ borderRightColor_export_parse = function parse(v) {
783
+ const val = external_dependency_parsers_0.parseColor(v);
784
+ if (val) {
785
+ return val;
786
+ }
787
+ return external_dependency_parsers_0.parseKeyword(v);
788
+ };
789
+ borderRightColor_export_isValid = function isValid(v) {
790
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
791
+ return true;
792
+ }
793
+ return external_dependency_parsers_0.isValidColor(v);
794
+ };
795
+ borderRightColor_export_definition = {
796
+ set(v) {
797
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
798
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
799
+ this._setProperty("border", "");
800
+ this._setProperty("border-right", "");
801
+ this._setProperty("border-color", "");
802
+ }
803
+ this._setProperty("border-right-color", borderRightColor_export_parse(v));
804
+ },
805
+ get() {
806
+ return this.getPropertyValue("border-right-color");
807
+ },
808
+ enumerable: true,
809
+ configurable: true
810
+ };
811
+ var borderRightStyle_export_parse, borderRightStyle_export_isValid, borderRightStyle_export_definition;
812
+ borderRightStyle_export_parse = function parse(v) {
813
+ const keywords = ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
814
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
815
+ };
816
+ borderRightStyle_export_isValid = function isValid(v) {
817
+ if (v === "") {
818
+ return true;
819
+ }
820
+ return typeof borderRightStyle_export_parse(v) === "string";
821
+ };
822
+ borderRightStyle_export_definition = {
823
+ set(v) {
824
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
825
+ const val = borderRightStyle_export_parse(v);
826
+ if (val === "none" || val === "hidden") {
827
+ this._setProperty("border-right-style", "");
828
+ this._setProperty("border-right-color", "");
829
+ this._setProperty("border-right-width", "");
830
+ return;
831
+ }
832
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
833
+ this._setProperty("border", "");
834
+ this._setProperty("border-right", "");
835
+ this._setProperty("border-style", "");
836
+ }
837
+ this._setProperty("border-right-style", val);
838
+ },
839
+ get() {
840
+ return this.getPropertyValue("border-right-style");
841
+ },
842
+ enumerable: true,
843
+ configurable: true
844
+ };
845
+ var borderRightWidth_export_parse, borderRightWidth_export_isValid, borderRightWidth_export_definition;
846
+ borderRightWidth_export_parse = function parse(v) {
847
+ const keywords = ["thin", "medium", "thick"];
848
+ const key = external_dependency_parsers_0.parseKeyword(v, keywords);
849
+ if (key) {
850
+ return key;
851
+ }
852
+ return external_dependency_parsers_0.parseLength(v, true);
853
+ };
854
+ borderRightWidth_export_isValid = function isValid(v) {
855
+ if (v === "") {
856
+ return true;
857
+ }
858
+ return typeof borderRightWidth_export_parse(v) === "string";
859
+ };
860
+ borderRightWidth_export_definition = {
861
+ set(v) {
862
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
863
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
864
+ this._setProperty("border", "");
865
+ this._setProperty("border-right", "");
866
+ this._setProperty("border-width", "");
867
+ }
868
+ this._setProperty("border-right-width", borderRightWidth_export_parse(v));
869
+ },
870
+ get() {
871
+ return this.getPropertyValue("border-right-width");
872
+ },
873
+ enumerable: true,
874
+ configurable: true
875
+ };
876
+ var borderSpacing_export_parse, borderSpacing_export_isValid, borderSpacing_export_definition;
877
+ borderSpacing_export_parse = function parse(v) {
878
+ if (v === "") {
879
+ return v;
880
+ }
881
+ const key = external_dependency_parsers_0.parseKeyword(v);
882
+ if (key) {
883
+ return key;
884
+ }
885
+ const parts = external_dependency_parsers_0.splitValue(v);
886
+ if (!parts.length || parts.length > 2) {
887
+ return;
888
+ }
889
+ const val = [];
890
+ for (const part of parts) {
891
+ const dim = external_dependency_parsers_0.parseLength(part);
892
+ if (!dim) {
893
+ return;
894
+ }
895
+ val.push(dim);
896
+ }
897
+ return val.join(" ");
898
+ };
899
+ borderSpacing_export_isValid = function isValid(v) {
900
+ if (v === "") {
901
+ return true;
902
+ }
903
+ return typeof borderSpacing_export_parse(v) === "string";
904
+ };
905
+ borderSpacing_export_definition = {
906
+ set(v) {
907
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
908
+ this._setProperty("border-spacing", borderSpacing_export_parse(v));
909
+ },
910
+ get() {
911
+ return this.getPropertyValue("border-spacing");
912
+ },
913
+ enumerable: true,
914
+ configurable: true
915
+ };
916
+ var borderTop_export_definition;
917
+ const borderTop_local_var_shorthandFor = new Map([["border-top-width", {
918
+ parse: borderTopWidth_export_parse,
919
+ isValid: borderTopWidth_export_isValid,
920
+ definition: borderTopWidth_export_definition
921
+ }], ["border-top-style", {
922
+ parse: borderTopStyle_export_parse,
923
+ isValid: borderTopStyle_export_isValid,
924
+ definition: borderTopStyle_export_definition
925
+ }], ["border-top-color", {
926
+ parse: borderTopColor_export_parse,
927
+ isValid: borderTopColor_export_isValid,
928
+ definition: borderTopColor_export_definition
929
+ }]]);
930
+ borderTop_export_definition = {
931
+ set(v) {
932
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
933
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
934
+ for (const [key] of borderTop_local_var_shorthandFor) {
935
+ this._setProperty(key, "");
936
+ }
937
+ this._setProperty("border", "");
938
+ this._setProperty("border-top", v);
939
+ } else {
940
+ this._shorthandSetter("border-top", v, borderTop_local_var_shorthandFor);
941
+ }
942
+ },
943
+ get() {
944
+ let val = this.getPropertyValue("border-top");
945
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
946
+ return val;
947
+ }
948
+ val = this._shorthandGetter("border-top", borderTop_local_var_shorthandFor);
949
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
950
+ return "";
951
+ }
952
+ return val;
953
+ },
954
+ enumerable: true,
955
+ configurable: true
956
+ };
957
+ var bottom_export_parse, bottom_export_isValid, bottom_export_definition;
958
+ bottom_export_parse = function parse(v) {
959
+ const dim = external_dependency_parsers_0.parseMeasurement(v);
960
+ if (dim) {
961
+ return dim;
962
+ }
963
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
964
+ };
965
+ bottom_export_isValid = function isValid(v) {
966
+ if (v === "") {
967
+ return true;
968
+ }
969
+ return typeof bottom_export_parse(v) === "string";
970
+ };
971
+ bottom_export_definition = {
972
+ set(v) {
973
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
974
+ this._setProperty("bottom", bottom_export_parse(v));
975
+ },
976
+ get() {
977
+ return this.getPropertyValue("bottom");
978
+ },
979
+ enumerable: true,
980
+ configurable: true
981
+ };
982
+ var clear_export_parse, clear_export_isValid, clear_export_definition;
983
+ clear_export_parse = function parse(v) {
984
+ const keywords = ["inline-start", "inline-end", "block-start", "block-end", "left", "right", "top", "bottom", "both-inline", "both-block", "both", "none"];
985
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
986
+ };
987
+ clear_export_isValid = function isValid(v) {
988
+ if (v === "") {
989
+ return true;
990
+ }
991
+ return typeof clear_export_parse(v) === "string";
992
+ };
993
+ clear_export_definition = {
994
+ set(v) {
995
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
996
+ this._setProperty("clear", clear_export_parse(v));
997
+ },
998
+ get() {
999
+ return this.getPropertyValue("clear");
1000
+ },
1001
+ enumerable: true,
1002
+ configurable: true
1003
+ };
1004
+ var clip_export_parse, clip_export_isValid, clip_export_definition;
1005
+ // deprecated
1006
+ // @see https://drafts.fxtf.org/css-masking/#clip-property
1007
+
1008
+ clip_export_parse = function parse(v) {
1009
+ if (v === "") {
1010
+ return v;
1011
+ }
1012
+ const val = external_dependency_parsers_0.parseKeyword(v, ["auto"]);
1013
+ if (val) {
1014
+ return val;
1015
+ }
1016
+ // parse legacy <shape>
1017
+ v = v.toLowerCase();
1018
+ const matches = v.match(/^rect\(\s*(.*)\s*\)$/);
1019
+ if (!matches) {
1020
+ return;
1021
+ }
1022
+ const parts = matches[1].split(/\s*,\s*/);
1023
+ if (parts.length !== 4) {
1024
+ return;
1025
+ }
1026
+ const valid = parts.every(function (part, index) {
1027
+ const measurement = external_dependency_parsers_0.parseMeasurement(part.trim());
1028
+ parts[index] = measurement;
1029
+ return typeof measurement === "string";
1030
+ });
1031
+ if (!valid) {
1032
+ return;
1033
+ }
1034
+ return `rect(${parts.join(", ")})`;
1035
+ };
1036
+ clip_export_isValid = function isValid(v) {
1037
+ if (v === "") {
1038
+ return true;
1039
+ }
1040
+ return typeof clip_export_parse(v) === "string";
1041
+ };
1042
+ clip_export_definition = {
1043
+ set(v) {
1044
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1045
+ this._setProperty("clip", clip_export_parse(v));
1046
+ },
1047
+ get() {
1048
+ return this.getPropertyValue("clip");
1049
+ },
1050
+ enumerable: true,
1051
+ configurable: true
1052
+ };
1053
+ var color_export_parse, color_export_isValid, color_export_definition;
1054
+ color_export_parse = function parse(v) {
1055
+ const val = external_dependency_parsers_0.parseColor(v);
1056
+ if (val) {
1057
+ return val;
1058
+ }
1059
+ return external_dependency_parsers_0.parseKeyword(v);
1060
+ };
1061
+ color_export_isValid = function isValid(v) {
1062
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
1063
+ return true;
1064
+ }
1065
+ return external_dependency_parsers_0.isValidColor(v);
1066
+ };
1067
+ color_export_definition = {
1068
+ set(v) {
1069
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1070
+ this._setProperty("color", color_export_parse(v));
1071
+ },
1072
+ get() {
1073
+ return this.getPropertyValue("color");
1074
+ },
1075
+ enumerable: true,
1076
+ configurable: true
1077
+ };
1078
+ var flexGrow_export_parse, flexGrow_export_isValid, flexGrow_export_definition;
1079
+ flexGrow_export_parse = function parse(v) {
1080
+ return external_dependency_parsers_0.parseNumber(v, true);
1081
+ };
1082
+ flexGrow_export_isValid = function isValid(v) {
1083
+ return typeof flexGrow_export_parse(v) === "string";
1084
+ };
1085
+ flexGrow_export_definition = {
1086
+ set(v) {
1087
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1088
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1089
+ this._setProperty("flex", "");
1090
+ this._setProperty("flex-grow", v);
1091
+ } else {
1092
+ this._setProperty("flex-grow", flexGrow_export_parse(v));
1093
+ }
1094
+ },
1095
+ get() {
1096
+ return this.getPropertyValue("flex-grow");
1097
+ },
1098
+ enumerable: true,
1099
+ configurable: true
1100
+ };
1101
+ var flexShrink_export_parse, flexShrink_export_isValid, flexShrink_export_definition;
1102
+ flexShrink_export_parse = function parse(v) {
1103
+ return external_dependency_parsers_0.parseNumber(v, true);
1104
+ };
1105
+ flexShrink_export_isValid = function isValid(v) {
1106
+ return typeof flexShrink_export_parse(v) === "string";
1107
+ };
1108
+ flexShrink_export_definition = {
1109
+ set(v) {
1110
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1111
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1112
+ this._setProperty("flex", "");
1113
+ this._setProperty("flex-shrink", v);
1114
+ } else {
1115
+ this._setProperty("flex-shrink", flexShrink_export_parse(v));
1116
+ }
1117
+ },
1118
+ get() {
1119
+ return this.getPropertyValue("flex-shrink");
1120
+ },
1121
+ enumerable: true,
1122
+ configurable: true
1123
+ };
1124
+ var flexBasis_export_parse, flexBasis_export_isValid, flexBasis_export_definition;
1125
+ flexBasis_export_parse = function parse(v) {
1126
+ const val = external_dependency_parsers_0.parseMeasurement(v);
1127
+ if (val) {
1128
+ return val;
1129
+ }
1130
+ const keywords = ["content", "auto", "min-content", "max-content"];
1131
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
1132
+ };
1133
+ flexBasis_export_isValid = function isValid(v) {
1134
+ return typeof flexBasis_export_parse(v) === "string";
1135
+ };
1136
+ flexBasis_export_definition = {
1137
+ set(v) {
1138
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1139
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1140
+ this._setProperty("flex", "");
1141
+ this._setProperty("flex-basis", v);
1142
+ } else {
1143
+ this._setProperty("flex-basis", flexBasis_export_parse(v));
1144
+ }
1145
+ },
1146
+ get() {
1147
+ return this.getPropertyValue("flex-basis");
1148
+ },
1149
+ enumerable: true,
1150
+ configurable: true
1151
+ };
1152
+ var flex_export_parse, flex_export_isValid, flex_export_definition;
1153
+ const flex_local_var_shorthandFor = new Map([["flex-grow", {
1154
+ parse: flexGrow_export_parse,
1155
+ isValid: flexGrow_export_isValid,
1156
+ definition: flexGrow_export_definition
1157
+ }], ["flex-shrink", {
1158
+ parse: flexShrink_export_parse,
1159
+ isValid: flexShrink_export_isValid,
1160
+ definition: flexShrink_export_definition
1161
+ }], ["flex-basis", {
1162
+ parse: flexBasis_export_parse,
1163
+ isValid: flexBasis_export_isValid,
1164
+ definition: flexBasis_export_definition
1165
+ }]]);
1166
+ flex_export_parse = function parse(v) {
1167
+ const key = external_dependency_parsers_0.parseKeyword(v, ["auto", "none"]);
1168
+ if (key) {
1169
+ if (key === "auto") {
1170
+ return "1 1 auto";
1171
+ }
1172
+ if (key === "none") {
1173
+ return "0 0 auto";
1174
+ }
1175
+ if (key === "initial") {
1176
+ return "0 1 auto";
1177
+ }
1178
+ return;
1179
+ }
1180
+ const obj = external_dependency_parsers_0.parseShorthand(v, flex_local_var_shorthandFor);
1181
+ if (obj) {
1182
+ const flex = {
1183
+ "flex-grow": "1",
1184
+ "flex-shrink": "1",
1185
+ "flex-basis": "0%"
1186
+ };
1187
+ const items = Object.entries(obj);
1188
+ for (const [property, value] of items) {
1189
+ flex[property] = value;
1190
+ }
1191
+ return [...Object.values(flex)].join(" ");
1192
+ }
1193
+ };
1194
+ flex_export_isValid = function isValid(v) {
1195
+ if (v === "") {
1196
+ return true;
1197
+ }
1198
+ return typeof flex_export_parse(v) === "string";
1199
+ };
1200
+ flex_export_definition = {
1201
+ set(v) {
1202
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1203
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1204
+ this._shorthandSetter("flex", "", flex_local_var_shorthandFor);
1205
+ this._setProperty("flex", v);
1206
+ } else {
1207
+ this._shorthandSetter("flex", flex_export_parse(v), flex_local_var_shorthandFor);
1208
+ }
1209
+ },
1210
+ get() {
1211
+ let val = this.getPropertyValue("flex");
1212
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
1213
+ return val;
1214
+ }
1215
+ val = this._shorthandGetter("flex", flex_local_var_shorthandFor);
1216
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
1217
+ return "";
1218
+ }
1219
+ return val;
1220
+ },
1221
+ enumerable: true,
1222
+ configurable: true
1223
+ };
1224
+ var float_export_parse, float_export_isValid, float_export_definition;
1225
+ float_export_parse = function parse(v) {
1226
+ const keywords = ["left", "right", "none", "inline-start", "inline-end"];
1227
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
1228
+ };
1229
+ float_export_isValid = function isValid(v) {
1230
+ if (v === "") {
1231
+ return true;
1232
+ }
1233
+ return typeof float_export_parse(v) === "string";
1234
+ };
1235
+ float_export_definition = {
1236
+ set(v) {
1237
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1238
+ this._setProperty("float", float_export_parse(v));
1239
+ },
1240
+ get() {
1241
+ return this.getPropertyValue("float");
1242
+ },
1243
+ enumerable: true,
1244
+ configurable: true
1245
+ };
1246
+ var floodColor_export_parse, floodColor_export_isValid, floodColor_export_definition;
1247
+ floodColor_export_parse = function parse(v) {
1248
+ const val = external_dependency_parsers_0.parseColor(v);
1249
+ if (val) {
1250
+ return val;
1251
+ }
1252
+ return external_dependency_parsers_0.parseKeyword(v);
1253
+ };
1254
+ floodColor_export_isValid = function isValid(v) {
1255
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
1256
+ return true;
1257
+ }
1258
+ return external_dependency_parsers_0.isValidColor(v);
1259
+ };
1260
+ floodColor_export_definition = {
1261
+ set(v) {
1262
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1263
+ this._setProperty("flood-color", floodColor_export_parse(v));
1264
+ },
1265
+ get() {
1266
+ return this.getPropertyValue("flood-color");
1267
+ },
1268
+ enumerable: true,
1269
+ configurable: true
1270
+ };
1271
+ var fontStyle_export_parse, fontStyle_export_isValid, fontStyle_export_definition;
1272
+ fontStyle_export_parse = function parse(v) {
1273
+ const keywords = ["normal", "italic", "oblique"];
1274
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
1275
+ };
1276
+ fontStyle_export_isValid = function isValid(v) {
1277
+ if (v === "") {
1278
+ return true;
1279
+ }
1280
+ return typeof fontStyle_export_parse(v) === "string";
1281
+ };
1282
+ fontStyle_export_definition = {
1283
+ set(v) {
1284
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1285
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1286
+ this._setProperty("font", "");
1287
+ this._setProperty("font-style", v);
1288
+ } else {
1289
+ this._setProperty("font-style", fontStyle_export_parse(v));
1290
+ }
1291
+ },
1292
+ get() {
1293
+ return this.getPropertyValue("font-style");
1294
+ },
1295
+ enumerable: true,
1296
+ configurable: true
1297
+ };
1298
+ var fontVariant_export_parse, fontVariant_export_isValid, fontVariant_export_definition;
1299
+ fontVariant_export_parse = function parse(v) {
1300
+ const num = external_dependency_parsers_0.parseNumber(v, true);
1301
+ if (num && parseFloat(num) <= 1000) {
1302
+ return num;
1303
+ }
1304
+ const keywords = ["normal", "none", "small-caps"];
1305
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
1306
+ };
1307
+ fontVariant_export_isValid = function isValid(v) {
1308
+ if (v === "") {
1309
+ return true;
1310
+ }
1311
+ return typeof fontVariant_export_parse(v) === "string";
1312
+ };
1313
+ fontVariant_export_definition = {
1314
+ set(v) {
1315
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1316
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1317
+ this._setProperty("font", "");
1318
+ this._setProperty("font-valiant", v);
1319
+ } else {
1320
+ this._setProperty("font-variant", fontVariant_export_parse(v));
1321
+ }
1322
+ },
1323
+ get() {
1324
+ return this.getPropertyValue("font-variant");
1325
+ },
1326
+ enumerable: true,
1327
+ configurable: true
1328
+ };
1329
+ var fontWeight_export_parse, fontWeight_export_isValid, fontWeight_export_definition;
1330
+ fontWeight_export_parse = function parse(v) {
1331
+ const num = external_dependency_parsers_0.parseNumber(v, true);
1332
+ if (num && parseFloat(num) <= 1000) {
1333
+ return num;
1334
+ }
1335
+ const keywords = ["normal", "bold", "lighter", "bolder"];
1336
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
1337
+ };
1338
+ fontWeight_export_isValid = function isValid(v) {
1339
+ if (v === "") {
1340
+ return true;
1341
+ }
1342
+ return typeof fontWeight_export_parse(v) === "string";
1343
+ };
1344
+ fontWeight_export_definition = {
1345
+ set(v) {
1346
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1347
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1348
+ this._setProperty("font", "");
1349
+ this._setProperty("font-weight", v);
1350
+ } else {
1351
+ this._setProperty("font-weight", fontWeight_export_parse(v));
1352
+ }
1353
+ },
1354
+ get() {
1355
+ return this.getPropertyValue("font-weight");
1356
+ },
1357
+ enumerable: true,
1358
+ configurable: true
1359
+ };
1360
+ var fontSize_export_parse, fontSize_export_isValid, fontSize_export_definition;
1361
+ fontSize_export_parse = function parse(v) {
1362
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1363
+ if (val) {
1364
+ return val;
1365
+ }
1366
+ const keywords = ["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "smaller", "larger"];
1367
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
1368
+ };
1369
+ fontSize_export_isValid = function isValid(v) {
1370
+ if (v === "") {
1371
+ return true;
1372
+ }
1373
+ return typeof fontSize_export_parse(v) === "string";
1374
+ };
1375
+ fontSize_export_definition = {
1376
+ set(v) {
1377
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1378
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1379
+ this._setProperty("font", "");
1380
+ this._setProperty("font-size", v);
1381
+ } else {
1382
+ this._setProperty("font-size", fontSize_export_parse(v));
1383
+ }
1384
+ },
1385
+ get() {
1386
+ return this.getPropertyValue("font-size");
1387
+ },
1388
+ enumerable: true,
1389
+ configurable: true
1390
+ };
1391
+ var lineHeight_export_parse, lineHeight_export_isValid, lineHeight_export_definition;
1392
+ lineHeight_export_parse = function parse(v) {
1393
+ const val = external_dependency_parsers_0.parseKeyword(v, ["normal"]);
1394
+ if (val) {
1395
+ return val;
1396
+ }
1397
+ const num = external_dependency_parsers_0.parseNumber(v, true);
1398
+ if (num) {
1399
+ return num;
1400
+ }
1401
+ return external_dependency_parsers_0.parseMeasurement(v, true);
1402
+ };
1403
+ lineHeight_export_isValid = function isValid(v) {
1404
+ if (v === "") {
1405
+ return true;
1406
+ }
1407
+ return typeof lineHeight_export_parse(v) === "string";
1408
+ };
1409
+ lineHeight_export_definition = {
1410
+ set(v) {
1411
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1412
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1413
+ this._setProperty("font", "");
1414
+ this._setProperty("line-height", v);
1415
+ } else {
1416
+ this._setProperty("line-height", lineHeight_export_parse(v));
1417
+ }
1418
+ },
1419
+ get() {
1420
+ return this.getPropertyValue("line-height");
1421
+ },
1422
+ enumerable: true,
1423
+ configurable: true
1424
+ };
1425
+ var fontFamily_export_parse, fontFamily_export_isValid, fontFamily_export_definition;
1426
+ fontFamily_export_parse = function parse(v) {
1427
+ if (v === "") {
1428
+ return v;
1429
+ }
1430
+ const keywords = ["serif", "sans-serif", "system-ui", "cursive", "fantasy", "monospace"];
1431
+ const val = external_dependency_parsers_0.splitValue(v, {
1432
+ delimiter: ","
1433
+ });
1434
+ const font = [];
1435
+ let valid = false;
1436
+ for (const i of val) {
1437
+ const str = external_dependency_parsers_0.parseString(i);
1438
+ if (str) {
1439
+ font.push(str);
1440
+ valid = true;
1441
+ continue;
1442
+ }
1443
+ const key = external_dependency_parsers_0.parseKeyword(i, keywords);
1444
+ if (key) {
1445
+ font.push(key);
1446
+ valid = true;
1447
+ continue;
1448
+ }
1449
+ // This implementation does not strictly follow the specification. The spec
1450
+ // does not require the first letter of the font-family to be capitalized.
1451
+ // Also, unquoted font-family names are not restricted to ASCII only.
1452
+ // However, in the real world, the first letter of the ASCII font-family
1453
+ // names are always capitalized, and unquoted font-family names do not
1454
+ // contain spaces, e.g. `Times`, and AFAIK, non-ASCII font-family names are
1455
+ // always quoted even without spaces, e.g. `"メイリオ"`.
1456
+ // Therefore, it is unlikely that this implementation will cause problems.
1457
+ // @see https://drafts.csswg.org/css-fonts/#font-family-prop
1458
+ if (/^\s*(?:[A-Z][A-Za-z\d\s-]+)\s*$/.test(i)) {
1459
+ font.push(i.trim());
1460
+ valid = true;
1461
+ continue;
1462
+ }
1463
+ if (!valid) {
1464
+ return;
1465
+ }
1466
+ }
1467
+ return font.join(", ");
1468
+ };
1469
+ fontFamily_export_isValid = function isValid(v) {
1470
+ if (v === "") {
1471
+ return true;
1472
+ }
1473
+ return typeof fontFamily_export_parse(v) === "string";
1474
+ };
1475
+ fontFamily_export_definition = {
1476
+ set(v) {
1477
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1478
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1479
+ this._setProperty("font", "");
1480
+ this._setProperty("font-family", v);
1481
+ } else {
1482
+ this._setProperty("font-family", fontFamily_export_parse(v));
1483
+ }
1484
+ },
1485
+ get() {
1486
+ return this.getPropertyValue("font-family");
1487
+ },
1488
+ enumerable: true,
1489
+ configurable: true
1490
+ };
1491
+ var font_export_parse, font_export_definition;
1492
+ const font_local_var_shorthandFor = new Map([["font-style", {
1493
+ parse: fontStyle_export_parse,
1494
+ isValid: fontStyle_export_isValid,
1495
+ definition: fontStyle_export_definition
1496
+ }], ["font-variant", {
1497
+ parse: fontVariant_export_parse,
1498
+ isValid: fontVariant_export_isValid,
1499
+ definition: fontVariant_export_definition
1500
+ }], ["font-weight", {
1501
+ parse: fontWeight_export_parse,
1502
+ isValid: fontWeight_export_isValid,
1503
+ definition: fontWeight_export_definition
1504
+ }], ["font-size", {
1505
+ parse: fontSize_export_parse,
1506
+ isValid: fontSize_export_isValid,
1507
+ definition: fontSize_export_definition
1508
+ }], ["line-height", {
1509
+ parse: lineHeight_export_parse,
1510
+ isValid: lineHeight_export_isValid,
1511
+ definition: lineHeight_export_definition
1512
+ }], ["font-family", {
1513
+ parse: fontFamily_export_parse,
1514
+ isValid: fontFamily_export_isValid,
1515
+ definition: fontFamily_export_definition
1516
+ }]]);
1517
+ font_export_parse = function parse(v) {
1518
+ const keywords = ["caption", "icon", "menu", "message-box", "small-caption", "status-bar"];
1519
+ const key = external_dependency_parsers_0.parseKeyword(v, keywords);
1520
+ if (key) {
1521
+ return key;
1522
+ }
1523
+ const [fontBlock, ...families] = external_dependency_parsers_0.splitValue(v, {
1524
+ delimiter: ","
1525
+ });
1526
+ let blockA, blockB;
1527
+ if (fontBlock.includes("/")) {
1528
+ [blockA, blockB] = external_dependency_parsers_0.splitValue(fontBlock, {
1529
+ delimiter: "/"
1530
+ });
1531
+ } else {
1532
+ blockA = fontBlock.trim();
1533
+ }
1534
+ const obj = external_dependency_parsers_0.parseShorthand(blockA, font_local_var_shorthandFor, true);
1535
+ if (!obj) {
1536
+ return;
1537
+ }
1538
+ const font = {};
1539
+ const fontFamilies = new Set();
1540
+ for (const [property, value] of Object.entries(obj)) {
1541
+ if (property === "font-family") {
1542
+ if (!blockB) {
1543
+ fontFamilies.add(value);
1544
+ }
1545
+ } else {
1546
+ font[property] = value;
1547
+ }
1548
+ }
1549
+ // blockB, if matched, includes line-height and first font-family
1550
+ if (blockB) {
1551
+ const [lineheight, family] = external_dependency_parsers_0.splitValue(blockB);
1552
+ if ({
1553
+ parse: lineHeight_export_parse,
1554
+ isValid: lineHeight_export_isValid,
1555
+ definition: lineHeight_export_definition
1556
+ }.isValid(lineheight)) {
1557
+ font["line-height"] = {
1558
+ parse: lineHeight_export_parse,
1559
+ isValid: lineHeight_export_isValid,
1560
+ definition: lineHeight_export_definition
1561
+ }.parse(lineheight);
1562
+ } else {
1563
+ return;
1564
+ }
1565
+ if ({
1566
+ parse: fontFamily_export_parse,
1567
+ isValid: fontFamily_export_isValid,
1568
+ definition: fontFamily_export_definition
1569
+ }.isValid(family)) {
1570
+ fontFamilies.add({
1571
+ parse: fontFamily_export_parse,
1572
+ isValid: fontFamily_export_isValid,
1573
+ definition: fontFamily_export_definition
1574
+ }.parse(family));
1575
+ } else {
1576
+ return;
1577
+ }
1578
+ }
1579
+ for (const family of families) {
1580
+ if ({
1581
+ parse: fontFamily_export_parse,
1582
+ isValid: fontFamily_export_isValid,
1583
+ definition: fontFamily_export_definition
1584
+ }.isValid(family)) {
1585
+ fontFamilies.add({
1586
+ parse: fontFamily_export_parse,
1587
+ isValid: fontFamily_export_isValid,
1588
+ definition: fontFamily_export_definition
1589
+ }.parse(family));
1590
+ } else {
1591
+ return;
1592
+ }
1593
+ }
1594
+ font["font-family"] = [...fontFamilies].join(", ");
1595
+ return font;
1596
+ };
1597
+ font_export_definition = {
1598
+ set(v) {
1599
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1600
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1601
+ for (const [key] of font_local_var_shorthandFor) {
1602
+ this._setProperty(key, "");
1603
+ }
1604
+ this._setProperty("font", v);
1605
+ } else {
1606
+ const obj = font_export_parse(v);
1607
+ if (!obj) {
1608
+ return;
1609
+ }
1610
+ const str = new Set();
1611
+ for (const [key] of font_local_var_shorthandFor) {
1612
+ const val = obj[key];
1613
+ if (typeof val === "string") {
1614
+ this._setProperty(key, val);
1615
+ if (val && !str.has(val)) {
1616
+ if (key === "line-height") {
1617
+ str.add(`/ ${val}`);
1618
+ } else {
1619
+ str.add(val);
1620
+ }
1621
+ }
1622
+ }
1623
+ }
1624
+ this._setProperty("font", [...str].join(" "));
1625
+ }
1626
+ },
1627
+ get() {
1628
+ const val = this.getPropertyValue("font");
1629
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
1630
+ return val;
1631
+ }
1632
+ const str = new Set();
1633
+ for (const [key] of font_local_var_shorthandFor) {
1634
+ const v = this.getPropertyValue(key);
1635
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1636
+ return "";
1637
+ }
1638
+ if (v && !str.has(v)) {
1639
+ if (key === "line-height") {
1640
+ str.add(`/ ${v}`);
1641
+ } else {
1642
+ str.add(`${v}`);
1643
+ }
1644
+ }
1645
+ }
1646
+ return [...str].join(" ");
1647
+ },
1648
+ enumerable: true,
1649
+ configurable: true
1650
+ };
1651
+ var height_export_parse, height_export_isValid, height_export_definition;
1652
+ height_export_parse = function parse(v) {
1653
+ const dim = external_dependency_parsers_0.parseMeasurement(v, true);
1654
+ if (dim) {
1655
+ return dim;
1656
+ }
1657
+ const keywords = ["auto", "min-content", "max-content", "fit-content"];
1658
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
1659
+ };
1660
+ height_export_isValid = function isValid(v) {
1661
+ if (v === "") {
1662
+ return true;
1663
+ }
1664
+ return typeof height_export_parse(v) === "string";
1665
+ };
1666
+ height_export_definition = {
1667
+ set(v) {
1668
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1669
+ this._setProperty("height", height_export_parse(v));
1670
+ },
1671
+ get() {
1672
+ return this.getPropertyValue("height");
1673
+ },
1674
+ enumerable: true,
1675
+ configurable: true
1676
+ };
1677
+ var left_export_parse, left_export_isValid, left_export_definition;
1678
+ left_export_parse = function parse(v) {
1679
+ const dim = external_dependency_parsers_0.parseMeasurement(v);
1680
+ if (dim) {
1681
+ return dim;
1682
+ }
1683
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
1684
+ };
1685
+ left_export_isValid = function isValid(v) {
1686
+ if (v === "") {
1687
+ return true;
1688
+ }
1689
+ return typeof left_export_parse(v) === "string";
1690
+ };
1691
+ left_export_definition = {
1692
+ set(v) {
1693
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1694
+ this._setProperty("left", left_export_parse(v));
1695
+ },
1696
+ get() {
1697
+ return this.getPropertyValue("left");
1698
+ },
1699
+ enumerable: true,
1700
+ configurable: true
1701
+ };
1702
+ var lightingColor_export_parse, lightingColor_export_isValid, lightingColor_export_definition;
1703
+ lightingColor_export_parse = function parse(v) {
1704
+ const val = external_dependency_parsers_0.parseColor(v);
1705
+ if (val) {
1706
+ return val;
1707
+ }
1708
+ return external_dependency_parsers_0.parseKeyword(v);
1709
+ };
1710
+ lightingColor_export_isValid = function isValid(v) {
1711
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
1712
+ return true;
1713
+ }
1714
+ return external_dependency_parsers_0.isValidColor(v);
1715
+ };
1716
+ lightingColor_export_definition = {
1717
+ set(v) {
1718
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1719
+ this._setProperty("lighting-color", lightingColor_export_parse(v));
1720
+ },
1721
+ get() {
1722
+ return this.getPropertyValue("lighting-color");
1723
+ },
1724
+ enumerable: true,
1725
+ configurable: true
1726
+ };
1727
+ var margin_export_parse, margin_export_isValid, margin_export_definition;
1728
+ const margin_local_var_positions = ["top", "right", "bottom", "left"];
1729
+ margin_export_parse = function parse(v) {
1730
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1731
+ if (val) {
1732
+ return val;
1733
+ }
1734
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
1735
+ };
1736
+ margin_export_isValid = function isValid(v) {
1737
+ if (v === "") {
1738
+ return true;
1739
+ }
1740
+ return typeof margin_export_parse(v) === "string";
1741
+ };
1742
+ margin_export_definition = {
1743
+ set(v) {
1744
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1745
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1746
+ this._implicitSetter("margin", "", "", margin_export_isValid, margin_export_parse, margin_local_var_positions);
1747
+ this._setProperty("margin", v);
1748
+ } else {
1749
+ this._implicitSetter("margin", "", v, margin_export_isValid, margin_export_parse, margin_local_var_positions);
1750
+ }
1751
+ },
1752
+ get() {
1753
+ const val = this._implicitGetter("margin", margin_local_var_positions);
1754
+ if (val === "") {
1755
+ return this.getPropertyValue("margin");
1756
+ }
1757
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
1758
+ return "";
1759
+ }
1760
+ return val;
1761
+ },
1762
+ enumerable: true,
1763
+ configurable: true
1764
+ };
1765
+ var marginBottom_export_parse, marginBottom_export_isValid, marginBottom_export_definition;
1766
+ marginBottom_export_parse = function parse(v) {
1767
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1768
+ if (val) {
1769
+ return val;
1770
+ }
1771
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
1772
+ };
1773
+ marginBottom_export_isValid = function isValid(v) {
1774
+ if (v === "") {
1775
+ return true;
1776
+ }
1777
+ return typeof marginBottom_export_parse(v) === "string";
1778
+ };
1779
+ marginBottom_export_definition = {
1780
+ set(v) {
1781
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1782
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1783
+ this._setProperty("margin", "");
1784
+ this._setProperty("margin-bottom", v);
1785
+ } else {
1786
+ this._subImplicitSetter("margin", "bottom", v, marginBottom_export_isValid, marginBottom_export_parse, ["top", "right", "bottom", "left"]);
1787
+ }
1788
+ },
1789
+ get() {
1790
+ return this.getPropertyValue("margin-bottom");
1791
+ },
1792
+ enumerable: true,
1793
+ configurable: true
1794
+ };
1795
+ var marginLeft_export_parse, marginLeft_export_isValid, marginLeft_export_definition;
1796
+ marginLeft_export_parse = function parse(v) {
1797
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1798
+ if (val) {
1799
+ return val;
1800
+ }
1801
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
1802
+ };
1803
+ marginLeft_export_isValid = function isValid(v) {
1804
+ if (v === "") {
1805
+ return true;
1806
+ }
1807
+ return typeof marginLeft_export_parse(v) === "string";
1808
+ };
1809
+ marginLeft_export_definition = {
1810
+ set(v) {
1811
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1812
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1813
+ this._setProperty("margin", "");
1814
+ this._setProperty("margin-left", v);
1815
+ } else {
1816
+ this._subImplicitSetter("margin", "left", v, marginLeft_export_isValid, marginLeft_export_parse, ["top", "right", "bottom", "left"]);
1817
+ }
1818
+ },
1819
+ get() {
1820
+ return this.getPropertyValue("margin-left");
1821
+ },
1822
+ enumerable: true,
1823
+ configurable: true
1824
+ };
1825
+ var marginRight_export_parse, marginRight_export_isValid, marginRight_export_definition;
1826
+ marginRight_export_parse = function parse(v) {
1827
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1828
+ if (val) {
1829
+ return val;
1830
+ }
1831
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
1832
+ };
1833
+ marginRight_export_isValid = function isValid(v) {
1834
+ if (v === "") {
1835
+ return true;
1836
+ }
1837
+ return typeof marginRight_export_parse(v) === "string";
1838
+ };
1839
+ marginRight_export_definition = {
1840
+ set(v) {
1841
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1842
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1843
+ this._setProperty("margin", "");
1844
+ this._setProperty("margin-right", v);
1845
+ } else {
1846
+ this._subImplicitSetter("margin", "right", v, marginRight_export_isValid, marginRight_export_parse, ["top", "right", "bottom", "left"]);
1847
+ }
1848
+ },
1849
+ get() {
1850
+ return this.getPropertyValue("margin-right");
1851
+ },
1852
+ enumerable: true,
1853
+ configurable: true
1854
+ };
1855
+ var marginTop_export_parse, marginTop_export_isValid, marginTop_export_definition;
1856
+ marginTop_export_parse = function parse(v) {
1857
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1858
+ if (val) {
1859
+ return val;
1860
+ }
1861
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
1862
+ };
1863
+ marginTop_export_isValid = function isValid(v) {
1864
+ if (v === "") {
1865
+ return true;
1866
+ }
1867
+ return typeof marginTop_export_parse(v) === "string";
1868
+ };
1869
+ marginTop_export_definition = {
1870
+ set(v) {
1871
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1872
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1873
+ this._setProperty("margin", "");
1874
+ this._setProperty("margin-top", v);
1875
+ } else {
1876
+ this._subImplicitSetter("margin", "top", v, marginTop_export_isValid, marginTop_export_parse, ["top", "right", "bottom", "left"]);
1877
+ }
1878
+ },
1879
+ get() {
1880
+ return this.getPropertyValue("margin-top");
1881
+ },
1882
+ enumerable: true,
1883
+ configurable: true
1884
+ };
1885
+ var opacity_export_parse, opacity_export_isValid, opacity_export_definition;
1886
+ opacity_export_parse = function parse(v) {
1887
+ let num = external_dependency_parsers_0.parseNumber(v);
1888
+ if (num) {
1889
+ num = parseFloat(num);
1890
+ if (num < 0) {
1891
+ return "0";
1892
+ } else if (num > 1) {
1893
+ return "1";
1894
+ }
1895
+ return `${num}`;
1896
+ }
1897
+ let pct = external_dependency_parsers_0.parsePercent(v);
1898
+ if (pct) {
1899
+ pct = parseFloat(pct);
1900
+ if (pct < 0) {
1901
+ return "0%";
1902
+ } else if (pct > 100) {
1903
+ return "100%";
1904
+ }
1905
+ return `${pct}%`;
1906
+ }
1907
+ return external_dependency_parsers_0.parseKeyword(v);
1908
+ };
1909
+ opacity_export_isValid = function isValid(v) {
1910
+ if (v === "") {
1911
+ return true;
1912
+ }
1913
+ return typeof opacity_export_parse(v) === "string";
1914
+ };
1915
+ opacity_export_definition = {
1916
+ set(v) {
1917
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1918
+ this._setProperty("opacity", opacity_export_parse(v));
1919
+ },
1920
+ get() {
1921
+ return this.getPropertyValue("opacity");
1922
+ },
1923
+ enumerable: true,
1924
+ configurable: true
1925
+ };
1926
+ var outlineColor_export_parse, outlineColor_export_isValid, outlineColor_export_definition;
1927
+ outlineColor_export_parse = function parse(v) {
1928
+ const val = external_dependency_parsers_0.parseColor(v);
1929
+ if (val) {
1930
+ return val;
1931
+ }
1932
+ return external_dependency_parsers_0.parseKeyword(v);
1933
+ };
1934
+ outlineColor_export_isValid = function isValid(v) {
1935
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
1936
+ return true;
1937
+ }
1938
+ return external_dependency_parsers_0.isValidColor(v);
1939
+ };
1940
+ outlineColor_export_definition = {
1941
+ set(v) {
1942
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1943
+ this._setProperty("outline-color", outlineColor_export_parse(v));
1944
+ },
1945
+ get() {
1946
+ return this.getPropertyValue("outline-color");
1947
+ },
1948
+ enumerable: true,
1949
+ configurable: true
1950
+ };
1951
+ var padding_export_parse, padding_export_isValid, padding_export_definition;
1952
+ const padding_local_var_positions = ["top", "right", "bottom", "left"];
1953
+ padding_export_parse = function parse(v) {
1954
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1955
+ if (val) {
1956
+ return val;
1957
+ }
1958
+ return external_dependency_parsers_0.parseKeyword(v);
1959
+ };
1960
+ padding_export_isValid = function isValid(v) {
1961
+ if (v === "") {
1962
+ return true;
1963
+ }
1964
+ return typeof padding_export_parse(v) === "string";
1965
+ };
1966
+ padding_export_definition = {
1967
+ set(v) {
1968
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
1969
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
1970
+ this._implicitSetter("padding", "", "", padding_export_isValid, padding_export_parse, padding_local_var_positions);
1971
+ this._setProperty("padding", v);
1972
+ } else {
1973
+ this._implicitSetter("padding", "", v, padding_export_isValid, padding_export_parse, padding_local_var_positions);
1974
+ }
1975
+ },
1976
+ get() {
1977
+ const val = this._implicitGetter("padding", padding_local_var_positions);
1978
+ if (val === "") {
1979
+ return this.getPropertyValue("padding");
1980
+ }
1981
+ if (external_dependency_parsers_0.hasVarFunc(val)) {
1982
+ return "";
1983
+ }
1984
+ return val;
1985
+ },
1986
+ enumerable: true,
1987
+ configurable: true
1988
+ };
1989
+ var paddingBottom_export_parse, paddingBottom_export_isValid, paddingBottom_export_definition;
1990
+ paddingBottom_export_parse = function parse(v) {
1991
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
1992
+ if (val) {
1993
+ return val;
1994
+ }
1995
+ return external_dependency_parsers_0.parseKeyword(v);
1996
+ };
1997
+ paddingBottom_export_isValid = function isValid(v) {
1998
+ if (v === "") {
1999
+ return true;
2000
+ }
2001
+ return typeof paddingBottom_export_parse(v) === "string";
2002
+ };
2003
+ paddingBottom_export_definition = {
2004
+ set(v) {
2005
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2006
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
2007
+ this._setProperty("padding", "");
2008
+ this._setProperty("padding-bottom", v);
2009
+ } else {
2010
+ this._subImplicitSetter("padding", "bottom", v, paddingBottom_export_isValid, paddingBottom_export_parse, ["top", "right", "bottom", "left"]);
2011
+ }
2012
+ },
2013
+ get() {
2014
+ return this.getPropertyValue("padding-bottom");
2015
+ },
2016
+ enumerable: true,
2017
+ configurable: true
2018
+ };
2019
+ var paddingLeft_export_parse, paddingLeft_export_isValid, paddingLeft_export_definition;
2020
+ paddingLeft_export_parse = function parse(v) {
2021
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
2022
+ if (val) {
2023
+ return val;
2024
+ }
2025
+ return external_dependency_parsers_0.parseKeyword(v);
2026
+ };
2027
+ paddingLeft_export_isValid = function isValid(v) {
2028
+ if (v === "") {
2029
+ return true;
2030
+ }
2031
+ return typeof paddingLeft_export_parse(v) === "string";
2032
+ };
2033
+ paddingLeft_export_definition = {
2034
+ set(v) {
2035
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2036
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
2037
+ this._setProperty("padding", "");
2038
+ this._setProperty("padding-left", v);
2039
+ } else {
2040
+ this._subImplicitSetter("padding", "left", v, paddingLeft_export_isValid, paddingLeft_export_parse, ["top", "right", "bottom", "left"]);
2041
+ }
2042
+ },
2043
+ get() {
2044
+ return this.getPropertyValue("padding-left");
2045
+ },
2046
+ enumerable: true,
2047
+ configurable: true
2048
+ };
2049
+ var paddingRight_export_parse, paddingRight_export_isValid, paddingRight_export_definition;
2050
+ paddingRight_export_parse = function parse(v) {
2051
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
2052
+ if (val) {
2053
+ return val;
2054
+ }
2055
+ return external_dependency_parsers_0.parseKeyword(v);
2056
+ };
2057
+ paddingRight_export_isValid = function isValid(v) {
2058
+ if (v === "") {
2059
+ return true;
2060
+ }
2061
+ return typeof paddingRight_export_parse(v) === "string";
2062
+ };
2063
+ paddingRight_export_definition = {
2064
+ set(v) {
2065
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2066
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
2067
+ this._setProperty("padding", "");
2068
+ this._setProperty("padding-right", v);
2069
+ } else {
2070
+ this._subImplicitSetter("padding", "right", v, paddingRight_export_isValid, paddingRight_export_parse, ["top", "right", "bottom", "left"]);
2071
+ }
2072
+ },
2073
+ get() {
2074
+ return this.getPropertyValue("padding-right");
2075
+ },
2076
+ enumerable: true,
2077
+ configurable: true
2078
+ };
2079
+ var paddingTop_export_parse, paddingTop_export_isValid, paddingTop_export_definition;
2080
+ paddingTop_export_parse = function parse(v) {
2081
+ const val = external_dependency_parsers_0.parseMeasurement(v, true);
2082
+ if (val) {
2083
+ return val;
2084
+ }
2085
+ return external_dependency_parsers_0.parseKeyword(v);
2086
+ };
2087
+ paddingTop_export_isValid = function isValid(v) {
2088
+ if (v === "") {
2089
+ return true;
2090
+ }
2091
+ return typeof paddingTop_export_parse(v) === "string";
2092
+ };
2093
+ paddingTop_export_definition = {
2094
+ set(v) {
2095
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2096
+ if (external_dependency_parsers_0.hasVarFunc(v)) {
2097
+ this._setProperty("padding", "");
2098
+ this._setProperty("padding-top", v);
2099
+ } else {
2100
+ this._subImplicitSetter("padding", "top", v, paddingTop_export_isValid, paddingTop_export_parse, ["top", "right", "bottom", "left"]);
2101
+ }
2102
+ },
2103
+ get() {
2104
+ return this.getPropertyValue("padding-top");
2105
+ },
2106
+ enumerable: true,
2107
+ configurable: true
2108
+ };
2109
+ var right_export_parse, right_export_isValid, right_export_definition;
2110
+ right_export_parse = function parse(v) {
2111
+ const dim = external_dependency_parsers_0.parseMeasurement(v);
2112
+ if (dim) {
2113
+ return dim;
2114
+ }
2115
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
2116
+ };
2117
+ right_export_isValid = function isValid(v) {
2118
+ if (v === "") {
2119
+ return true;
2120
+ }
2121
+ return typeof right_export_parse(v) === "string";
2122
+ };
2123
+ right_export_definition = {
2124
+ set(v) {
2125
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2126
+ this._setProperty("right", right_export_parse(v));
2127
+ },
2128
+ get() {
2129
+ return this.getPropertyValue("right");
2130
+ },
2131
+ enumerable: true,
2132
+ configurable: true
2133
+ };
2134
+ var stopColor_export_parse, stopColor_export_isValid, stopColor_export_definition;
2135
+ stopColor_export_parse = function parse(v) {
2136
+ const val = external_dependency_parsers_0.parseColor(v);
2137
+ if (val) {
2138
+ return val;
2139
+ }
2140
+ return external_dependency_parsers_0.parseKeyword(v);
2141
+ };
2142
+ stopColor_export_isValid = function isValid(v) {
2143
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2144
+ return true;
2145
+ }
2146
+ return external_dependency_parsers_0.isValidColor(v);
2147
+ };
2148
+ stopColor_export_definition = {
2149
+ set(v) {
2150
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2151
+ this._setProperty("stop-color", stopColor_export_parse(v));
2152
+ },
2153
+ get() {
2154
+ return this.getPropertyValue("stop-color");
2155
+ },
2156
+ enumerable: true,
2157
+ configurable: true
2158
+ };
2159
+ var top_export_parse, top_export_isValid, top_export_definition;
2160
+ top_export_parse = function parse(v) {
2161
+ const dim = external_dependency_parsers_0.parseMeasurement(v);
2162
+ if (dim) {
2163
+ return dim;
2164
+ }
2165
+ return external_dependency_parsers_0.parseKeyword(v, ["auto"]);
2166
+ };
2167
+ top_export_isValid = function isValid(v) {
2168
+ if (v === "") {
2169
+ return true;
2170
+ }
2171
+ return typeof top_export_parse(v) === "string";
2172
+ };
2173
+ top_export_definition = {
2174
+ set(v) {
2175
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2176
+ this._setProperty("top", top_export_parse(v));
2177
+ },
2178
+ get() {
2179
+ return this.getPropertyValue("top");
2180
+ },
2181
+ enumerable: true,
2182
+ configurable: true
2183
+ };
2184
+ var webkitBorderAfterColor_export_parse, webkitBorderAfterColor_export_isValid, webkitBorderAfterColor_export_definition;
2185
+ webkitBorderAfterColor_export_parse = function parse(v) {
2186
+ const val = external_dependency_parsers_0.parseColor(v);
2187
+ if (val) {
2188
+ return val;
2189
+ }
2190
+ return external_dependency_parsers_0.parseKeyword(v);
2191
+ };
2192
+ webkitBorderAfterColor_export_isValid = function isValid(v) {
2193
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2194
+ return true;
2195
+ }
2196
+ return external_dependency_parsers_0.isValidColor(v);
2197
+ };
2198
+ webkitBorderAfterColor_export_definition = {
2199
+ set(v) {
2200
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2201
+ this._setProperty("-webkit-border-after-color", webkitBorderAfterColor_export_parse(v));
2202
+ },
2203
+ get() {
2204
+ return this.getPropertyValue("-webkit-border-after-color");
2205
+ },
2206
+ enumerable: true,
2207
+ configurable: true
2208
+ };
2209
+ var webkitBorderBeforeColor_export_parse, webkitBorderBeforeColor_export_isValid, webkitBorderBeforeColor_export_definition;
2210
+ webkitBorderBeforeColor_export_parse = function parse(v) {
2211
+ const val = external_dependency_parsers_0.parseColor(v);
2212
+ if (val) {
2213
+ return val;
2214
+ }
2215
+ return external_dependency_parsers_0.parseKeyword(v);
2216
+ };
2217
+ webkitBorderBeforeColor_export_isValid = function isValid(v) {
2218
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2219
+ return true;
2220
+ }
2221
+ return external_dependency_parsers_0.isValidColor(v);
2222
+ };
2223
+ webkitBorderBeforeColor_export_definition = {
2224
+ set(v) {
2225
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2226
+ this._setProperty("-webkit-border-before-color", webkitBorderBeforeColor_export_parse(v));
2227
+ },
2228
+ get() {
2229
+ return this.getPropertyValue("-webkit-border-before-color");
2230
+ },
2231
+ enumerable: true,
2232
+ configurable: true
2233
+ };
2234
+ var webkitBorderEndColor_export_parse, webkitBorderEndColor_export_isValid, webkitBorderEndColor_export_definition;
2235
+ webkitBorderEndColor_export_parse = function parse(v) {
2236
+ const val = external_dependency_parsers_0.parseColor(v);
2237
+ if (val) {
2238
+ return val;
2239
+ }
2240
+ return external_dependency_parsers_0.parseKeyword(v);
2241
+ };
2242
+ webkitBorderEndColor_export_isValid = function isValid(v) {
2243
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2244
+ return true;
2245
+ }
2246
+ return external_dependency_parsers_0.isValidColor(v);
2247
+ };
2248
+ webkitBorderEndColor_export_definition = {
2249
+ set(v) {
2250
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2251
+ this._setProperty("-webkit-border-end-color", webkitBorderEndColor_export_parse(v));
2252
+ },
2253
+ get() {
2254
+ return this.getPropertyValue("-webkit-border-end-color");
2255
+ },
2256
+ enumerable: true,
2257
+ configurable: true
2258
+ };
2259
+ var webkitBorderStartColor_export_parse, webkitBorderStartColor_export_isValid, webkitBorderStartColor_export_definition;
2260
+ webkitBorderStartColor_export_parse = function parse(v) {
2261
+ const val = external_dependency_parsers_0.parseColor(v);
2262
+ if (val) {
2263
+ return val;
2264
+ }
2265
+ return external_dependency_parsers_0.parseKeyword(v);
2266
+ };
2267
+ webkitBorderStartColor_export_isValid = function isValid(v) {
2268
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2269
+ return true;
2270
+ }
2271
+ return external_dependency_parsers_0.isValidColor(v);
2272
+ };
2273
+ webkitBorderStartColor_export_definition = {
2274
+ set(v) {
2275
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2276
+ this._setProperty("-webkit-border-start-color", webkitBorderStartColor_export_parse(v));
2277
+ },
2278
+ get() {
2279
+ return this.getPropertyValue("-webkit-border-start-color");
2280
+ },
2281
+ enumerable: true,
2282
+ configurable: true
2283
+ };
2284
+ var webkitColumnRuleColor_export_parse, webkitColumnRuleColor_export_isValid, webkitColumnRuleColor_export_definition;
2285
+ webkitColumnRuleColor_export_parse = function parse(v) {
2286
+ const val = external_dependency_parsers_0.parseColor(v);
2287
+ if (val) {
2288
+ return val;
2289
+ }
2290
+ return external_dependency_parsers_0.parseKeyword(v);
2291
+ };
2292
+ webkitColumnRuleColor_export_isValid = function isValid(v) {
2293
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2294
+ return true;
2295
+ }
2296
+ return external_dependency_parsers_0.isValidColor(v);
2297
+ };
2298
+ webkitColumnRuleColor_export_definition = {
2299
+ set(v) {
2300
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2301
+ this._setProperty("-webkit-column-rule-color", webkitColumnRuleColor_export_parse(v));
2302
+ },
2303
+ get() {
2304
+ return this.getPropertyValue("-webkit-column-rule-color");
2305
+ },
2306
+ enumerable: true,
2307
+ configurable: true
2308
+ };
2309
+ var webkitTapHighlightColor_export_parse, webkitTapHighlightColor_export_isValid, webkitTapHighlightColor_export_definition;
2310
+ webkitTapHighlightColor_export_parse = function parse(v) {
2311
+ const val = external_dependency_parsers_0.parseColor(v);
2312
+ if (val) {
2313
+ return val;
2314
+ }
2315
+ return external_dependency_parsers_0.parseKeyword(v);
2316
+ };
2317
+ webkitTapHighlightColor_export_isValid = function isValid(v) {
2318
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2319
+ return true;
2320
+ }
2321
+ return external_dependency_parsers_0.isValidColor(v);
2322
+ };
2323
+ webkitTapHighlightColor_export_definition = {
2324
+ set(v) {
2325
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2326
+ this._setProperty("-webkit-tap-highlight-color", webkitTapHighlightColor_export_parse(v));
2327
+ },
2328
+ get() {
2329
+ return this.getPropertyValue("-webkit-tap-highlight-color");
2330
+ },
2331
+ enumerable: true,
2332
+ configurable: true
2333
+ };
2334
+ var webkitTextEmphasisColor_export_parse, webkitTextEmphasisColor_export_isValid, webkitTextEmphasisColor_export_definition;
2335
+ webkitTextEmphasisColor_export_parse = function parse(v) {
2336
+ const val = external_dependency_parsers_0.parseColor(v);
2337
+ if (val) {
2338
+ return val;
2339
+ }
2340
+ return external_dependency_parsers_0.parseKeyword(v);
2341
+ };
2342
+ webkitTextEmphasisColor_export_isValid = function isValid(v) {
2343
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2344
+ return true;
2345
+ }
2346
+ return external_dependency_parsers_0.isValidColor(v);
2347
+ };
2348
+ webkitTextEmphasisColor_export_definition = {
2349
+ set(v) {
2350
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2351
+ this._setProperty("-webkit-text-emphasis-color", webkitTextEmphasisColor_export_parse(v));
2352
+ },
2353
+ get() {
2354
+ return this.getPropertyValue("-webkit-text-emphasis-color");
2355
+ },
2356
+ enumerable: true,
2357
+ configurable: true
2358
+ };
2359
+ var webkitTextFillColor_export_parse, webkitTextFillColor_export_isValid, webkitTextFillColor_export_definition;
2360
+ webkitTextFillColor_export_parse = function parse(v) {
2361
+ const val = external_dependency_parsers_0.parseColor(v);
2362
+ if (val) {
2363
+ return val;
2364
+ }
2365
+ return external_dependency_parsers_0.parseKeyword(v);
2366
+ };
2367
+ webkitTextFillColor_export_isValid = function isValid(v) {
2368
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2369
+ return true;
2370
+ }
2371
+ return external_dependency_parsers_0.isValidColor(v);
2372
+ };
2373
+ webkitTextFillColor_export_definition = {
2374
+ set(v) {
2375
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2376
+ this._setProperty("-webkit-text-fill-color", webkitTextFillColor_export_parse(v));
2377
+ },
2378
+ get() {
2379
+ return this.getPropertyValue("-webkit-text-fill-color");
2380
+ },
2381
+ enumerable: true,
2382
+ configurable: true
2383
+ };
2384
+ var webkitTextStrokeColor_export_parse, webkitTextStrokeColor_export_isValid, webkitTextStrokeColor_export_definition;
2385
+ webkitTextStrokeColor_export_parse = function parse(v) {
2386
+ const val = external_dependency_parsers_0.parseColor(v);
2387
+ if (val) {
2388
+ return val;
2389
+ }
2390
+ return external_dependency_parsers_0.parseKeyword(v);
2391
+ };
2392
+ webkitTextStrokeColor_export_isValid = function isValid(v) {
2393
+ if (v === "" || typeof external_dependency_parsers_0.parseKeyword(v) === "string") {
2394
+ return true;
2395
+ }
2396
+ return external_dependency_parsers_0.isValidColor(v);
2397
+ };
2398
+ webkitTextStrokeColor_export_definition = {
2399
+ set(v) {
2400
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2401
+ this._setProperty("-webkit-text-stroke-color", webkitTextStrokeColor_export_parse(v));
2402
+ },
2403
+ get() {
2404
+ return this.getPropertyValue("-webkit-text-stroke-color");
2405
+ },
2406
+ enumerable: true,
2407
+ configurable: true
2408
+ };
2409
+ var width_export_parse, width_export_isValid, width_export_definition;
2410
+ width_export_parse = function parse(v) {
2411
+ const dim = external_dependency_parsers_0.parseMeasurement(v, true);
2412
+ if (dim) {
2413
+ return dim;
2414
+ }
2415
+ const keywords = ["auto", "min-content", "max-content", "fit-content"];
2416
+ return external_dependency_parsers_0.parseKeyword(v, keywords);
2417
+ };
2418
+ width_export_isValid = function isValid(v) {
2419
+ if (v === "") {
2420
+ return true;
2421
+ }
2422
+ return typeof width_export_parse(v) === "string";
2423
+ };
2424
+ width_export_definition = {
2425
+ set(v) {
2426
+ v = external_dependency_parsers_0.prepareValue(v, this._global);
2427
+ this._setProperty("width", width_export_parse(v));
2428
+ },
2429
+ get() {
2430
+ return this.getPropertyValue("width");
2431
+ },
2432
+ enumerable: true,
2433
+ configurable: true
2434
+ };
2435
+ module.exports = {
2436
+ backgroundImage: backgroundImage_export_definition,
2437
+ "background-image": backgroundImage_export_definition,
2438
+ backgroundPosition: backgroundPosition_export_definition,
2439
+ "background-position": backgroundPosition_export_definition,
2440
+ backgroundRepeat: backgroundRepeat_export_definition,
2441
+ "background-repeat": backgroundRepeat_export_definition,
2442
+ backgroundAttachment: backgroundAttachment_export_definition,
2443
+ "background-attachment": backgroundAttachment_export_definition,
2444
+ backgroundColor: backgroundColor_export_definition,
2445
+ "background-color": backgroundColor_export_definition,
2446
+ background: background_export_definition,
2447
+ borderWidth: borderWidth_export_definition,
2448
+ "border-width": borderWidth_export_definition,
2449
+ borderStyle: borderStyle_export_definition,
2450
+ "border-style": borderStyle_export_definition,
2451
+ borderColor: borderColor_export_definition,
2452
+ "border-color": borderColor_export_definition,
2453
+ border: border_export_definition,
2454
+ borderTopWidth: borderTopWidth_export_definition,
2455
+ "border-top-width": borderTopWidth_export_definition,
2456
+ borderTopStyle: borderTopStyle_export_definition,
2457
+ "border-top-style": borderTopStyle_export_definition,
2458
+ borderTopColor: borderTopColor_export_definition,
2459
+ "border-top-color": borderTopColor_export_definition,
2460
+ borderBottom: borderBottom_export_definition,
2461
+ "border-bottom": borderBottom_export_definition,
2462
+ borderBottomColor: borderBottomColor_export_definition,
2463
+ "border-bottom-color": borderBottomColor_export_definition,
2464
+ borderBottomStyle: borderBottomStyle_export_definition,
2465
+ "border-bottom-style": borderBottomStyle_export_definition,
2466
+ borderBottomWidth: borderBottomWidth_export_definition,
2467
+ "border-bottom-width": borderBottomWidth_export_definition,
2468
+ borderCollapse: borderCollapse_export_definition,
2469
+ "border-collapse": borderCollapse_export_definition,
2470
+ borderLeft: borderLeft_export_definition,
2471
+ "border-left": borderLeft_export_definition,
2472
+ borderLeftColor: borderLeftColor_export_definition,
2473
+ "border-left-color": borderLeftColor_export_definition,
2474
+ borderLeftStyle: borderLeftStyle_export_definition,
2475
+ "border-left-style": borderLeftStyle_export_definition,
2476
+ borderLeftWidth: borderLeftWidth_export_definition,
2477
+ "border-left-width": borderLeftWidth_export_definition,
2478
+ borderRight: borderRight_export_definition,
2479
+ "border-right": borderRight_export_definition,
2480
+ borderRightColor: borderRightColor_export_definition,
2481
+ "border-right-color": borderRightColor_export_definition,
2482
+ borderRightStyle: borderRightStyle_export_definition,
2483
+ "border-right-style": borderRightStyle_export_definition,
2484
+ borderRightWidth: borderRightWidth_export_definition,
2485
+ "border-right-width": borderRightWidth_export_definition,
2486
+ borderSpacing: borderSpacing_export_definition,
2487
+ "border-spacing": borderSpacing_export_definition,
2488
+ borderTop: borderTop_export_definition,
2489
+ "border-top": borderTop_export_definition,
2490
+ bottom: bottom_export_definition,
2491
+ clear: clear_export_definition,
2492
+ clip: clip_export_definition,
2493
+ color: color_export_definition,
2494
+ flexGrow: flexGrow_export_definition,
2495
+ "flex-grow": flexGrow_export_definition,
2496
+ flexShrink: flexShrink_export_definition,
2497
+ "flex-shrink": flexShrink_export_definition,
2498
+ flexBasis: flexBasis_export_definition,
2499
+ "flex-basis": flexBasis_export_definition,
2500
+ flex: flex_export_definition,
2501
+ float: float_export_definition,
2502
+ floodColor: floodColor_export_definition,
2503
+ "flood-color": floodColor_export_definition,
2504
+ fontStyle: fontStyle_export_definition,
2505
+ "font-style": fontStyle_export_definition,
2506
+ fontVariant: fontVariant_export_definition,
2507
+ "font-variant": fontVariant_export_definition,
2508
+ fontWeight: fontWeight_export_definition,
2509
+ "font-weight": fontWeight_export_definition,
2510
+ fontSize: fontSize_export_definition,
2511
+ "font-size": fontSize_export_definition,
2512
+ lineHeight: lineHeight_export_definition,
2513
+ "line-height": lineHeight_export_definition,
2514
+ fontFamily: fontFamily_export_definition,
2515
+ "font-family": fontFamily_export_definition,
2516
+ font: font_export_definition,
2517
+ height: height_export_definition,
2518
+ left: left_export_definition,
2519
+ lightingColor: lightingColor_export_definition,
2520
+ "lighting-color": lightingColor_export_definition,
2521
+ margin: margin_export_definition,
2522
+ marginBottom: marginBottom_export_definition,
2523
+ "margin-bottom": marginBottom_export_definition,
2524
+ marginLeft: marginLeft_export_definition,
2525
+ "margin-left": marginLeft_export_definition,
2526
+ marginRight: marginRight_export_definition,
2527
+ "margin-right": marginRight_export_definition,
2528
+ marginTop: marginTop_export_definition,
2529
+ "margin-top": marginTop_export_definition,
2530
+ opacity: opacity_export_definition,
2531
+ outlineColor: outlineColor_export_definition,
2532
+ "outline-color": outlineColor_export_definition,
2533
+ padding: padding_export_definition,
2534
+ paddingBottom: paddingBottom_export_definition,
2535
+ "padding-bottom": paddingBottom_export_definition,
2536
+ paddingLeft: paddingLeft_export_definition,
2537
+ "padding-left": paddingLeft_export_definition,
2538
+ paddingRight: paddingRight_export_definition,
2539
+ "padding-right": paddingRight_export_definition,
2540
+ paddingTop: paddingTop_export_definition,
2541
+ "padding-top": paddingTop_export_definition,
2542
+ right: right_export_definition,
2543
+ stopColor: stopColor_export_definition,
2544
+ "stop-color": stopColor_export_definition,
2545
+ top: top_export_definition,
2546
+ webkitBorderAfterColor: webkitBorderAfterColor_export_definition,
2547
+ "-webkit-border-after-color": webkitBorderAfterColor_export_definition,
2548
+ "WebkitBorderAfterColor": webkitBorderAfterColor_export_definition,
2549
+ webkitBorderBeforeColor: webkitBorderBeforeColor_export_definition,
2550
+ "-webkit-border-before-color": webkitBorderBeforeColor_export_definition,
2551
+ "WebkitBorderBeforeColor": webkitBorderBeforeColor_export_definition,
2552
+ webkitBorderEndColor: webkitBorderEndColor_export_definition,
2553
+ "-webkit-border-end-color": webkitBorderEndColor_export_definition,
2554
+ "WebkitBorderEndColor": webkitBorderEndColor_export_definition,
2555
+ webkitBorderStartColor: webkitBorderStartColor_export_definition,
2556
+ "-webkit-border-start-color": webkitBorderStartColor_export_definition,
2557
+ "WebkitBorderStartColor": webkitBorderStartColor_export_definition,
2558
+ webkitColumnRuleColor: webkitColumnRuleColor_export_definition,
2559
+ "-webkit-column-rule-color": webkitColumnRuleColor_export_definition,
2560
+ "WebkitColumnRuleColor": webkitColumnRuleColor_export_definition,
2561
+ webkitTapHighlightColor: webkitTapHighlightColor_export_definition,
2562
+ "-webkit-tap-highlight-color": webkitTapHighlightColor_export_definition,
2563
+ "WebkitTapHighlightColor": webkitTapHighlightColor_export_definition,
2564
+ webkitTextEmphasisColor: webkitTextEmphasisColor_export_definition,
2565
+ "-webkit-text-emphasis-color": webkitTextEmphasisColor_export_definition,
2566
+ "WebkitTextEmphasisColor": webkitTextEmphasisColor_export_definition,
2567
+ webkitTextFillColor: webkitTextFillColor_export_definition,
2568
+ "-webkit-text-fill-color": webkitTextFillColor_export_definition,
2569
+ "WebkitTextFillColor": webkitTextFillColor_export_definition,
2570
+ webkitTextStrokeColor: webkitTextStrokeColor_export_definition,
2571
+ "-webkit-text-stroke-color": webkitTextStrokeColor_export_definition,
2572
+ "WebkitTextStrokeColor": webkitTextStrokeColor_export_definition,
2573
+ width: width_export_definition
2574
+ };