@master/css 2.0.0-rc.47 → 2.0.0-rc.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common.cjs +1 -1
- package/dist/common.mjs +1 -1
- package/dist/config/functions.d.ts +1 -1
- package/dist/config/index.cjs +3 -3
- package/dist/config/index.d.ts +3 -48
- package/dist/config/index.mjs +3 -3
- package/dist/config/modes.d.ts +1 -1
- package/dist/config/{syntaxes.cjs → rules.cjs} +282 -282
- package/dist/config/rules.d.ts +282 -0
- package/dist/config/{syntaxes.mjs → rules.mjs} +282 -282
- package/dist/core.cjs +229 -611
- package/dist/core.d.ts +36 -67
- package/dist/core.mjs +229 -611
- package/dist/index.cjs +14 -6
- package/dist/index.d.ts +8 -4
- package/dist/index.mjs +7 -3
- package/dist/layer.cjs +107 -23
- package/dist/layer.d.ts +13 -27
- package/dist/layer.mjs +107 -23
- package/dist/non-layer.cjs +65 -0
- package/dist/non-layer.d.ts +12 -0
- package/dist/non-layer.mjs +63 -0
- package/dist/rule.cjs +8 -708
- package/dist/rule.d.ts +6 -147
- package/dist/rule.mjs +8 -708
- package/dist/shared/utils/find-native-css-rule-index.cjs +12 -0
- package/dist/shared/utils/find-native-css-rule-index.mjs +10 -0
- package/dist/syntax-layer.cjs +291 -0
- package/dist/syntax-layer.d.ts +17 -0
- package/dist/syntax-layer.mjs +289 -0
- package/dist/syntax-rule-type.cjs +27 -0
- package/dist/syntax-rule-type.d.ts +28 -0
- package/dist/syntax-rule-type.mjs +25 -0
- package/dist/syntax-rule.cjs +717 -0
- package/dist/syntax-rule.d.ts +47 -0
- package/dist/syntax-rule.mjs +715 -0
- package/dist/types/config.cjs +2 -0
- package/dist/types/config.d.ts +70 -0
- package/dist/types/config.mjs +1 -0
- package/dist/types/syntax.cjs +2 -0
- package/dist/types/syntax.d.ts +106 -0
- package/dist/types/syntax.mjs +1 -0
- package/dist/utils/are-rule-at-equal.cjs +7 -7
- package/dist/utils/are-rule-at-equal.d.ts +2 -2
- package/dist/utils/are-rule-at-equal.mjs +7 -7
- package/dist/utils/are-rule-modes-equal.cjs +2 -2
- package/dist/utils/are-rule-modes-equal.d.ts +2 -2
- package/dist/utils/are-rule-modes-equal.mjs +2 -2
- package/dist/utils/are-rule-selectors-equal.cjs +11 -11
- package/dist/utils/are-rule-selectors-equal.d.ts +2 -2
- package/dist/utils/are-rule-selectors-equal.mjs +11 -11
- package/dist/utils/are-rule-states-equal.cjs +2 -2
- package/dist/utils/are-rule-states-equal.d.ts +2 -2
- package/dist/utils/are-rule-states-equal.mjs +2 -2
- package/dist/utils/are-rules-duplicated.cjs +17 -0
- package/dist/utils/are-rules-duplicated.d.ts +2 -0
- package/dist/utils/are-rules-duplicated.mjs +15 -0
- package/dist/utils/autofill-solid-style.d.ts +2 -2
- package/dist/utils/extend-config.cjs +5 -5
- package/dist/utils/extend-config.d.ts +1 -1
- package/dist/utils/extend-config.mjs +5 -5
- package/dist/utils/generate-css.cjs +1 -1
- package/dist/utils/generate-css.mjs +1 -1
- package/dist/utils/is-core-rule.cjs +2 -2
- package/dist/utils/is-core-rule.mjs +2 -2
- package/dist/utils/reorder-for-readable-classes.cjs +11 -11
- package/dist/utils/reorder-for-readable-classes.mjs +11 -11
- package/package.json +1 -1
- package/dist/config/syntaxes.d.ts +0 -282
- package/dist/utils/are-syntaxes-duplicated.cjs +0 -17
- package/dist/utils/are-syntaxes-duplicated.d.ts +0 -2
- package/dist/utils/are-syntaxes-duplicated.mjs +0 -15
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import cssEscape from '../shared/utils/css-escape.mjs';
|
|
2
|
-
import
|
|
2
|
+
import SyntaxRuleType from '../syntax-rule-type.mjs';
|
|
3
3
|
import { VALUE_DELIMITERS, NUMBER_VALUE_REGEX, COLOR_VALUE_REGEX, BORDER_STYLE_VALUES, IMAGE_VALUE_REGEX } from '../common.mjs';
|
|
4
4
|
import autofillSolidStyle from '../utils/autofill-solid-style.mjs';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const rules = {
|
|
7
7
|
group: {
|
|
8
8
|
matcher: /^(?:.+?[*_>~+])?\{.+?\}/,
|
|
9
|
-
|
|
9
|
+
type: SyntaxRuleType.Shorthand,
|
|
10
10
|
analyze (className) {
|
|
11
11
|
let i = 0;
|
|
12
12
|
for(; i < className.length; i++){
|
|
@@ -30,12 +30,12 @@ const syntaxes = {
|
|
|
30
30
|
};
|
|
31
31
|
const handleRule = (rule)=>{
|
|
32
32
|
const addProps = (cssText)=>{
|
|
33
|
-
const cssProperties = cssText.slice(cssEscape(rule.
|
|
33
|
+
const cssProperties = cssText.slice(cssEscape(rule.name).length).match(/\{(.*)\}/)?.[1].split(';');
|
|
34
34
|
if (cssProperties) for (const eachCssProperty of cssProperties){
|
|
35
35
|
addProp(eachCssProperty);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
for (const eachNative of rule.
|
|
38
|
+
for (const eachNative of rule.nodes){
|
|
39
39
|
addProps(eachNative.text);
|
|
40
40
|
}
|
|
41
41
|
// animation
|
|
@@ -105,9 +105,9 @@ const syntaxes = {
|
|
|
105
105
|
})('');
|
|
106
106
|
addName();
|
|
107
107
|
for (const eachName of names){
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
110
|
-
for (const eachRule of
|
|
108
|
+
const rules = this.css.generate(eachName, this.mode);
|
|
109
|
+
if (rules.length) {
|
|
110
|
+
for (const eachRule of rules){
|
|
111
111
|
handleRule(eachRule);
|
|
112
112
|
}
|
|
113
113
|
} else {
|
|
@@ -119,7 +119,7 @@ const syntaxes = {
|
|
|
119
119
|
},
|
|
120
120
|
variable: {
|
|
121
121
|
matcher: /^\$[\w-]+:/,
|
|
122
|
-
|
|
122
|
+
type: SyntaxRuleType.Shorthand,
|
|
123
123
|
declare (value) {
|
|
124
124
|
return {
|
|
125
125
|
['--' + this.keyToken.slice(1, -1)]: value
|
|
@@ -135,7 +135,7 @@ const syntaxes = {
|
|
|
135
135
|
NUMBER_VALUE_REGEX
|
|
136
136
|
],
|
|
137
137
|
unit: 'rem',
|
|
138
|
-
|
|
138
|
+
type: SyntaxRuleType.Native
|
|
139
139
|
},
|
|
140
140
|
'font-weight': {
|
|
141
141
|
ambiguousKeys: [
|
|
@@ -145,14 +145,14 @@ const syntaxes = {
|
|
|
145
145
|
ambiguousValues: [
|
|
146
146
|
'bolder'
|
|
147
147
|
],
|
|
148
|
-
|
|
148
|
+
type: SyntaxRuleType.Native
|
|
149
149
|
},
|
|
150
150
|
'font-family': {
|
|
151
151
|
ambiguousKeys: [
|
|
152
152
|
'font',
|
|
153
153
|
'f'
|
|
154
154
|
],
|
|
155
|
-
|
|
155
|
+
type: SyntaxRuleType.Native
|
|
156
156
|
},
|
|
157
157
|
'font-smoothing': {
|
|
158
158
|
ambiguousKeys: [
|
|
@@ -163,7 +163,7 @@ const syntaxes = {
|
|
|
163
163
|
'antialiased',
|
|
164
164
|
'subpixel-antialiased'
|
|
165
165
|
],
|
|
166
|
-
|
|
166
|
+
type: SyntaxRuleType.Native,
|
|
167
167
|
declare (value) {
|
|
168
168
|
switch(value){
|
|
169
169
|
case 'subpixel-antialiased':
|
|
@@ -189,7 +189,7 @@ const syntaxes = {
|
|
|
189
189
|
'italic',
|
|
190
190
|
'oblique'
|
|
191
191
|
],
|
|
192
|
-
|
|
192
|
+
type: SyntaxRuleType.Native,
|
|
193
193
|
unit: 'deg'
|
|
194
194
|
},
|
|
195
195
|
'font-variant-numeric': {
|
|
@@ -207,18 +207,18 @@ const syntaxes = {
|
|
|
207
207
|
'diagonal-fractions',
|
|
208
208
|
'stacked-fractions'
|
|
209
209
|
],
|
|
210
|
-
|
|
210
|
+
type: SyntaxRuleType.Native
|
|
211
211
|
},
|
|
212
212
|
'font-variant': {
|
|
213
213
|
ambiguousKeys: [
|
|
214
214
|
'font',
|
|
215
215
|
'f'
|
|
216
216
|
],
|
|
217
|
-
|
|
217
|
+
type: SyntaxRuleType.NativeShorthand
|
|
218
218
|
},
|
|
219
219
|
font: {
|
|
220
220
|
subkey: 'f',
|
|
221
|
-
|
|
221
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
222
222
|
variables: [
|
|
223
223
|
'font-family',
|
|
224
224
|
'font-variant',
|
|
@@ -230,11 +230,11 @@ const syntaxes = {
|
|
|
230
230
|
},
|
|
231
231
|
'font-feature-settings': {
|
|
232
232
|
key: 'font-feature',
|
|
233
|
-
|
|
233
|
+
type: SyntaxRuleType.Native
|
|
234
234
|
},
|
|
235
235
|
color: {
|
|
236
236
|
key: 'fg',
|
|
237
|
-
|
|
237
|
+
type: SyntaxRuleType.Native,
|
|
238
238
|
variables: [
|
|
239
239
|
'text'
|
|
240
240
|
]
|
|
@@ -242,7 +242,7 @@ const syntaxes = {
|
|
|
242
242
|
// margin
|
|
243
243
|
'margin-left': {
|
|
244
244
|
key: 'ml',
|
|
245
|
-
|
|
245
|
+
type: SyntaxRuleType.Native,
|
|
246
246
|
unit: 'rem',
|
|
247
247
|
variables: [
|
|
248
248
|
'spacing'
|
|
@@ -250,7 +250,7 @@ const syntaxes = {
|
|
|
250
250
|
},
|
|
251
251
|
'margin-right': {
|
|
252
252
|
key: 'mr',
|
|
253
|
-
|
|
253
|
+
type: SyntaxRuleType.Native,
|
|
254
254
|
unit: 'rem',
|
|
255
255
|
variables: [
|
|
256
256
|
'spacing'
|
|
@@ -258,7 +258,7 @@ const syntaxes = {
|
|
|
258
258
|
},
|
|
259
259
|
'margin-top': {
|
|
260
260
|
key: 'mt',
|
|
261
|
-
|
|
261
|
+
type: SyntaxRuleType.Native,
|
|
262
262
|
unit: 'rem',
|
|
263
263
|
variables: [
|
|
264
264
|
'spacing'
|
|
@@ -266,7 +266,7 @@ const syntaxes = {
|
|
|
266
266
|
},
|
|
267
267
|
'margin-bottom': {
|
|
268
268
|
key: 'mb',
|
|
269
|
-
|
|
269
|
+
type: SyntaxRuleType.Native,
|
|
270
270
|
unit: 'rem',
|
|
271
271
|
variables: [
|
|
272
272
|
'spacing'
|
|
@@ -276,7 +276,7 @@ const syntaxes = {
|
|
|
276
276
|
key: 'mx',
|
|
277
277
|
subkey: 'margin-x',
|
|
278
278
|
unit: 'rem',
|
|
279
|
-
|
|
279
|
+
type: SyntaxRuleType.Shorthand,
|
|
280
280
|
declare (value) {
|
|
281
281
|
return {
|
|
282
282
|
'margin-left': value,
|
|
@@ -290,7 +290,7 @@ const syntaxes = {
|
|
|
290
290
|
'margin-y': {
|
|
291
291
|
key: 'my',
|
|
292
292
|
unit: 'rem',
|
|
293
|
-
|
|
293
|
+
type: SyntaxRuleType.Shorthand,
|
|
294
294
|
declare (value) {
|
|
295
295
|
return {
|
|
296
296
|
'margin-top': value,
|
|
@@ -304,7 +304,7 @@ const syntaxes = {
|
|
|
304
304
|
margin: {
|
|
305
305
|
key: 'm',
|
|
306
306
|
unit: 'rem',
|
|
307
|
-
|
|
307
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
308
308
|
variables: [
|
|
309
309
|
'spacing'
|
|
310
310
|
]
|
|
@@ -312,7 +312,7 @@ const syntaxes = {
|
|
|
312
312
|
// margin inline
|
|
313
313
|
'margin-inline-start': {
|
|
314
314
|
key: 'mis',
|
|
315
|
-
|
|
315
|
+
type: SyntaxRuleType.Native,
|
|
316
316
|
unit: 'rem',
|
|
317
317
|
variables: [
|
|
318
318
|
'spacing'
|
|
@@ -320,7 +320,7 @@ const syntaxes = {
|
|
|
320
320
|
},
|
|
321
321
|
'margin-inline-end': {
|
|
322
322
|
key: 'mie',
|
|
323
|
-
|
|
323
|
+
type: SyntaxRuleType.Native,
|
|
324
324
|
unit: 'rem',
|
|
325
325
|
variables: [
|
|
326
326
|
'spacing'
|
|
@@ -329,7 +329,7 @@ const syntaxes = {
|
|
|
329
329
|
'margin-inline': {
|
|
330
330
|
key: 'mi',
|
|
331
331
|
unit: 'rem',
|
|
332
|
-
|
|
332
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
333
333
|
variables: [
|
|
334
334
|
'spacing'
|
|
335
335
|
]
|
|
@@ -337,7 +337,7 @@ const syntaxes = {
|
|
|
337
337
|
// padding
|
|
338
338
|
'padding-left': {
|
|
339
339
|
key: 'pl',
|
|
340
|
-
|
|
340
|
+
type: SyntaxRuleType.Native,
|
|
341
341
|
unit: 'rem',
|
|
342
342
|
variables: [
|
|
343
343
|
'spacing'
|
|
@@ -345,7 +345,7 @@ const syntaxes = {
|
|
|
345
345
|
},
|
|
346
346
|
'padding-right': {
|
|
347
347
|
key: 'pr',
|
|
348
|
-
|
|
348
|
+
type: SyntaxRuleType.Native,
|
|
349
349
|
unit: 'rem',
|
|
350
350
|
variables: [
|
|
351
351
|
'spacing'
|
|
@@ -353,7 +353,7 @@ const syntaxes = {
|
|
|
353
353
|
},
|
|
354
354
|
'padding-top': {
|
|
355
355
|
key: 'pt',
|
|
356
|
-
|
|
356
|
+
type: SyntaxRuleType.Native,
|
|
357
357
|
unit: 'rem',
|
|
358
358
|
variables: [
|
|
359
359
|
'spacing'
|
|
@@ -361,7 +361,7 @@ const syntaxes = {
|
|
|
361
361
|
},
|
|
362
362
|
'padding-bottom': {
|
|
363
363
|
key: 'pb',
|
|
364
|
-
|
|
364
|
+
type: SyntaxRuleType.Native,
|
|
365
365
|
unit: 'rem',
|
|
366
366
|
variables: [
|
|
367
367
|
'spacing'
|
|
@@ -370,7 +370,7 @@ const syntaxes = {
|
|
|
370
370
|
'padding-x': {
|
|
371
371
|
key: 'px',
|
|
372
372
|
unit: 'rem',
|
|
373
|
-
|
|
373
|
+
type: SyntaxRuleType.Shorthand,
|
|
374
374
|
declare (value) {
|
|
375
375
|
return {
|
|
376
376
|
'padding-left': value,
|
|
@@ -384,7 +384,7 @@ const syntaxes = {
|
|
|
384
384
|
'padding-y': {
|
|
385
385
|
key: 'py',
|
|
386
386
|
unit: 'rem',
|
|
387
|
-
|
|
387
|
+
type: SyntaxRuleType.Shorthand,
|
|
388
388
|
declare (value) {
|
|
389
389
|
return {
|
|
390
390
|
'padding-top': value,
|
|
@@ -398,7 +398,7 @@ const syntaxes = {
|
|
|
398
398
|
padding: {
|
|
399
399
|
key: 'p',
|
|
400
400
|
unit: 'rem',
|
|
401
|
-
|
|
401
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
402
402
|
variables: [
|
|
403
403
|
'spacing'
|
|
404
404
|
]
|
|
@@ -406,7 +406,7 @@ const syntaxes = {
|
|
|
406
406
|
// padding inline
|
|
407
407
|
'padding-inline-start': {
|
|
408
408
|
key: 'pis',
|
|
409
|
-
|
|
409
|
+
type: SyntaxRuleType.Native,
|
|
410
410
|
unit: 'rem',
|
|
411
411
|
variables: [
|
|
412
412
|
'spacing'
|
|
@@ -414,7 +414,7 @@ const syntaxes = {
|
|
|
414
414
|
},
|
|
415
415
|
'padding-inline-end': {
|
|
416
416
|
key: 'pie',
|
|
417
|
-
|
|
417
|
+
type: SyntaxRuleType.Native,
|
|
418
418
|
unit: 'rem',
|
|
419
419
|
variables: [
|
|
420
420
|
'spacing'
|
|
@@ -423,7 +423,7 @@ const syntaxes = {
|
|
|
423
423
|
'padding-inline': {
|
|
424
424
|
key: 'pi',
|
|
425
425
|
unit: 'rem',
|
|
426
|
-
|
|
426
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
427
427
|
variables: [
|
|
428
428
|
'spacing'
|
|
429
429
|
]
|
|
@@ -434,7 +434,7 @@ const syntaxes = {
|
|
|
434
434
|
'flex'
|
|
435
435
|
],
|
|
436
436
|
unit: 'rem',
|
|
437
|
-
|
|
437
|
+
type: SyntaxRuleType.Native
|
|
438
438
|
},
|
|
439
439
|
'flex-wrap': {
|
|
440
440
|
ambiguousKeys: [
|
|
@@ -445,19 +445,19 @@ const syntaxes = {
|
|
|
445
445
|
'nowrap',
|
|
446
446
|
'wrap-reverse'
|
|
447
447
|
],
|
|
448
|
-
|
|
448
|
+
type: SyntaxRuleType.Native
|
|
449
449
|
},
|
|
450
450
|
'flex-grow': {
|
|
451
451
|
ambiguousKeys: [
|
|
452
452
|
'flex'
|
|
453
453
|
],
|
|
454
|
-
|
|
454
|
+
type: SyntaxRuleType.Native
|
|
455
455
|
},
|
|
456
456
|
'flex-shrink': {
|
|
457
457
|
ambiguousKeys: [
|
|
458
458
|
'flex'
|
|
459
459
|
],
|
|
460
|
-
|
|
460
|
+
type: SyntaxRuleType.Native
|
|
461
461
|
},
|
|
462
462
|
'flex-direction': {
|
|
463
463
|
ambiguousKeys: [
|
|
@@ -469,37 +469,37 @@ const syntaxes = {
|
|
|
469
469
|
'column',
|
|
470
470
|
'column-reverse'
|
|
471
471
|
],
|
|
472
|
-
|
|
472
|
+
type: SyntaxRuleType.Native
|
|
473
473
|
},
|
|
474
474
|
flex: {
|
|
475
|
-
|
|
475
|
+
type: SyntaxRuleType.NativeShorthand
|
|
476
476
|
},
|
|
477
477
|
display: {
|
|
478
478
|
key: 'd',
|
|
479
|
-
|
|
479
|
+
type: SyntaxRuleType.Native
|
|
480
480
|
},
|
|
481
481
|
width: {
|
|
482
482
|
key: 'w',
|
|
483
483
|
unit: 'rem',
|
|
484
|
-
|
|
484
|
+
type: SyntaxRuleType.Native
|
|
485
485
|
},
|
|
486
486
|
height: {
|
|
487
487
|
key: 'h',
|
|
488
488
|
unit: 'rem',
|
|
489
|
-
|
|
489
|
+
type: SyntaxRuleType.Native
|
|
490
490
|
},
|
|
491
491
|
'min-width': {
|
|
492
492
|
key: 'min-w',
|
|
493
493
|
unit: 'rem',
|
|
494
|
-
|
|
494
|
+
type: SyntaxRuleType.Native
|
|
495
495
|
},
|
|
496
496
|
'min-height': {
|
|
497
497
|
key: 'min-h',
|
|
498
498
|
unit: 'rem',
|
|
499
|
-
|
|
499
|
+
type: SyntaxRuleType.Native
|
|
500
500
|
},
|
|
501
501
|
size: {
|
|
502
|
-
|
|
502
|
+
type: SyntaxRuleType.Shorthand,
|
|
503
503
|
unit: 'rem',
|
|
504
504
|
declare (_value, valueComponents) {
|
|
505
505
|
const length = valueComponents.length;
|
|
@@ -511,7 +511,7 @@ const syntaxes = {
|
|
|
511
511
|
},
|
|
512
512
|
'min-size': {
|
|
513
513
|
key: 'min',
|
|
514
|
-
|
|
514
|
+
type: SyntaxRuleType.Shorthand,
|
|
515
515
|
unit: 'rem',
|
|
516
516
|
declare (_value, valueComponents) {
|
|
517
517
|
const length = valueComponents.length;
|
|
@@ -523,7 +523,7 @@ const syntaxes = {
|
|
|
523
523
|
},
|
|
524
524
|
'max-size': {
|
|
525
525
|
key: 'max',
|
|
526
|
-
|
|
526
|
+
type: SyntaxRuleType.Shorthand,
|
|
527
527
|
unit: 'rem',
|
|
528
528
|
declare (_value, valueComponents) {
|
|
529
529
|
const length = valueComponents.length;
|
|
@@ -537,11 +537,11 @@ const syntaxes = {
|
|
|
537
537
|
ambiguousKeys: [
|
|
538
538
|
'box'
|
|
539
539
|
],
|
|
540
|
-
|
|
540
|
+
type: SyntaxRuleType.Native
|
|
541
541
|
},
|
|
542
542
|
'box-decoration-break': {
|
|
543
543
|
key: 'box-decoration',
|
|
544
|
-
|
|
544
|
+
type: SyntaxRuleType.Native,
|
|
545
545
|
declare (value) {
|
|
546
546
|
return {
|
|
547
547
|
'-webkit-box-decoration-break': value,
|
|
@@ -550,27 +550,27 @@ const syntaxes = {
|
|
|
550
550
|
}
|
|
551
551
|
},
|
|
552
552
|
contain: {
|
|
553
|
-
|
|
553
|
+
type: SyntaxRuleType.Native
|
|
554
554
|
},
|
|
555
555
|
content: {
|
|
556
|
-
|
|
556
|
+
type: SyntaxRuleType.Native
|
|
557
557
|
},
|
|
558
558
|
'counter-increment': {
|
|
559
|
-
|
|
559
|
+
type: SyntaxRuleType.Native
|
|
560
560
|
},
|
|
561
561
|
'counter-reset': {
|
|
562
|
-
|
|
562
|
+
type: SyntaxRuleType.Native
|
|
563
563
|
},
|
|
564
564
|
'letter-spacing': {
|
|
565
565
|
key: 'tracking',
|
|
566
566
|
subkey: 'ls',
|
|
567
|
-
|
|
567
|
+
type: SyntaxRuleType.Native,
|
|
568
568
|
unit: 'em'
|
|
569
569
|
},
|
|
570
570
|
'line-height': {
|
|
571
571
|
key: 'leading',
|
|
572
572
|
subkey: 'line-h',
|
|
573
|
-
|
|
573
|
+
type: SyntaxRuleType.Native
|
|
574
574
|
},
|
|
575
575
|
'object-fit': {
|
|
576
576
|
ambiguousKeys: [
|
|
@@ -583,7 +583,7 @@ const syntaxes = {
|
|
|
583
583
|
'fill',
|
|
584
584
|
'scale-down'
|
|
585
585
|
],
|
|
586
|
-
|
|
586
|
+
type: SyntaxRuleType.Native
|
|
587
587
|
},
|
|
588
588
|
'object-position': {
|
|
589
589
|
ambiguousKeys: [
|
|
@@ -597,7 +597,7 @@ const syntaxes = {
|
|
|
597
597
|
'left',
|
|
598
598
|
'center'
|
|
599
599
|
],
|
|
600
|
-
|
|
600
|
+
type: SyntaxRuleType.Native
|
|
601
601
|
},
|
|
602
602
|
'text-align': {
|
|
603
603
|
ambiguousKeys: [
|
|
@@ -612,7 +612,7 @@ const syntaxes = {
|
|
|
612
612
|
'start',
|
|
613
613
|
'end'
|
|
614
614
|
],
|
|
615
|
-
|
|
615
|
+
type: SyntaxRuleType.Native
|
|
616
616
|
},
|
|
617
617
|
'text-decoration-color': {
|
|
618
618
|
ambiguousKeys: [
|
|
@@ -621,7 +621,7 @@ const syntaxes = {
|
|
|
621
621
|
ambiguousValues: [
|
|
622
622
|
COLOR_VALUE_REGEX
|
|
623
623
|
],
|
|
624
|
-
|
|
624
|
+
type: SyntaxRuleType.Native,
|
|
625
625
|
variables: [
|
|
626
626
|
'text'
|
|
627
627
|
]
|
|
@@ -637,7 +637,7 @@ const syntaxes = {
|
|
|
637
637
|
'dashed',
|
|
638
638
|
'wavy'
|
|
639
639
|
],
|
|
640
|
-
|
|
640
|
+
type: SyntaxRuleType.Native
|
|
641
641
|
},
|
|
642
642
|
'text-decoration-thickness': {
|
|
643
643
|
ambiguousKeys: [
|
|
@@ -647,7 +647,7 @@ const syntaxes = {
|
|
|
647
647
|
'from-font',
|
|
648
648
|
NUMBER_VALUE_REGEX
|
|
649
649
|
],
|
|
650
|
-
|
|
650
|
+
type: SyntaxRuleType.Native,
|
|
651
651
|
unit: 'em'
|
|
652
652
|
},
|
|
653
653
|
'text-decoration-line': {
|
|
@@ -659,7 +659,7 @@ const syntaxes = {
|
|
|
659
659
|
'overline',
|
|
660
660
|
'line-through'
|
|
661
661
|
],
|
|
662
|
-
|
|
662
|
+
type: SyntaxRuleType.Native
|
|
663
663
|
},
|
|
664
664
|
'text-decoration': {
|
|
665
665
|
ambiguousKeys: [
|
|
@@ -672,7 +672,7 @@ const syntaxes = {
|
|
|
672
672
|
'line-through'
|
|
673
673
|
],
|
|
674
674
|
unit: 'rem',
|
|
675
|
-
|
|
675
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
676
676
|
variables: [
|
|
677
677
|
'text'
|
|
678
678
|
],
|
|
@@ -688,7 +688,7 @@ const syntaxes = {
|
|
|
688
688
|
'text-underline'
|
|
689
689
|
],
|
|
690
690
|
unit: 'rem',
|
|
691
|
-
|
|
691
|
+
type: SyntaxRuleType.Native,
|
|
692
692
|
variables: [
|
|
693
693
|
'spacing'
|
|
694
694
|
]
|
|
@@ -703,7 +703,7 @@ const syntaxes = {
|
|
|
703
703
|
'left',
|
|
704
704
|
'right'
|
|
705
705
|
],
|
|
706
|
-
|
|
706
|
+
type: SyntaxRuleType.Native
|
|
707
707
|
},
|
|
708
708
|
'text-overflow': {
|
|
709
709
|
ambiguousKeys: [
|
|
@@ -714,7 +714,7 @@ const syntaxes = {
|
|
|
714
714
|
'ellipsis',
|
|
715
715
|
'clip'
|
|
716
716
|
],
|
|
717
|
-
|
|
717
|
+
type: SyntaxRuleType.Native
|
|
718
718
|
},
|
|
719
719
|
'text-orientation': {
|
|
720
720
|
ambiguousKeys: [
|
|
@@ -728,7 +728,7 @@ const syntaxes = {
|
|
|
728
728
|
'sideways',
|
|
729
729
|
'use-glyph-orientation'
|
|
730
730
|
],
|
|
731
|
-
|
|
731
|
+
type: SyntaxRuleType.Native
|
|
732
732
|
},
|
|
733
733
|
'text-transform': {
|
|
734
734
|
ambiguousKeys: [
|
|
@@ -740,7 +740,7 @@ const syntaxes = {
|
|
|
740
740
|
'lowercase',
|
|
741
741
|
'capitalize'
|
|
742
742
|
],
|
|
743
|
-
|
|
743
|
+
type: SyntaxRuleType.Native
|
|
744
744
|
},
|
|
745
745
|
'text-rendering': {
|
|
746
746
|
ambiguousKeys: [
|
|
@@ -752,7 +752,7 @@ const syntaxes = {
|
|
|
752
752
|
'optimizeLegibility',
|
|
753
753
|
'geometricPrecision'
|
|
754
754
|
],
|
|
755
|
-
|
|
755
|
+
type: SyntaxRuleType.Native
|
|
756
756
|
},
|
|
757
757
|
'text-wrap': {
|
|
758
758
|
ambiguousKeys: [
|
|
@@ -765,47 +765,47 @@ const syntaxes = {
|
|
|
765
765
|
'balance',
|
|
766
766
|
'pretty'
|
|
767
767
|
],
|
|
768
|
-
|
|
768
|
+
type: SyntaxRuleType.NativeShorthand
|
|
769
769
|
},
|
|
770
770
|
'text-indent': {
|
|
771
771
|
unit: 'rem',
|
|
772
|
-
|
|
772
|
+
type: SyntaxRuleType.Native
|
|
773
773
|
},
|
|
774
774
|
'vertical-align': {
|
|
775
775
|
key: 'v',
|
|
776
776
|
subkey: 'vertical',
|
|
777
|
-
|
|
777
|
+
type: SyntaxRuleType.Native
|
|
778
778
|
},
|
|
779
779
|
columns: {
|
|
780
780
|
key: 'cols',
|
|
781
|
-
|
|
781
|
+
type: SyntaxRuleType.NativeShorthand
|
|
782
782
|
},
|
|
783
783
|
'white-space': {
|
|
784
|
-
|
|
784
|
+
type: SyntaxRuleType.Native
|
|
785
785
|
},
|
|
786
786
|
top: {
|
|
787
|
-
|
|
787
|
+
type: SyntaxRuleType.Native,
|
|
788
788
|
unit: 'rem',
|
|
789
789
|
variables: [
|
|
790
790
|
'spacing'
|
|
791
791
|
]
|
|
792
792
|
},
|
|
793
793
|
bottom: {
|
|
794
|
-
|
|
794
|
+
type: SyntaxRuleType.Native,
|
|
795
795
|
unit: 'rem',
|
|
796
796
|
variables: [
|
|
797
797
|
'spacing'
|
|
798
798
|
]
|
|
799
799
|
},
|
|
800
800
|
left: {
|
|
801
|
-
|
|
801
|
+
type: SyntaxRuleType.Native,
|
|
802
802
|
unit: 'rem',
|
|
803
803
|
variables: [
|
|
804
804
|
'spacing'
|
|
805
805
|
]
|
|
806
806
|
},
|
|
807
807
|
right: {
|
|
808
|
-
|
|
808
|
+
type: SyntaxRuleType.Native,
|
|
809
809
|
unit: 'rem',
|
|
810
810
|
variables: [
|
|
811
811
|
'spacing'
|
|
@@ -813,7 +813,7 @@ const syntaxes = {
|
|
|
813
813
|
},
|
|
814
814
|
inset: {
|
|
815
815
|
unit: 'rem',
|
|
816
|
-
|
|
816
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
817
817
|
variables: [
|
|
818
818
|
'spacing'
|
|
819
819
|
]
|
|
@@ -821,30 +821,30 @@ const syntaxes = {
|
|
|
821
821
|
'max-height': {
|
|
822
822
|
key: 'max-h',
|
|
823
823
|
unit: 'rem',
|
|
824
|
-
|
|
824
|
+
type: SyntaxRuleType.Native
|
|
825
825
|
},
|
|
826
826
|
'max-width': {
|
|
827
827
|
key: 'max-w',
|
|
828
828
|
unit: 'rem',
|
|
829
|
-
|
|
829
|
+
type: SyntaxRuleType.Native
|
|
830
830
|
},
|
|
831
831
|
opacity: {
|
|
832
|
-
|
|
832
|
+
type: SyntaxRuleType.Native
|
|
833
833
|
},
|
|
834
834
|
visibility: {
|
|
835
|
-
|
|
835
|
+
type: SyntaxRuleType.Native
|
|
836
836
|
},
|
|
837
837
|
clear: {
|
|
838
|
-
|
|
838
|
+
type: SyntaxRuleType.Native
|
|
839
839
|
},
|
|
840
840
|
float: {
|
|
841
|
-
|
|
841
|
+
type: SyntaxRuleType.Native
|
|
842
842
|
},
|
|
843
843
|
isolation: {
|
|
844
|
-
|
|
844
|
+
type: SyntaxRuleType.Native
|
|
845
845
|
},
|
|
846
846
|
'overflow-x': {
|
|
847
|
-
|
|
847
|
+
type: SyntaxRuleType.Native,
|
|
848
848
|
declare (value) {
|
|
849
849
|
return value === 'overlay' ? {
|
|
850
850
|
'overflow-x': [
|
|
@@ -857,7 +857,7 @@ const syntaxes = {
|
|
|
857
857
|
}
|
|
858
858
|
},
|
|
859
859
|
'overflow-y': {
|
|
860
|
-
|
|
860
|
+
type: SyntaxRuleType.Native,
|
|
861
861
|
declare (value) {
|
|
862
862
|
return value === 'overlay' ? {
|
|
863
863
|
'overflow-y': [
|
|
@@ -870,7 +870,7 @@ const syntaxes = {
|
|
|
870
870
|
}
|
|
871
871
|
},
|
|
872
872
|
overflow: {
|
|
873
|
-
|
|
873
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
874
874
|
declare (value) {
|
|
875
875
|
return value === 'overlay' ? {
|
|
876
876
|
overflow: [
|
|
@@ -883,42 +883,42 @@ const syntaxes = {
|
|
|
883
883
|
}
|
|
884
884
|
},
|
|
885
885
|
'overscroll-behavior-x': {
|
|
886
|
-
|
|
886
|
+
type: SyntaxRuleType.Native
|
|
887
887
|
},
|
|
888
888
|
'overscroll-behavior-y': {
|
|
889
|
-
|
|
889
|
+
type: SyntaxRuleType.Native
|
|
890
890
|
},
|
|
891
891
|
'overscroll-behavior': {
|
|
892
|
-
|
|
892
|
+
type: SyntaxRuleType.NativeShorthand
|
|
893
893
|
},
|
|
894
894
|
'z-index': {
|
|
895
895
|
key: 'z',
|
|
896
|
-
|
|
896
|
+
type: SyntaxRuleType.Native
|
|
897
897
|
},
|
|
898
898
|
position: {
|
|
899
|
-
|
|
899
|
+
type: SyntaxRuleType.Native
|
|
900
900
|
},
|
|
901
901
|
cursor: {
|
|
902
|
-
|
|
902
|
+
type: SyntaxRuleType.Native
|
|
903
903
|
},
|
|
904
904
|
'pointer-events': {
|
|
905
|
-
|
|
905
|
+
type: SyntaxRuleType.Native
|
|
906
906
|
},
|
|
907
907
|
resize: {
|
|
908
|
-
|
|
908
|
+
type: SyntaxRuleType.Native
|
|
909
909
|
},
|
|
910
910
|
'touch-action': {
|
|
911
|
-
|
|
911
|
+
type: SyntaxRuleType.Native
|
|
912
912
|
},
|
|
913
913
|
'word-break': {
|
|
914
|
-
|
|
914
|
+
type: SyntaxRuleType.Native
|
|
915
915
|
},
|
|
916
916
|
'word-spacing': {
|
|
917
|
-
|
|
917
|
+
type: SyntaxRuleType.Native,
|
|
918
918
|
unit: 'em'
|
|
919
919
|
},
|
|
920
920
|
'user-drag': {
|
|
921
|
-
|
|
921
|
+
type: SyntaxRuleType.Native,
|
|
922
922
|
declare (value) {
|
|
923
923
|
return {
|
|
924
924
|
'-webkit-user-drag': value,
|
|
@@ -927,7 +927,7 @@ const syntaxes = {
|
|
|
927
927
|
}
|
|
928
928
|
},
|
|
929
929
|
'user-select': {
|
|
930
|
-
|
|
930
|
+
type: SyntaxRuleType.Native,
|
|
931
931
|
declare (value) {
|
|
932
932
|
return {
|
|
933
933
|
'-webkit-user-select': value,
|
|
@@ -937,7 +937,7 @@ const syntaxes = {
|
|
|
937
937
|
},
|
|
938
938
|
'text-shadow': {
|
|
939
939
|
unit: 'rem',
|
|
940
|
-
|
|
940
|
+
type: SyntaxRuleType.Native
|
|
941
941
|
},
|
|
942
942
|
'text-size': {
|
|
943
943
|
ambiguousKeys: [
|
|
@@ -955,7 +955,7 @@ const syntaxes = {
|
|
|
955
955
|
'line-height': `calc(${value} + ${diff}em)`
|
|
956
956
|
};
|
|
957
957
|
},
|
|
958
|
-
|
|
958
|
+
type: SyntaxRuleType.Shorthand
|
|
959
959
|
},
|
|
960
960
|
'text-fill-color': {
|
|
961
961
|
ambiguousKeys: [
|
|
@@ -965,7 +965,7 @@ const syntaxes = {
|
|
|
965
965
|
ambiguousValues: [
|
|
966
966
|
COLOR_VALUE_REGEX
|
|
967
967
|
],
|
|
968
|
-
|
|
968
|
+
type: SyntaxRuleType.Native,
|
|
969
969
|
variables: [
|
|
970
970
|
'text'
|
|
971
971
|
],
|
|
@@ -986,7 +986,7 @@ const syntaxes = {
|
|
|
986
986
|
NUMBER_VALUE_REGEX
|
|
987
987
|
],
|
|
988
988
|
unit: 'rem',
|
|
989
|
-
|
|
989
|
+
type: SyntaxRuleType.Native,
|
|
990
990
|
declare (value) {
|
|
991
991
|
return {
|
|
992
992
|
'-webkit-text-stroke-width': value
|
|
@@ -1000,7 +1000,7 @@ const syntaxes = {
|
|
|
1000
1000
|
ambiguousValues: [
|
|
1001
1001
|
COLOR_VALUE_REGEX
|
|
1002
1002
|
],
|
|
1003
|
-
|
|
1003
|
+
type: SyntaxRuleType.Native,
|
|
1004
1004
|
declare (value) {
|
|
1005
1005
|
return {
|
|
1006
1006
|
'-webkit-text-stroke-color': value
|
|
@@ -1009,7 +1009,7 @@ const syntaxes = {
|
|
|
1009
1009
|
},
|
|
1010
1010
|
'text-stroke': {
|
|
1011
1011
|
unit: 'rem',
|
|
1012
|
-
|
|
1012
|
+
type: SyntaxRuleType.Native,
|
|
1013
1013
|
declare (value) {
|
|
1014
1014
|
return {
|
|
1015
1015
|
'-webkit-text-stroke': value
|
|
@@ -1028,22 +1028,22 @@ const syntaxes = {
|
|
|
1028
1028
|
'text-overflow': 'ellipsis'
|
|
1029
1029
|
};
|
|
1030
1030
|
},
|
|
1031
|
-
|
|
1031
|
+
type: SyntaxRuleType.Shorthand
|
|
1032
1032
|
},
|
|
1033
1033
|
'box-shadow': {
|
|
1034
1034
|
key: 'shadow',
|
|
1035
1035
|
subkey: 's',
|
|
1036
1036
|
unit: 'rem',
|
|
1037
|
-
|
|
1037
|
+
type: SyntaxRuleType.Native
|
|
1038
1038
|
},
|
|
1039
1039
|
'table-layout': {
|
|
1040
|
-
|
|
1040
|
+
type: SyntaxRuleType.Native
|
|
1041
1041
|
},
|
|
1042
1042
|
'transform-box': {
|
|
1043
1043
|
ambiguousKeys: [
|
|
1044
1044
|
'transform'
|
|
1045
1045
|
],
|
|
1046
|
-
|
|
1046
|
+
type: SyntaxRuleType.Native
|
|
1047
1047
|
},
|
|
1048
1048
|
'transform-style': {
|
|
1049
1049
|
ambiguousKeys: [
|
|
@@ -1053,7 +1053,7 @@ const syntaxes = {
|
|
|
1053
1053
|
'flat',
|
|
1054
1054
|
'preserve-3d'
|
|
1055
1055
|
],
|
|
1056
|
-
|
|
1056
|
+
type: SyntaxRuleType.Native
|
|
1057
1057
|
},
|
|
1058
1058
|
'transform-origin': {
|
|
1059
1059
|
ambiguousKeys: [
|
|
@@ -1068,11 +1068,11 @@ const syntaxes = {
|
|
|
1068
1068
|
NUMBER_VALUE_REGEX
|
|
1069
1069
|
],
|
|
1070
1070
|
unit: 'px',
|
|
1071
|
-
|
|
1071
|
+
type: SyntaxRuleType.Native
|
|
1072
1072
|
},
|
|
1073
1073
|
transform: {
|
|
1074
1074
|
matcher: /^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,
|
|
1075
|
-
|
|
1075
|
+
type: SyntaxRuleType.Native,
|
|
1076
1076
|
analyze (className) {
|
|
1077
1077
|
return [
|
|
1078
1078
|
className.startsWith('transform') ? className.slice(10) : className
|
|
@@ -1085,20 +1085,20 @@ const syntaxes = {
|
|
|
1085
1085
|
},
|
|
1086
1086
|
'transition-property': {
|
|
1087
1087
|
key: '~property',
|
|
1088
|
-
|
|
1088
|
+
type: SyntaxRuleType.Native
|
|
1089
1089
|
},
|
|
1090
1090
|
'transition-timing-function': {
|
|
1091
1091
|
key: '~easing',
|
|
1092
|
-
|
|
1092
|
+
type: SyntaxRuleType.Native
|
|
1093
1093
|
},
|
|
1094
1094
|
'transition-duration': {
|
|
1095
1095
|
key: '~duration',
|
|
1096
|
-
|
|
1096
|
+
type: SyntaxRuleType.Native,
|
|
1097
1097
|
unit: 'ms'
|
|
1098
1098
|
},
|
|
1099
1099
|
'transition-delay': {
|
|
1100
1100
|
key: '~delay',
|
|
1101
|
-
|
|
1101
|
+
type: SyntaxRuleType.Native,
|
|
1102
1102
|
unit: 'ms'
|
|
1103
1103
|
},
|
|
1104
1104
|
transition: {
|
|
@@ -1116,46 +1116,46 @@ const syntaxes = {
|
|
|
1116
1116
|
];
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
|
-
|
|
1119
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1120
1120
|
},
|
|
1121
1121
|
'animation-delay': {
|
|
1122
1122
|
key: '@delay',
|
|
1123
|
-
|
|
1123
|
+
type: SyntaxRuleType.Native,
|
|
1124
1124
|
unit: 'ms'
|
|
1125
1125
|
},
|
|
1126
1126
|
'animation-direction': {
|
|
1127
1127
|
key: '@direction',
|
|
1128
|
-
|
|
1128
|
+
type: SyntaxRuleType.Native
|
|
1129
1129
|
},
|
|
1130
1130
|
'animation-duration': {
|
|
1131
1131
|
key: '@duration',
|
|
1132
|
-
|
|
1132
|
+
type: SyntaxRuleType.Native,
|
|
1133
1133
|
unit: 'ms'
|
|
1134
1134
|
},
|
|
1135
1135
|
'animation-fill-mode': {
|
|
1136
1136
|
key: '@fill',
|
|
1137
|
-
|
|
1137
|
+
type: SyntaxRuleType.Native
|
|
1138
1138
|
},
|
|
1139
1139
|
'animation-iteration-count': {
|
|
1140
1140
|
key: '@iteration',
|
|
1141
|
-
|
|
1141
|
+
type: SyntaxRuleType.Native
|
|
1142
1142
|
},
|
|
1143
1143
|
'animation-name': {
|
|
1144
1144
|
key: '@name',
|
|
1145
|
-
|
|
1145
|
+
type: SyntaxRuleType.Native,
|
|
1146
1146
|
includeAnimations: true
|
|
1147
1147
|
},
|
|
1148
1148
|
'animation-play-state': {
|
|
1149
1149
|
key: '@play',
|
|
1150
|
-
|
|
1150
|
+
type: SyntaxRuleType.Native
|
|
1151
1151
|
},
|
|
1152
1152
|
'animation-timing-function': {
|
|
1153
1153
|
key: '@easing',
|
|
1154
|
-
|
|
1154
|
+
type: SyntaxRuleType.Native
|
|
1155
1155
|
},
|
|
1156
1156
|
animation: {
|
|
1157
1157
|
sign: '@',
|
|
1158
|
-
|
|
1158
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1159
1159
|
includeAnimations: true,
|
|
1160
1160
|
analyze (className) {
|
|
1161
1161
|
if (className.startsWith('@')) {
|
|
@@ -1180,11 +1180,11 @@ const syntaxes = {
|
|
|
1180
1180
|
'collapse',
|
|
1181
1181
|
'separate'
|
|
1182
1182
|
],
|
|
1183
|
-
|
|
1183
|
+
type: SyntaxRuleType.Native
|
|
1184
1184
|
},
|
|
1185
1185
|
'border-spacing': {
|
|
1186
1186
|
unit: 'rem',
|
|
1187
|
-
|
|
1187
|
+
type: SyntaxRuleType.Native,
|
|
1188
1188
|
variables: [
|
|
1189
1189
|
'spacing'
|
|
1190
1190
|
]
|
|
@@ -1198,7 +1198,7 @@ const syntaxes = {
|
|
|
1198
1198
|
ambiguousValues: [
|
|
1199
1199
|
COLOR_VALUE_REGEX
|
|
1200
1200
|
],
|
|
1201
|
-
|
|
1201
|
+
type: SyntaxRuleType.Native,
|
|
1202
1202
|
variables: [
|
|
1203
1203
|
'frame'
|
|
1204
1204
|
]
|
|
@@ -1211,7 +1211,7 @@ const syntaxes = {
|
|
|
1211
1211
|
ambiguousValues: [
|
|
1212
1212
|
COLOR_VALUE_REGEX
|
|
1213
1213
|
],
|
|
1214
|
-
|
|
1214
|
+
type: SyntaxRuleType.Native,
|
|
1215
1215
|
variables: [
|
|
1216
1216
|
'frame'
|
|
1217
1217
|
]
|
|
@@ -1224,7 +1224,7 @@ const syntaxes = {
|
|
|
1224
1224
|
ambiguousValues: [
|
|
1225
1225
|
COLOR_VALUE_REGEX
|
|
1226
1226
|
],
|
|
1227
|
-
|
|
1227
|
+
type: SyntaxRuleType.Native,
|
|
1228
1228
|
variables: [
|
|
1229
1229
|
'frame'
|
|
1230
1230
|
]
|
|
@@ -1237,7 +1237,7 @@ const syntaxes = {
|
|
|
1237
1237
|
ambiguousValues: [
|
|
1238
1238
|
COLOR_VALUE_REGEX
|
|
1239
1239
|
],
|
|
1240
|
-
|
|
1240
|
+
type: SyntaxRuleType.Native,
|
|
1241
1241
|
variables: [
|
|
1242
1242
|
'frame'
|
|
1243
1243
|
]
|
|
@@ -1250,7 +1250,7 @@ const syntaxes = {
|
|
|
1250
1250
|
ambiguousValues: [
|
|
1251
1251
|
COLOR_VALUE_REGEX
|
|
1252
1252
|
],
|
|
1253
|
-
|
|
1253
|
+
type: SyntaxRuleType.Shorthand,
|
|
1254
1254
|
variables: [
|
|
1255
1255
|
'frame'
|
|
1256
1256
|
],
|
|
@@ -1269,7 +1269,7 @@ const syntaxes = {
|
|
|
1269
1269
|
ambiguousValues: [
|
|
1270
1270
|
COLOR_VALUE_REGEX
|
|
1271
1271
|
],
|
|
1272
|
-
|
|
1272
|
+
type: SyntaxRuleType.Shorthand,
|
|
1273
1273
|
variables: [
|
|
1274
1274
|
'frame'
|
|
1275
1275
|
],
|
|
@@ -1288,7 +1288,7 @@ const syntaxes = {
|
|
|
1288
1288
|
ambiguousValues: [
|
|
1289
1289
|
COLOR_VALUE_REGEX
|
|
1290
1290
|
],
|
|
1291
|
-
|
|
1291
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1292
1292
|
variables: [
|
|
1293
1293
|
'frame'
|
|
1294
1294
|
]
|
|
@@ -1297,27 +1297,27 @@ const syntaxes = {
|
|
|
1297
1297
|
'border-top-left-radius': {
|
|
1298
1298
|
key: 'rtl',
|
|
1299
1299
|
unit: 'rem',
|
|
1300
|
-
|
|
1300
|
+
type: SyntaxRuleType.Native
|
|
1301
1301
|
},
|
|
1302
1302
|
'border-top-right-radius': {
|
|
1303
1303
|
key: 'rtr',
|
|
1304
1304
|
unit: 'rem',
|
|
1305
|
-
|
|
1305
|
+
type: SyntaxRuleType.Native
|
|
1306
1306
|
},
|
|
1307
1307
|
'border-bottom-left-radius': {
|
|
1308
1308
|
key: 'rbl',
|
|
1309
1309
|
unit: 'rem',
|
|
1310
|
-
|
|
1310
|
+
type: SyntaxRuleType.Native
|
|
1311
1311
|
},
|
|
1312
1312
|
'border-bottom-right-radius': {
|
|
1313
1313
|
key: 'rbr',
|
|
1314
1314
|
unit: 'rem',
|
|
1315
|
-
|
|
1315
|
+
type: SyntaxRuleType.Native
|
|
1316
1316
|
},
|
|
1317
1317
|
'border-top-radius': {
|
|
1318
1318
|
key: 'rt',
|
|
1319
1319
|
unit: 'rem',
|
|
1320
|
-
|
|
1320
|
+
type: SyntaxRuleType.Shorthand,
|
|
1321
1321
|
declare (value) {
|
|
1322
1322
|
return {
|
|
1323
1323
|
'border-top-left-radius': value,
|
|
@@ -1328,7 +1328,7 @@ const syntaxes = {
|
|
|
1328
1328
|
'border-bottom-radius': {
|
|
1329
1329
|
key: 'rb',
|
|
1330
1330
|
unit: 'rem',
|
|
1331
|
-
|
|
1331
|
+
type: SyntaxRuleType.Shorthand,
|
|
1332
1332
|
declare (value) {
|
|
1333
1333
|
return {
|
|
1334
1334
|
'border-bottom-left-radius': value,
|
|
@@ -1339,7 +1339,7 @@ const syntaxes = {
|
|
|
1339
1339
|
'border-left-radius': {
|
|
1340
1340
|
key: 'rl',
|
|
1341
1341
|
unit: 'rem',
|
|
1342
|
-
|
|
1342
|
+
type: SyntaxRuleType.Shorthand,
|
|
1343
1343
|
declare (value) {
|
|
1344
1344
|
return {
|
|
1345
1345
|
'border-top-left-radius': value,
|
|
@@ -1350,7 +1350,7 @@ const syntaxes = {
|
|
|
1350
1350
|
'border-right-radius': {
|
|
1351
1351
|
key: 'rr',
|
|
1352
1352
|
unit: 'rem',
|
|
1353
|
-
|
|
1353
|
+
type: SyntaxRuleType.Shorthand,
|
|
1354
1354
|
declare (value) {
|
|
1355
1355
|
return {
|
|
1356
1356
|
'border-top-right-radius': value,
|
|
@@ -1361,7 +1361,7 @@ const syntaxes = {
|
|
|
1361
1361
|
'border-radius': {
|
|
1362
1362
|
key: 'r',
|
|
1363
1363
|
unit: 'rem',
|
|
1364
|
-
|
|
1364
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1365
1365
|
},
|
|
1366
1366
|
// border style
|
|
1367
1367
|
'border-top-style': {
|
|
@@ -1370,7 +1370,7 @@ const syntaxes = {
|
|
|
1370
1370
|
'border-top'
|
|
1371
1371
|
],
|
|
1372
1372
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
1373
|
-
|
|
1373
|
+
type: SyntaxRuleType.Native
|
|
1374
1374
|
},
|
|
1375
1375
|
'border-bottom-style': {
|
|
1376
1376
|
ambiguousKeys: [
|
|
@@ -1378,7 +1378,7 @@ const syntaxes = {
|
|
|
1378
1378
|
'border-bottom'
|
|
1379
1379
|
],
|
|
1380
1380
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
1381
|
-
|
|
1381
|
+
type: SyntaxRuleType.Native
|
|
1382
1382
|
},
|
|
1383
1383
|
'border-left-style': {
|
|
1384
1384
|
ambiguousKeys: [
|
|
@@ -1386,7 +1386,7 @@ const syntaxes = {
|
|
|
1386
1386
|
'border-left'
|
|
1387
1387
|
],
|
|
1388
1388
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
1389
|
-
|
|
1389
|
+
type: SyntaxRuleType.Native
|
|
1390
1390
|
},
|
|
1391
1391
|
'border-right-style': {
|
|
1392
1392
|
ambiguousKeys: [
|
|
@@ -1394,7 +1394,7 @@ const syntaxes = {
|
|
|
1394
1394
|
'border-right'
|
|
1395
1395
|
],
|
|
1396
1396
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
1397
|
-
|
|
1397
|
+
type: SyntaxRuleType.Native
|
|
1398
1398
|
},
|
|
1399
1399
|
'border-x-style': {
|
|
1400
1400
|
ambiguousKeys: [
|
|
@@ -1402,7 +1402,7 @@ const syntaxes = {
|
|
|
1402
1402
|
'border-x'
|
|
1403
1403
|
],
|
|
1404
1404
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
1405
|
-
|
|
1405
|
+
type: SyntaxRuleType.Shorthand,
|
|
1406
1406
|
declare (value) {
|
|
1407
1407
|
return {
|
|
1408
1408
|
'border-left-style': value,
|
|
@@ -1416,7 +1416,7 @@ const syntaxes = {
|
|
|
1416
1416
|
'border-y'
|
|
1417
1417
|
],
|
|
1418
1418
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
1419
|
-
|
|
1419
|
+
type: SyntaxRuleType.Shorthand,
|
|
1420
1420
|
declare (value) {
|
|
1421
1421
|
return {
|
|
1422
1422
|
'border-top-style': value,
|
|
@@ -1430,7 +1430,7 @@ const syntaxes = {
|
|
|
1430
1430
|
'border'
|
|
1431
1431
|
],
|
|
1432
1432
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
1433
|
-
|
|
1433
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1434
1434
|
},
|
|
1435
1435
|
// border width
|
|
1436
1436
|
'border-top-width': {
|
|
@@ -1442,7 +1442,7 @@ const syntaxes = {
|
|
|
1442
1442
|
NUMBER_VALUE_REGEX
|
|
1443
1443
|
],
|
|
1444
1444
|
unit: 'rem',
|
|
1445
|
-
|
|
1445
|
+
type: SyntaxRuleType.Native
|
|
1446
1446
|
},
|
|
1447
1447
|
'border-bottom-width': {
|
|
1448
1448
|
ambiguousKeys: [
|
|
@@ -1453,7 +1453,7 @@ const syntaxes = {
|
|
|
1453
1453
|
NUMBER_VALUE_REGEX
|
|
1454
1454
|
],
|
|
1455
1455
|
unit: 'rem',
|
|
1456
|
-
|
|
1456
|
+
type: SyntaxRuleType.Native
|
|
1457
1457
|
},
|
|
1458
1458
|
'border-left-width': {
|
|
1459
1459
|
ambiguousKeys: [
|
|
@@ -1464,7 +1464,7 @@ const syntaxes = {
|
|
|
1464
1464
|
NUMBER_VALUE_REGEX
|
|
1465
1465
|
],
|
|
1466
1466
|
unit: 'rem',
|
|
1467
|
-
|
|
1467
|
+
type: SyntaxRuleType.Native
|
|
1468
1468
|
},
|
|
1469
1469
|
'border-right-width': {
|
|
1470
1470
|
ambiguousKeys: [
|
|
@@ -1475,7 +1475,7 @@ const syntaxes = {
|
|
|
1475
1475
|
NUMBER_VALUE_REGEX
|
|
1476
1476
|
],
|
|
1477
1477
|
unit: 'rem',
|
|
1478
|
-
|
|
1478
|
+
type: SyntaxRuleType.Native
|
|
1479
1479
|
},
|
|
1480
1480
|
'border-x-width': {
|
|
1481
1481
|
ambiguousKeys: [
|
|
@@ -1486,7 +1486,7 @@ const syntaxes = {
|
|
|
1486
1486
|
NUMBER_VALUE_REGEX
|
|
1487
1487
|
],
|
|
1488
1488
|
unit: 'rem',
|
|
1489
|
-
|
|
1489
|
+
type: SyntaxRuleType.Shorthand,
|
|
1490
1490
|
declare (value) {
|
|
1491
1491
|
return {
|
|
1492
1492
|
'border-left-width': value,
|
|
@@ -1503,7 +1503,7 @@ const syntaxes = {
|
|
|
1503
1503
|
NUMBER_VALUE_REGEX
|
|
1504
1504
|
],
|
|
1505
1505
|
unit: 'rem',
|
|
1506
|
-
|
|
1506
|
+
type: SyntaxRuleType.Shorthand,
|
|
1507
1507
|
declare (value) {
|
|
1508
1508
|
return {
|
|
1509
1509
|
'border-top-width': value,
|
|
@@ -1520,7 +1520,7 @@ const syntaxes = {
|
|
|
1520
1520
|
NUMBER_VALUE_REGEX
|
|
1521
1521
|
],
|
|
1522
1522
|
unit: 'rem',
|
|
1523
|
-
|
|
1523
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1524
1524
|
},
|
|
1525
1525
|
// border image
|
|
1526
1526
|
'border-image-repeat': {
|
|
@@ -1533,13 +1533,13 @@ const syntaxes = {
|
|
|
1533
1533
|
'round',
|
|
1534
1534
|
'space'
|
|
1535
1535
|
],
|
|
1536
|
-
|
|
1536
|
+
type: SyntaxRuleType.Native
|
|
1537
1537
|
},
|
|
1538
1538
|
'border-image-slice': {
|
|
1539
1539
|
ambiguousKeys: [
|
|
1540
1540
|
'border-image'
|
|
1541
1541
|
],
|
|
1542
|
-
|
|
1542
|
+
type: SyntaxRuleType.Native
|
|
1543
1543
|
},
|
|
1544
1544
|
'border-image-source': {
|
|
1545
1545
|
ambiguousKeys: [
|
|
@@ -1548,7 +1548,7 @@ const syntaxes = {
|
|
|
1548
1548
|
ambiguousValues: [
|
|
1549
1549
|
IMAGE_VALUE_REGEX
|
|
1550
1550
|
],
|
|
1551
|
-
|
|
1551
|
+
type: SyntaxRuleType.Native
|
|
1552
1552
|
},
|
|
1553
1553
|
'border-image-width': {
|
|
1554
1554
|
ambiguousKeys: [
|
|
@@ -1559,7 +1559,7 @@ const syntaxes = {
|
|
|
1559
1559
|
NUMBER_VALUE_REGEX
|
|
1560
1560
|
],
|
|
1561
1561
|
unit: 'rem',
|
|
1562
|
-
|
|
1562
|
+
type: SyntaxRuleType.Native
|
|
1563
1563
|
},
|
|
1564
1564
|
'border-image-outset': {
|
|
1565
1565
|
ambiguousKeys: [
|
|
@@ -1569,15 +1569,15 @@ const syntaxes = {
|
|
|
1569
1569
|
NUMBER_VALUE_REGEX
|
|
1570
1570
|
],
|
|
1571
1571
|
unit: 'rem',
|
|
1572
|
-
|
|
1572
|
+
type: SyntaxRuleType.Native
|
|
1573
1573
|
},
|
|
1574
1574
|
'border-image': {
|
|
1575
|
-
|
|
1575
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1576
1576
|
},
|
|
1577
1577
|
// border
|
|
1578
1578
|
'border-top': {
|
|
1579
1579
|
key: 'bt',
|
|
1580
|
-
|
|
1580
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1581
1581
|
unit: 'rem',
|
|
1582
1582
|
transformValueComponents: autofillSolidStyle,
|
|
1583
1583
|
variables: [
|
|
@@ -1586,7 +1586,7 @@ const syntaxes = {
|
|
|
1586
1586
|
},
|
|
1587
1587
|
'border-bottom': {
|
|
1588
1588
|
key: 'bb',
|
|
1589
|
-
|
|
1589
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1590
1590
|
unit: 'rem',
|
|
1591
1591
|
transformValueComponents: autofillSolidStyle,
|
|
1592
1592
|
variables: [
|
|
@@ -1595,7 +1595,7 @@ const syntaxes = {
|
|
|
1595
1595
|
},
|
|
1596
1596
|
'border-left': {
|
|
1597
1597
|
key: 'bl',
|
|
1598
|
-
|
|
1598
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1599
1599
|
unit: 'rem',
|
|
1600
1600
|
transformValueComponents: autofillSolidStyle,
|
|
1601
1601
|
variables: [
|
|
@@ -1604,7 +1604,7 @@ const syntaxes = {
|
|
|
1604
1604
|
},
|
|
1605
1605
|
'border-right': {
|
|
1606
1606
|
key: 'br',
|
|
1607
|
-
|
|
1607
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1608
1608
|
unit: 'rem',
|
|
1609
1609
|
transformValueComponents: autofillSolidStyle,
|
|
1610
1610
|
variables: [
|
|
@@ -1614,7 +1614,7 @@ const syntaxes = {
|
|
|
1614
1614
|
'border-x': {
|
|
1615
1615
|
key: 'bx',
|
|
1616
1616
|
unit: 'rem',
|
|
1617
|
-
|
|
1617
|
+
type: SyntaxRuleType.Shorthand,
|
|
1618
1618
|
transformValueComponents: autofillSolidStyle,
|
|
1619
1619
|
variables: [
|
|
1620
1620
|
'frame'
|
|
@@ -1629,7 +1629,7 @@ const syntaxes = {
|
|
|
1629
1629
|
'border-y': {
|
|
1630
1630
|
key: 'by',
|
|
1631
1631
|
unit: 'rem',
|
|
1632
|
-
|
|
1632
|
+
type: SyntaxRuleType.Shorthand,
|
|
1633
1633
|
transformValueComponents: autofillSolidStyle,
|
|
1634
1634
|
variables: [
|
|
1635
1635
|
'frame'
|
|
@@ -1644,7 +1644,7 @@ const syntaxes = {
|
|
|
1644
1644
|
border: {
|
|
1645
1645
|
key: 'b',
|
|
1646
1646
|
unit: 'rem',
|
|
1647
|
-
|
|
1647
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1648
1648
|
transformValueComponents: autofillSolidStyle,
|
|
1649
1649
|
variables: [
|
|
1650
1650
|
'frame'
|
|
@@ -1659,11 +1659,11 @@ const syntaxes = {
|
|
|
1659
1659
|
'local',
|
|
1660
1660
|
'scroll'
|
|
1661
1661
|
],
|
|
1662
|
-
|
|
1662
|
+
type: SyntaxRuleType.Native
|
|
1663
1663
|
},
|
|
1664
1664
|
'background-blend-mode': {
|
|
1665
1665
|
key: 'bg-blend',
|
|
1666
|
-
|
|
1666
|
+
type: SyntaxRuleType.Native
|
|
1667
1667
|
},
|
|
1668
1668
|
'background-color': {
|
|
1669
1669
|
ambiguousKeys: [
|
|
@@ -1672,11 +1672,11 @@ const syntaxes = {
|
|
|
1672
1672
|
ambiguousValues: [
|
|
1673
1673
|
COLOR_VALUE_REGEX
|
|
1674
1674
|
],
|
|
1675
|
-
|
|
1675
|
+
type: SyntaxRuleType.Native
|
|
1676
1676
|
},
|
|
1677
1677
|
'background-clip': {
|
|
1678
1678
|
key: 'bg-clip',
|
|
1679
|
-
|
|
1679
|
+
type: SyntaxRuleType.Native,
|
|
1680
1680
|
declare (value) {
|
|
1681
1681
|
return {
|
|
1682
1682
|
'-webkit-background-clip': value,
|
|
@@ -1686,7 +1686,7 @@ const syntaxes = {
|
|
|
1686
1686
|
},
|
|
1687
1687
|
'background-origin': {
|
|
1688
1688
|
key: 'bg-origin',
|
|
1689
|
-
|
|
1689
|
+
type: SyntaxRuleType.Native
|
|
1690
1690
|
},
|
|
1691
1691
|
'background-position': {
|
|
1692
1692
|
ambiguousKeys: [
|
|
@@ -1699,7 +1699,7 @@ const syntaxes = {
|
|
|
1699
1699
|
'left',
|
|
1700
1700
|
'center'
|
|
1701
1701
|
],
|
|
1702
|
-
|
|
1702
|
+
type: SyntaxRuleType.Native,
|
|
1703
1703
|
unit: 'px'
|
|
1704
1704
|
},
|
|
1705
1705
|
'background-repeat': {
|
|
@@ -1714,7 +1714,7 @@ const syntaxes = {
|
|
|
1714
1714
|
'repeat-x',
|
|
1715
1715
|
'repeat-y'
|
|
1716
1716
|
],
|
|
1717
|
-
|
|
1717
|
+
type: SyntaxRuleType.Native
|
|
1718
1718
|
},
|
|
1719
1719
|
'background-size': {
|
|
1720
1720
|
ambiguousKeys: [
|
|
@@ -1727,7 +1727,7 @@ const syntaxes = {
|
|
|
1727
1727
|
NUMBER_VALUE_REGEX
|
|
1728
1728
|
],
|
|
1729
1729
|
unit: 'rem',
|
|
1730
|
-
|
|
1730
|
+
type: SyntaxRuleType.Native
|
|
1731
1731
|
},
|
|
1732
1732
|
'background-image': {
|
|
1733
1733
|
ambiguousKeys: [
|
|
@@ -1736,15 +1736,15 @@ const syntaxes = {
|
|
|
1736
1736
|
ambiguousValues: [
|
|
1737
1737
|
IMAGE_VALUE_REGEX
|
|
1738
1738
|
],
|
|
1739
|
-
|
|
1739
|
+
type: SyntaxRuleType.Native
|
|
1740
1740
|
},
|
|
1741
1741
|
background: {
|
|
1742
1742
|
key: 'bg',
|
|
1743
|
-
|
|
1743
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1744
1744
|
},
|
|
1745
1745
|
gradient: {
|
|
1746
1746
|
matcher: /^gradient\(/,
|
|
1747
|
-
|
|
1747
|
+
type: SyntaxRuleType.Shorthand,
|
|
1748
1748
|
declare (value) {
|
|
1749
1749
|
return {
|
|
1750
1750
|
'background-image': 'linear-' + value
|
|
@@ -1753,11 +1753,11 @@ const syntaxes = {
|
|
|
1753
1753
|
},
|
|
1754
1754
|
'mix-blend-mode': {
|
|
1755
1755
|
key: 'blend',
|
|
1756
|
-
|
|
1756
|
+
type: SyntaxRuleType.Native
|
|
1757
1757
|
},
|
|
1758
1758
|
'backdrop-filter': {
|
|
1759
1759
|
key: 'bd',
|
|
1760
|
-
|
|
1760
|
+
type: SyntaxRuleType.Native,
|
|
1761
1761
|
declare (value) {
|
|
1762
1762
|
return {
|
|
1763
1763
|
'-webkit-backdrop-filter': value,
|
|
@@ -1767,16 +1767,16 @@ const syntaxes = {
|
|
|
1767
1767
|
},
|
|
1768
1768
|
filter: {
|
|
1769
1769
|
matcher: /^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,
|
|
1770
|
-
|
|
1770
|
+
type: SyntaxRuleType.Native
|
|
1771
1771
|
},
|
|
1772
1772
|
fill: {
|
|
1773
|
-
|
|
1773
|
+
type: SyntaxRuleType.Native
|
|
1774
1774
|
},
|
|
1775
1775
|
'stroke-dasharray': {
|
|
1776
|
-
|
|
1776
|
+
type: SyntaxRuleType.Native
|
|
1777
1777
|
},
|
|
1778
1778
|
'stroke-dashoffset': {
|
|
1779
|
-
|
|
1779
|
+
type: SyntaxRuleType.Native,
|
|
1780
1780
|
variables: [
|
|
1781
1781
|
'spacing'
|
|
1782
1782
|
]
|
|
@@ -1788,52 +1788,52 @@ const syntaxes = {
|
|
|
1788
1788
|
ambiguousValues: [
|
|
1789
1789
|
NUMBER_VALUE_REGEX
|
|
1790
1790
|
],
|
|
1791
|
-
|
|
1791
|
+
type: SyntaxRuleType.Native
|
|
1792
1792
|
},
|
|
1793
1793
|
stroke: {
|
|
1794
|
-
|
|
1794
|
+
type: SyntaxRuleType.Native
|
|
1795
1795
|
},
|
|
1796
1796
|
x: {
|
|
1797
|
-
|
|
1797
|
+
type: SyntaxRuleType.Native,
|
|
1798
1798
|
variables: [
|
|
1799
1799
|
'spacing'
|
|
1800
1800
|
]
|
|
1801
1801
|
},
|
|
1802
1802
|
y: {
|
|
1803
|
-
|
|
1803
|
+
type: SyntaxRuleType.Native,
|
|
1804
1804
|
variables: [
|
|
1805
1805
|
'spacing'
|
|
1806
1806
|
]
|
|
1807
1807
|
},
|
|
1808
1808
|
cx: {
|
|
1809
|
-
|
|
1809
|
+
type: SyntaxRuleType.Native,
|
|
1810
1810
|
variables: [
|
|
1811
1811
|
'spacing'
|
|
1812
1812
|
]
|
|
1813
1813
|
},
|
|
1814
1814
|
cy: {
|
|
1815
|
-
|
|
1815
|
+
type: SyntaxRuleType.Native,
|
|
1816
1816
|
variables: [
|
|
1817
1817
|
'spacing'
|
|
1818
1818
|
]
|
|
1819
1819
|
},
|
|
1820
1820
|
rx: {
|
|
1821
|
-
|
|
1821
|
+
type: SyntaxRuleType.Native
|
|
1822
1822
|
},
|
|
1823
1823
|
ry: {
|
|
1824
|
-
|
|
1824
|
+
type: SyntaxRuleType.Native
|
|
1825
1825
|
},
|
|
1826
1826
|
'grid-column-start': {
|
|
1827
1827
|
key: 'grid-col-start',
|
|
1828
|
-
|
|
1828
|
+
type: SyntaxRuleType.Native
|
|
1829
1829
|
},
|
|
1830
1830
|
'grid-column-end': {
|
|
1831
1831
|
key: 'grid-col-end',
|
|
1832
|
-
|
|
1832
|
+
type: SyntaxRuleType.Native
|
|
1833
1833
|
},
|
|
1834
1834
|
'grid-column-span': {
|
|
1835
1835
|
key: 'grid-col-span',
|
|
1836
|
-
|
|
1836
|
+
type: SyntaxRuleType.Shorthand,
|
|
1837
1837
|
transformValue (value) {
|
|
1838
1838
|
return 'span' + ' ' + value + '/' + 'span' + ' ' + value;
|
|
1839
1839
|
},
|
|
@@ -1845,7 +1845,7 @@ const syntaxes = {
|
|
|
1845
1845
|
},
|
|
1846
1846
|
'grid-column': {
|
|
1847
1847
|
key: 'grid-col',
|
|
1848
|
-
|
|
1848
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1849
1849
|
},
|
|
1850
1850
|
'grid-columns': {
|
|
1851
1851
|
key: 'grid-cols',
|
|
@@ -1855,16 +1855,16 @@ const syntaxes = {
|
|
|
1855
1855
|
'grid-template-columns': 'repeat' + '(' + value + ',' + 'minmax' + '(' + 0 + ',' + 1 + 'fr' + '))'
|
|
1856
1856
|
};
|
|
1857
1857
|
},
|
|
1858
|
-
|
|
1858
|
+
type: SyntaxRuleType.Shorthand
|
|
1859
1859
|
},
|
|
1860
1860
|
'grid-row-start': {
|
|
1861
|
-
|
|
1861
|
+
type: SyntaxRuleType.Native
|
|
1862
1862
|
},
|
|
1863
1863
|
'grid-row-end': {
|
|
1864
|
-
|
|
1864
|
+
type: SyntaxRuleType.Native
|
|
1865
1865
|
},
|
|
1866
1866
|
'grid-row-span': {
|
|
1867
|
-
|
|
1867
|
+
type: SyntaxRuleType.Shorthand,
|
|
1868
1868
|
transformValue (value) {
|
|
1869
1869
|
return 'span' + ' ' + value + '/' + 'span' + ' ' + value;
|
|
1870
1870
|
},
|
|
@@ -1875,7 +1875,7 @@ const syntaxes = {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
},
|
|
1877
1877
|
'grid-row': {
|
|
1878
|
-
|
|
1878
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1879
1879
|
},
|
|
1880
1880
|
'grid-rows': {
|
|
1881
1881
|
declare (value) {
|
|
@@ -1885,44 +1885,44 @@ const syntaxes = {
|
|
|
1885
1885
|
'grid-template-rows': 'repeat' + '(' + value + ',' + 'minmax' + '(' + 0 + ',' + 1 + 'fr' + '))'
|
|
1886
1886
|
};
|
|
1887
1887
|
},
|
|
1888
|
-
|
|
1888
|
+
type: SyntaxRuleType.Shorthand
|
|
1889
1889
|
},
|
|
1890
1890
|
'grid-auto-columns': {
|
|
1891
1891
|
key: 'grid-auto-cols',
|
|
1892
|
-
|
|
1892
|
+
type: SyntaxRuleType.Native
|
|
1893
1893
|
},
|
|
1894
1894
|
'grid-auto-flow': {
|
|
1895
1895
|
key: 'grid-flow',
|
|
1896
|
-
|
|
1896
|
+
type: SyntaxRuleType.Native
|
|
1897
1897
|
},
|
|
1898
1898
|
'grid-auto-rows': {
|
|
1899
|
-
|
|
1899
|
+
type: SyntaxRuleType.Native
|
|
1900
1900
|
},
|
|
1901
1901
|
'grid-template-areas': {
|
|
1902
|
-
|
|
1902
|
+
type: SyntaxRuleType.Native
|
|
1903
1903
|
},
|
|
1904
1904
|
'grid-template-columns': {
|
|
1905
1905
|
key: 'grid-template-cols',
|
|
1906
|
-
|
|
1906
|
+
type: SyntaxRuleType.Native,
|
|
1907
1907
|
unit: 'rem'
|
|
1908
1908
|
},
|
|
1909
1909
|
'grid-template-rows': {
|
|
1910
|
-
|
|
1910
|
+
type: SyntaxRuleType.Native,
|
|
1911
1911
|
unit: 'rem'
|
|
1912
1912
|
},
|
|
1913
1913
|
'grid-template': {
|
|
1914
|
-
|
|
1914
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1915
1915
|
},
|
|
1916
1916
|
'grid-area': {
|
|
1917
|
-
|
|
1917
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1918
1918
|
},
|
|
1919
1919
|
grid: {
|
|
1920
|
-
|
|
1920
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1921
1921
|
},
|
|
1922
1922
|
'column-gap': {
|
|
1923
1923
|
key: 'gap-x',
|
|
1924
1924
|
unit: 'rem',
|
|
1925
|
-
|
|
1925
|
+
type: SyntaxRuleType.Native,
|
|
1926
1926
|
variables: [
|
|
1927
1927
|
'spacing'
|
|
1928
1928
|
]
|
|
@@ -1930,71 +1930,71 @@ const syntaxes = {
|
|
|
1930
1930
|
'row-gap': {
|
|
1931
1931
|
key: 'gap-y',
|
|
1932
1932
|
unit: 'rem',
|
|
1933
|
-
|
|
1933
|
+
type: SyntaxRuleType.Native,
|
|
1934
1934
|
variables: [
|
|
1935
1935
|
'spacing'
|
|
1936
1936
|
]
|
|
1937
1937
|
},
|
|
1938
1938
|
gap: {
|
|
1939
1939
|
unit: 'rem',
|
|
1940
|
-
|
|
1940
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
1941
1941
|
variables: [
|
|
1942
1942
|
'spacing'
|
|
1943
1943
|
]
|
|
1944
1944
|
},
|
|
1945
1945
|
order: {
|
|
1946
1946
|
key: 'o',
|
|
1947
|
-
|
|
1947
|
+
type: SyntaxRuleType.Native
|
|
1948
1948
|
},
|
|
1949
1949
|
'break-inside': {
|
|
1950
|
-
|
|
1950
|
+
type: SyntaxRuleType.Native
|
|
1951
1951
|
},
|
|
1952
1952
|
'break-before': {
|
|
1953
|
-
|
|
1953
|
+
type: SyntaxRuleType.Native
|
|
1954
1954
|
},
|
|
1955
1955
|
'break-after': {
|
|
1956
|
-
|
|
1956
|
+
type: SyntaxRuleType.Native
|
|
1957
1957
|
},
|
|
1958
1958
|
'aspect-ratio': {
|
|
1959
1959
|
key: 'aspect',
|
|
1960
|
-
|
|
1960
|
+
type: SyntaxRuleType.Native
|
|
1961
1961
|
},
|
|
1962
1962
|
'column-span': {
|
|
1963
1963
|
key: 'col-span',
|
|
1964
|
-
|
|
1964
|
+
type: SyntaxRuleType.Native
|
|
1965
1965
|
},
|
|
1966
1966
|
'align-content': {
|
|
1967
1967
|
subkey: 'ac',
|
|
1968
|
-
|
|
1968
|
+
type: SyntaxRuleType.Native
|
|
1969
1969
|
},
|
|
1970
1970
|
'align-items': {
|
|
1971
1971
|
subkey: 'ai',
|
|
1972
|
-
|
|
1972
|
+
type: SyntaxRuleType.Native
|
|
1973
1973
|
},
|
|
1974
1974
|
'align-self': {
|
|
1975
1975
|
subkey: 'as',
|
|
1976
|
-
|
|
1976
|
+
type: SyntaxRuleType.Native
|
|
1977
1977
|
},
|
|
1978
1978
|
'justify-content': {
|
|
1979
1979
|
subkey: 'jc',
|
|
1980
|
-
|
|
1980
|
+
type: SyntaxRuleType.Native
|
|
1981
1981
|
},
|
|
1982
1982
|
'justify-items': {
|
|
1983
1983
|
subkey: 'ji',
|
|
1984
|
-
|
|
1984
|
+
type: SyntaxRuleType.Native
|
|
1985
1985
|
},
|
|
1986
1986
|
'justify-self': {
|
|
1987
1987
|
subkey: 'js',
|
|
1988
|
-
|
|
1988
|
+
type: SyntaxRuleType.Native
|
|
1989
1989
|
},
|
|
1990
1990
|
'place-content': {
|
|
1991
|
-
|
|
1991
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1992
1992
|
},
|
|
1993
1993
|
'place-items': {
|
|
1994
|
-
|
|
1994
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1995
1995
|
},
|
|
1996
1996
|
'place-self': {
|
|
1997
|
-
|
|
1997
|
+
type: SyntaxRuleType.NativeShorthand
|
|
1998
1998
|
},
|
|
1999
1999
|
'list-style-position': {
|
|
2000
2000
|
ambiguousKeys: [
|
|
@@ -2004,7 +2004,7 @@ const syntaxes = {
|
|
|
2004
2004
|
'inside',
|
|
2005
2005
|
'outside'
|
|
2006
2006
|
],
|
|
2007
|
-
|
|
2007
|
+
type: SyntaxRuleType.Native
|
|
2008
2008
|
},
|
|
2009
2009
|
'list-style-type': {
|
|
2010
2010
|
ambiguousKeys: [
|
|
@@ -2014,7 +2014,7 @@ const syntaxes = {
|
|
|
2014
2014
|
'disc',
|
|
2015
2015
|
'decimal'
|
|
2016
2016
|
],
|
|
2017
|
-
|
|
2017
|
+
type: SyntaxRuleType.Native
|
|
2018
2018
|
},
|
|
2019
2019
|
'list-style-image': {
|
|
2020
2020
|
ambiguousKeys: [
|
|
@@ -2023,10 +2023,10 @@ const syntaxes = {
|
|
|
2023
2023
|
ambiguousValues: [
|
|
2024
2024
|
IMAGE_VALUE_REGEX
|
|
2025
2025
|
],
|
|
2026
|
-
|
|
2026
|
+
type: SyntaxRuleType.Native
|
|
2027
2027
|
},
|
|
2028
2028
|
'list-style': {
|
|
2029
|
-
|
|
2029
|
+
type: SyntaxRuleType.NativeShorthand
|
|
2030
2030
|
},
|
|
2031
2031
|
'outline-color': {
|
|
2032
2032
|
ambiguousKeys: [
|
|
@@ -2035,14 +2035,14 @@ const syntaxes = {
|
|
|
2035
2035
|
ambiguousValues: [
|
|
2036
2036
|
COLOR_VALUE_REGEX
|
|
2037
2037
|
],
|
|
2038
|
-
|
|
2038
|
+
type: SyntaxRuleType.Native,
|
|
2039
2039
|
variables: [
|
|
2040
2040
|
'frame'
|
|
2041
2041
|
]
|
|
2042
2042
|
},
|
|
2043
2043
|
'outline-offset': {
|
|
2044
2044
|
unit: 'rem',
|
|
2045
|
-
|
|
2045
|
+
type: SyntaxRuleType.Native,
|
|
2046
2046
|
variables: [
|
|
2047
2047
|
'spacing'
|
|
2048
2048
|
]
|
|
@@ -2052,7 +2052,7 @@ const syntaxes = {
|
|
|
2052
2052
|
'outline'
|
|
2053
2053
|
],
|
|
2054
2054
|
ambiguousValues: BORDER_STYLE_VALUES,
|
|
2055
|
-
|
|
2055
|
+
type: SyntaxRuleType.Native
|
|
2056
2056
|
},
|
|
2057
2057
|
'outline-width': {
|
|
2058
2058
|
ambiguousKeys: [
|
|
@@ -2065,11 +2065,11 @@ const syntaxes = {
|
|
|
2065
2065
|
NUMBER_VALUE_REGEX
|
|
2066
2066
|
],
|
|
2067
2067
|
unit: 'rem',
|
|
2068
|
-
|
|
2068
|
+
type: SyntaxRuleType.Native
|
|
2069
2069
|
},
|
|
2070
2070
|
outline: {
|
|
2071
2071
|
unit: 'rem',
|
|
2072
|
-
|
|
2072
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
2073
2073
|
variables: [
|
|
2074
2074
|
'outline-width',
|
|
2075
2075
|
'outline-style',
|
|
@@ -2081,25 +2081,25 @@ const syntaxes = {
|
|
|
2081
2081
|
},
|
|
2082
2082
|
'accent-color': {
|
|
2083
2083
|
key: 'accent',
|
|
2084
|
-
|
|
2084
|
+
type: SyntaxRuleType.Native
|
|
2085
2085
|
},
|
|
2086
2086
|
appearance: {
|
|
2087
|
-
|
|
2087
|
+
type: SyntaxRuleType.Native
|
|
2088
2088
|
},
|
|
2089
2089
|
'caret-color': {
|
|
2090
2090
|
key: 'caret',
|
|
2091
|
-
|
|
2091
|
+
type: SyntaxRuleType.Native,
|
|
2092
2092
|
variables: [
|
|
2093
2093
|
'text'
|
|
2094
2094
|
]
|
|
2095
2095
|
},
|
|
2096
2096
|
'scroll-behavior': {
|
|
2097
|
-
|
|
2097
|
+
type: SyntaxRuleType.Native
|
|
2098
2098
|
},
|
|
2099
2099
|
// scroll margin
|
|
2100
2100
|
'scroll-margin-left': {
|
|
2101
2101
|
key: 'scroll-ml',
|
|
2102
|
-
|
|
2102
|
+
type: SyntaxRuleType.Native,
|
|
2103
2103
|
unit: 'rem',
|
|
2104
2104
|
variables: [
|
|
2105
2105
|
'spacing'
|
|
@@ -2107,7 +2107,7 @@ const syntaxes = {
|
|
|
2107
2107
|
},
|
|
2108
2108
|
'scroll-margin-right': {
|
|
2109
2109
|
key: 'scroll-mr',
|
|
2110
|
-
|
|
2110
|
+
type: SyntaxRuleType.Native,
|
|
2111
2111
|
unit: 'rem',
|
|
2112
2112
|
variables: [
|
|
2113
2113
|
'spacing'
|
|
@@ -2115,7 +2115,7 @@ const syntaxes = {
|
|
|
2115
2115
|
},
|
|
2116
2116
|
'scroll-margin-top': {
|
|
2117
2117
|
key: 'scroll-mt',
|
|
2118
|
-
|
|
2118
|
+
type: SyntaxRuleType.Native,
|
|
2119
2119
|
unit: 'rem',
|
|
2120
2120
|
variables: [
|
|
2121
2121
|
'spacing'
|
|
@@ -2123,7 +2123,7 @@ const syntaxes = {
|
|
|
2123
2123
|
},
|
|
2124
2124
|
'scroll-margin-bottom': {
|
|
2125
2125
|
key: 'scroll-mb',
|
|
2126
|
-
|
|
2126
|
+
type: SyntaxRuleType.Native,
|
|
2127
2127
|
unit: 'rem',
|
|
2128
2128
|
variables: [
|
|
2129
2129
|
'spacing'
|
|
@@ -2132,7 +2132,7 @@ const syntaxes = {
|
|
|
2132
2132
|
'scroll-margin-x': {
|
|
2133
2133
|
key: 'scroll-mx',
|
|
2134
2134
|
unit: 'rem',
|
|
2135
|
-
|
|
2135
|
+
type: SyntaxRuleType.Shorthand,
|
|
2136
2136
|
declare (value) {
|
|
2137
2137
|
return {
|
|
2138
2138
|
'scroll-margin-left': value,
|
|
@@ -2146,7 +2146,7 @@ const syntaxes = {
|
|
|
2146
2146
|
'scroll-margin-y': {
|
|
2147
2147
|
key: 'scroll-my',
|
|
2148
2148
|
unit: 'rem',
|
|
2149
|
-
|
|
2149
|
+
type: SyntaxRuleType.Shorthand,
|
|
2150
2150
|
declare (value) {
|
|
2151
2151
|
return {
|
|
2152
2152
|
'scroll-margin-top': value,
|
|
@@ -2160,7 +2160,7 @@ const syntaxes = {
|
|
|
2160
2160
|
'scroll-margin': {
|
|
2161
2161
|
key: 'scroll-m',
|
|
2162
2162
|
unit: 'rem',
|
|
2163
|
-
|
|
2163
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
2164
2164
|
variables: [
|
|
2165
2165
|
'spacing'
|
|
2166
2166
|
]
|
|
@@ -2168,7 +2168,7 @@ const syntaxes = {
|
|
|
2168
2168
|
// scroll padding
|
|
2169
2169
|
'scroll-padding-left': {
|
|
2170
2170
|
key: 'scroll-pl',
|
|
2171
|
-
|
|
2171
|
+
type: SyntaxRuleType.Native,
|
|
2172
2172
|
unit: 'rem',
|
|
2173
2173
|
variables: [
|
|
2174
2174
|
'spacing'
|
|
@@ -2176,7 +2176,7 @@ const syntaxes = {
|
|
|
2176
2176
|
},
|
|
2177
2177
|
'scroll-padding-right': {
|
|
2178
2178
|
key: 'scroll-pr',
|
|
2179
|
-
|
|
2179
|
+
type: SyntaxRuleType.Native,
|
|
2180
2180
|
unit: 'rem',
|
|
2181
2181
|
variables: [
|
|
2182
2182
|
'spacing'
|
|
@@ -2184,7 +2184,7 @@ const syntaxes = {
|
|
|
2184
2184
|
},
|
|
2185
2185
|
'scroll-padding-top': {
|
|
2186
2186
|
key: 'scroll-pt',
|
|
2187
|
-
|
|
2187
|
+
type: SyntaxRuleType.Native,
|
|
2188
2188
|
unit: 'rem',
|
|
2189
2189
|
variables: [
|
|
2190
2190
|
'spacing'
|
|
@@ -2192,7 +2192,7 @@ const syntaxes = {
|
|
|
2192
2192
|
},
|
|
2193
2193
|
'scroll-padding-bottom': {
|
|
2194
2194
|
key: 'scroll-pb',
|
|
2195
|
-
|
|
2195
|
+
type: SyntaxRuleType.Native,
|
|
2196
2196
|
unit: 'rem',
|
|
2197
2197
|
variables: [
|
|
2198
2198
|
'spacing'
|
|
@@ -2201,7 +2201,7 @@ const syntaxes = {
|
|
|
2201
2201
|
'scroll-padding-x': {
|
|
2202
2202
|
key: 'scroll-px',
|
|
2203
2203
|
unit: 'rem',
|
|
2204
|
-
|
|
2204
|
+
type: SyntaxRuleType.Shorthand,
|
|
2205
2205
|
declare (value) {
|
|
2206
2206
|
return {
|
|
2207
2207
|
'scroll-padding-left': value,
|
|
@@ -2215,7 +2215,7 @@ const syntaxes = {
|
|
|
2215
2215
|
'scroll-padding-y': {
|
|
2216
2216
|
key: 'scroll-py',
|
|
2217
2217
|
unit: 'rem',
|
|
2218
|
-
|
|
2218
|
+
type: SyntaxRuleType.Shorthand,
|
|
2219
2219
|
declare (value) {
|
|
2220
2220
|
return {
|
|
2221
2221
|
'scroll-padding-top': value,
|
|
@@ -2229,7 +2229,7 @@ const syntaxes = {
|
|
|
2229
2229
|
'scroll-padding': {
|
|
2230
2230
|
key: 'scroll-p',
|
|
2231
2231
|
unit: 'rem',
|
|
2232
|
-
|
|
2232
|
+
type: SyntaxRuleType.NativeShorthand,
|
|
2233
2233
|
variables: [
|
|
2234
2234
|
'spacing'
|
|
2235
2235
|
]
|
|
@@ -2244,7 +2244,7 @@ const syntaxes = {
|
|
|
2244
2244
|
'end',
|
|
2245
2245
|
'center'
|
|
2246
2246
|
],
|
|
2247
|
-
|
|
2247
|
+
type: SyntaxRuleType.Native
|
|
2248
2248
|
},
|
|
2249
2249
|
'scroll-snap-stop': {
|
|
2250
2250
|
ambiguousKeys: [
|
|
@@ -2254,7 +2254,7 @@ const syntaxes = {
|
|
|
2254
2254
|
'normal',
|
|
2255
2255
|
'always'
|
|
2256
2256
|
],
|
|
2257
|
-
|
|
2257
|
+
type: SyntaxRuleType.Native
|
|
2258
2258
|
},
|
|
2259
2259
|
'scroll-snap-type': {
|
|
2260
2260
|
ambiguousKeys: [
|
|
@@ -2267,17 +2267,17 @@ const syntaxes = {
|
|
|
2267
2267
|
'inline',
|
|
2268
2268
|
'both'
|
|
2269
2269
|
],
|
|
2270
|
-
|
|
2270
|
+
type: SyntaxRuleType.Native
|
|
2271
2271
|
},
|
|
2272
2272
|
'will-change': {
|
|
2273
|
-
|
|
2273
|
+
type: SyntaxRuleType.Native
|
|
2274
2274
|
},
|
|
2275
2275
|
'writing-mode': {
|
|
2276
2276
|
key: 'writing',
|
|
2277
|
-
|
|
2277
|
+
type: SyntaxRuleType.Native
|
|
2278
2278
|
},
|
|
2279
2279
|
direction: {
|
|
2280
|
-
|
|
2280
|
+
type: SyntaxRuleType.Native
|
|
2281
2281
|
},
|
|
2282
2282
|
'shape-outside': {
|
|
2283
2283
|
ambiguousKeys: [
|
|
@@ -2286,7 +2286,7 @@ const syntaxes = {
|
|
|
2286
2286
|
ambiguousValues: [
|
|
2287
2287
|
/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/
|
|
2288
2288
|
],
|
|
2289
|
-
|
|
2289
|
+
type: SyntaxRuleType.Native
|
|
2290
2290
|
},
|
|
2291
2291
|
'shape-margin': {
|
|
2292
2292
|
ambiguousKeys: [
|
|
@@ -2296,23 +2296,23 @@ const syntaxes = {
|
|
|
2296
2296
|
NUMBER_VALUE_REGEX
|
|
2297
2297
|
],
|
|
2298
2298
|
unit: 'rem',
|
|
2299
|
-
|
|
2299
|
+
type: SyntaxRuleType.Native,
|
|
2300
2300
|
variables: [
|
|
2301
2301
|
'spacing'
|
|
2302
2302
|
]
|
|
2303
2303
|
},
|
|
2304
2304
|
'shape-image-threshold': {
|
|
2305
|
-
|
|
2305
|
+
type: SyntaxRuleType.Native
|
|
2306
2306
|
},
|
|
2307
2307
|
'clip-path': {
|
|
2308
2308
|
key: 'clip',
|
|
2309
|
-
|
|
2309
|
+
type: SyntaxRuleType.Native
|
|
2310
2310
|
},
|
|
2311
2311
|
quotes: {
|
|
2312
|
-
|
|
2312
|
+
type: SyntaxRuleType.Native
|
|
2313
2313
|
},
|
|
2314
2314
|
'mask-image': {
|
|
2315
|
-
|
|
2315
|
+
type: SyntaxRuleType.Native,
|
|
2316
2316
|
declare (value) {
|
|
2317
2317
|
return {
|
|
2318
2318
|
'-webkit-mask-image': value,
|
|
@@ -2322,4 +2322,4 @@ const syntaxes = {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
};
|
|
2324
2324
|
|
|
2325
|
-
export {
|
|
2325
|
+
export { rules as default };
|