@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,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var cssEscape = require('../shared/utils/css-escape.cjs');
|
|
4
|
-
var
|
|
4
|
+
var syntaxRuleType = require('../syntax-rule-type.cjs');
|
|
5
5
|
var common = require('../common.cjs');
|
|
6
6
|
var autofillSolidStyle = require('../utils/autofill-solid-style.cjs');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const rules = {
|
|
9
9
|
group: {
|
|
10
10
|
matcher: /^(?:.+?[*_>~+])?\{.+?\}/,
|
|
11
|
-
|
|
11
|
+
type: syntaxRuleType.Shorthand,
|
|
12
12
|
analyze (className) {
|
|
13
13
|
let i = 0;
|
|
14
14
|
for(; i < className.length; i++){
|
|
@@ -32,12 +32,12 @@ const syntaxes = {
|
|
|
32
32
|
};
|
|
33
33
|
const handleRule = (rule)=>{
|
|
34
34
|
const addProps = (cssText)=>{
|
|
35
|
-
const cssProperties = cssText.slice(cssEscape(rule.
|
|
35
|
+
const cssProperties = cssText.slice(cssEscape(rule.name).length).match(/\{(.*)\}/)?.[1].split(';');
|
|
36
36
|
if (cssProperties) for (const eachCssProperty of cssProperties){
|
|
37
37
|
addProp(eachCssProperty);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
for (const eachNative of rule.
|
|
40
|
+
for (const eachNative of rule.nodes){
|
|
41
41
|
addProps(eachNative.text);
|
|
42
42
|
}
|
|
43
43
|
// animation
|
|
@@ -107,9 +107,9 @@ const syntaxes = {
|
|
|
107
107
|
})('');
|
|
108
108
|
addName();
|
|
109
109
|
for (const eachName of names){
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
112
|
-
for (const eachRule of
|
|
110
|
+
const rules = this.css.generate(eachName, this.mode);
|
|
111
|
+
if (rules.length) {
|
|
112
|
+
for (const eachRule of rules){
|
|
113
113
|
handleRule(eachRule);
|
|
114
114
|
}
|
|
115
115
|
} else {
|
|
@@ -121,7 +121,7 @@ const syntaxes = {
|
|
|
121
121
|
},
|
|
122
122
|
variable: {
|
|
123
123
|
matcher: /^\$[\w-]+:/,
|
|
124
|
-
|
|
124
|
+
type: syntaxRuleType.Shorthand,
|
|
125
125
|
declare (value) {
|
|
126
126
|
return {
|
|
127
127
|
['--' + this.keyToken.slice(1, -1)]: value
|
|
@@ -137,7 +137,7 @@ const syntaxes = {
|
|
|
137
137
|
common.NUMBER_VALUE_REGEX
|
|
138
138
|
],
|
|
139
139
|
unit: 'rem',
|
|
140
|
-
|
|
140
|
+
type: syntaxRuleType.Native
|
|
141
141
|
},
|
|
142
142
|
'font-weight': {
|
|
143
143
|
ambiguousKeys: [
|
|
@@ -147,14 +147,14 @@ const syntaxes = {
|
|
|
147
147
|
ambiguousValues: [
|
|
148
148
|
'bolder'
|
|
149
149
|
],
|
|
150
|
-
|
|
150
|
+
type: syntaxRuleType.Native
|
|
151
151
|
},
|
|
152
152
|
'font-family': {
|
|
153
153
|
ambiguousKeys: [
|
|
154
154
|
'font',
|
|
155
155
|
'f'
|
|
156
156
|
],
|
|
157
|
-
|
|
157
|
+
type: syntaxRuleType.Native
|
|
158
158
|
},
|
|
159
159
|
'font-smoothing': {
|
|
160
160
|
ambiguousKeys: [
|
|
@@ -165,7 +165,7 @@ const syntaxes = {
|
|
|
165
165
|
'antialiased',
|
|
166
166
|
'subpixel-antialiased'
|
|
167
167
|
],
|
|
168
|
-
|
|
168
|
+
type: syntaxRuleType.Native,
|
|
169
169
|
declare (value) {
|
|
170
170
|
switch(value){
|
|
171
171
|
case 'subpixel-antialiased':
|
|
@@ -191,7 +191,7 @@ const syntaxes = {
|
|
|
191
191
|
'italic',
|
|
192
192
|
'oblique'
|
|
193
193
|
],
|
|
194
|
-
|
|
194
|
+
type: syntaxRuleType.Native,
|
|
195
195
|
unit: 'deg'
|
|
196
196
|
},
|
|
197
197
|
'font-variant-numeric': {
|
|
@@ -209,18 +209,18 @@ const syntaxes = {
|
|
|
209
209
|
'diagonal-fractions',
|
|
210
210
|
'stacked-fractions'
|
|
211
211
|
],
|
|
212
|
-
|
|
212
|
+
type: syntaxRuleType.Native
|
|
213
213
|
},
|
|
214
214
|
'font-variant': {
|
|
215
215
|
ambiguousKeys: [
|
|
216
216
|
'font',
|
|
217
217
|
'f'
|
|
218
218
|
],
|
|
219
|
-
|
|
219
|
+
type: syntaxRuleType.NativeShorthand
|
|
220
220
|
},
|
|
221
221
|
font: {
|
|
222
222
|
subkey: 'f',
|
|
223
|
-
|
|
223
|
+
type: syntaxRuleType.NativeShorthand,
|
|
224
224
|
variables: [
|
|
225
225
|
'font-family',
|
|
226
226
|
'font-variant',
|
|
@@ -232,11 +232,11 @@ const syntaxes = {
|
|
|
232
232
|
},
|
|
233
233
|
'font-feature-settings': {
|
|
234
234
|
key: 'font-feature',
|
|
235
|
-
|
|
235
|
+
type: syntaxRuleType.Native
|
|
236
236
|
},
|
|
237
237
|
color: {
|
|
238
238
|
key: 'fg',
|
|
239
|
-
|
|
239
|
+
type: syntaxRuleType.Native,
|
|
240
240
|
variables: [
|
|
241
241
|
'text'
|
|
242
242
|
]
|
|
@@ -244,7 +244,7 @@ const syntaxes = {
|
|
|
244
244
|
// margin
|
|
245
245
|
'margin-left': {
|
|
246
246
|
key: 'ml',
|
|
247
|
-
|
|
247
|
+
type: syntaxRuleType.Native,
|
|
248
248
|
unit: 'rem',
|
|
249
249
|
variables: [
|
|
250
250
|
'spacing'
|
|
@@ -252,7 +252,7 @@ const syntaxes = {
|
|
|
252
252
|
},
|
|
253
253
|
'margin-right': {
|
|
254
254
|
key: 'mr',
|
|
255
|
-
|
|
255
|
+
type: syntaxRuleType.Native,
|
|
256
256
|
unit: 'rem',
|
|
257
257
|
variables: [
|
|
258
258
|
'spacing'
|
|
@@ -260,7 +260,7 @@ const syntaxes = {
|
|
|
260
260
|
},
|
|
261
261
|
'margin-top': {
|
|
262
262
|
key: 'mt',
|
|
263
|
-
|
|
263
|
+
type: syntaxRuleType.Native,
|
|
264
264
|
unit: 'rem',
|
|
265
265
|
variables: [
|
|
266
266
|
'spacing'
|
|
@@ -268,7 +268,7 @@ const syntaxes = {
|
|
|
268
268
|
},
|
|
269
269
|
'margin-bottom': {
|
|
270
270
|
key: 'mb',
|
|
271
|
-
|
|
271
|
+
type: syntaxRuleType.Native,
|
|
272
272
|
unit: 'rem',
|
|
273
273
|
variables: [
|
|
274
274
|
'spacing'
|
|
@@ -278,7 +278,7 @@ const syntaxes = {
|
|
|
278
278
|
key: 'mx',
|
|
279
279
|
subkey: 'margin-x',
|
|
280
280
|
unit: 'rem',
|
|
281
|
-
|
|
281
|
+
type: syntaxRuleType.Shorthand,
|
|
282
282
|
declare (value) {
|
|
283
283
|
return {
|
|
284
284
|
'margin-left': value,
|
|
@@ -292,7 +292,7 @@ const syntaxes = {
|
|
|
292
292
|
'margin-y': {
|
|
293
293
|
key: 'my',
|
|
294
294
|
unit: 'rem',
|
|
295
|
-
|
|
295
|
+
type: syntaxRuleType.Shorthand,
|
|
296
296
|
declare (value) {
|
|
297
297
|
return {
|
|
298
298
|
'margin-top': value,
|
|
@@ -306,7 +306,7 @@ const syntaxes = {
|
|
|
306
306
|
margin: {
|
|
307
307
|
key: 'm',
|
|
308
308
|
unit: 'rem',
|
|
309
|
-
|
|
309
|
+
type: syntaxRuleType.NativeShorthand,
|
|
310
310
|
variables: [
|
|
311
311
|
'spacing'
|
|
312
312
|
]
|
|
@@ -314,7 +314,7 @@ const syntaxes = {
|
|
|
314
314
|
// margin inline
|
|
315
315
|
'margin-inline-start': {
|
|
316
316
|
key: 'mis',
|
|
317
|
-
|
|
317
|
+
type: syntaxRuleType.Native,
|
|
318
318
|
unit: 'rem',
|
|
319
319
|
variables: [
|
|
320
320
|
'spacing'
|
|
@@ -322,7 +322,7 @@ const syntaxes = {
|
|
|
322
322
|
},
|
|
323
323
|
'margin-inline-end': {
|
|
324
324
|
key: 'mie',
|
|
325
|
-
|
|
325
|
+
type: syntaxRuleType.Native,
|
|
326
326
|
unit: 'rem',
|
|
327
327
|
variables: [
|
|
328
328
|
'spacing'
|
|
@@ -331,7 +331,7 @@ const syntaxes = {
|
|
|
331
331
|
'margin-inline': {
|
|
332
332
|
key: 'mi',
|
|
333
333
|
unit: 'rem',
|
|
334
|
-
|
|
334
|
+
type: syntaxRuleType.NativeShorthand,
|
|
335
335
|
variables: [
|
|
336
336
|
'spacing'
|
|
337
337
|
]
|
|
@@ -339,7 +339,7 @@ const syntaxes = {
|
|
|
339
339
|
// padding
|
|
340
340
|
'padding-left': {
|
|
341
341
|
key: 'pl',
|
|
342
|
-
|
|
342
|
+
type: syntaxRuleType.Native,
|
|
343
343
|
unit: 'rem',
|
|
344
344
|
variables: [
|
|
345
345
|
'spacing'
|
|
@@ -347,7 +347,7 @@ const syntaxes = {
|
|
|
347
347
|
},
|
|
348
348
|
'padding-right': {
|
|
349
349
|
key: 'pr',
|
|
350
|
-
|
|
350
|
+
type: syntaxRuleType.Native,
|
|
351
351
|
unit: 'rem',
|
|
352
352
|
variables: [
|
|
353
353
|
'spacing'
|
|
@@ -355,7 +355,7 @@ const syntaxes = {
|
|
|
355
355
|
},
|
|
356
356
|
'padding-top': {
|
|
357
357
|
key: 'pt',
|
|
358
|
-
|
|
358
|
+
type: syntaxRuleType.Native,
|
|
359
359
|
unit: 'rem',
|
|
360
360
|
variables: [
|
|
361
361
|
'spacing'
|
|
@@ -363,7 +363,7 @@ const syntaxes = {
|
|
|
363
363
|
},
|
|
364
364
|
'padding-bottom': {
|
|
365
365
|
key: 'pb',
|
|
366
|
-
|
|
366
|
+
type: syntaxRuleType.Native,
|
|
367
367
|
unit: 'rem',
|
|
368
368
|
variables: [
|
|
369
369
|
'spacing'
|
|
@@ -372,7 +372,7 @@ const syntaxes = {
|
|
|
372
372
|
'padding-x': {
|
|
373
373
|
key: 'px',
|
|
374
374
|
unit: 'rem',
|
|
375
|
-
|
|
375
|
+
type: syntaxRuleType.Shorthand,
|
|
376
376
|
declare (value) {
|
|
377
377
|
return {
|
|
378
378
|
'padding-left': value,
|
|
@@ -386,7 +386,7 @@ const syntaxes = {
|
|
|
386
386
|
'padding-y': {
|
|
387
387
|
key: 'py',
|
|
388
388
|
unit: 'rem',
|
|
389
|
-
|
|
389
|
+
type: syntaxRuleType.Shorthand,
|
|
390
390
|
declare (value) {
|
|
391
391
|
return {
|
|
392
392
|
'padding-top': value,
|
|
@@ -400,7 +400,7 @@ const syntaxes = {
|
|
|
400
400
|
padding: {
|
|
401
401
|
key: 'p',
|
|
402
402
|
unit: 'rem',
|
|
403
|
-
|
|
403
|
+
type: syntaxRuleType.NativeShorthand,
|
|
404
404
|
variables: [
|
|
405
405
|
'spacing'
|
|
406
406
|
]
|
|
@@ -408,7 +408,7 @@ const syntaxes = {
|
|
|
408
408
|
// padding inline
|
|
409
409
|
'padding-inline-start': {
|
|
410
410
|
key: 'pis',
|
|
411
|
-
|
|
411
|
+
type: syntaxRuleType.Native,
|
|
412
412
|
unit: 'rem',
|
|
413
413
|
variables: [
|
|
414
414
|
'spacing'
|
|
@@ -416,7 +416,7 @@ const syntaxes = {
|
|
|
416
416
|
},
|
|
417
417
|
'padding-inline-end': {
|
|
418
418
|
key: 'pie',
|
|
419
|
-
|
|
419
|
+
type: syntaxRuleType.Native,
|
|
420
420
|
unit: 'rem',
|
|
421
421
|
variables: [
|
|
422
422
|
'spacing'
|
|
@@ -425,7 +425,7 @@ const syntaxes = {
|
|
|
425
425
|
'padding-inline': {
|
|
426
426
|
key: 'pi',
|
|
427
427
|
unit: 'rem',
|
|
428
|
-
|
|
428
|
+
type: syntaxRuleType.NativeShorthand,
|
|
429
429
|
variables: [
|
|
430
430
|
'spacing'
|
|
431
431
|
]
|
|
@@ -436,7 +436,7 @@ const syntaxes = {
|
|
|
436
436
|
'flex'
|
|
437
437
|
],
|
|
438
438
|
unit: 'rem',
|
|
439
|
-
|
|
439
|
+
type: syntaxRuleType.Native
|
|
440
440
|
},
|
|
441
441
|
'flex-wrap': {
|
|
442
442
|
ambiguousKeys: [
|
|
@@ -447,19 +447,19 @@ const syntaxes = {
|
|
|
447
447
|
'nowrap',
|
|
448
448
|
'wrap-reverse'
|
|
449
449
|
],
|
|
450
|
-
|
|
450
|
+
type: syntaxRuleType.Native
|
|
451
451
|
},
|
|
452
452
|
'flex-grow': {
|
|
453
453
|
ambiguousKeys: [
|
|
454
454
|
'flex'
|
|
455
455
|
],
|
|
456
|
-
|
|
456
|
+
type: syntaxRuleType.Native
|
|
457
457
|
},
|
|
458
458
|
'flex-shrink': {
|
|
459
459
|
ambiguousKeys: [
|
|
460
460
|
'flex'
|
|
461
461
|
],
|
|
462
|
-
|
|
462
|
+
type: syntaxRuleType.Native
|
|
463
463
|
},
|
|
464
464
|
'flex-direction': {
|
|
465
465
|
ambiguousKeys: [
|
|
@@ -471,37 +471,37 @@ const syntaxes = {
|
|
|
471
471
|
'column',
|
|
472
472
|
'column-reverse'
|
|
473
473
|
],
|
|
474
|
-
|
|
474
|
+
type: syntaxRuleType.Native
|
|
475
475
|
},
|
|
476
476
|
flex: {
|
|
477
|
-
|
|
477
|
+
type: syntaxRuleType.NativeShorthand
|
|
478
478
|
},
|
|
479
479
|
display: {
|
|
480
480
|
key: 'd',
|
|
481
|
-
|
|
481
|
+
type: syntaxRuleType.Native
|
|
482
482
|
},
|
|
483
483
|
width: {
|
|
484
484
|
key: 'w',
|
|
485
485
|
unit: 'rem',
|
|
486
|
-
|
|
486
|
+
type: syntaxRuleType.Native
|
|
487
487
|
},
|
|
488
488
|
height: {
|
|
489
489
|
key: 'h',
|
|
490
490
|
unit: 'rem',
|
|
491
|
-
|
|
491
|
+
type: syntaxRuleType.Native
|
|
492
492
|
},
|
|
493
493
|
'min-width': {
|
|
494
494
|
key: 'min-w',
|
|
495
495
|
unit: 'rem',
|
|
496
|
-
|
|
496
|
+
type: syntaxRuleType.Native
|
|
497
497
|
},
|
|
498
498
|
'min-height': {
|
|
499
499
|
key: 'min-h',
|
|
500
500
|
unit: 'rem',
|
|
501
|
-
|
|
501
|
+
type: syntaxRuleType.Native
|
|
502
502
|
},
|
|
503
503
|
size: {
|
|
504
|
-
|
|
504
|
+
type: syntaxRuleType.Shorthand,
|
|
505
505
|
unit: 'rem',
|
|
506
506
|
declare (_value, valueComponents) {
|
|
507
507
|
const length = valueComponents.length;
|
|
@@ -513,7 +513,7 @@ const syntaxes = {
|
|
|
513
513
|
},
|
|
514
514
|
'min-size': {
|
|
515
515
|
key: 'min',
|
|
516
|
-
|
|
516
|
+
type: syntaxRuleType.Shorthand,
|
|
517
517
|
unit: 'rem',
|
|
518
518
|
declare (_value, valueComponents) {
|
|
519
519
|
const length = valueComponents.length;
|
|
@@ -525,7 +525,7 @@ const syntaxes = {
|
|
|
525
525
|
},
|
|
526
526
|
'max-size': {
|
|
527
527
|
key: 'max',
|
|
528
|
-
|
|
528
|
+
type: syntaxRuleType.Shorthand,
|
|
529
529
|
unit: 'rem',
|
|
530
530
|
declare (_value, valueComponents) {
|
|
531
531
|
const length = valueComponents.length;
|
|
@@ -539,11 +539,11 @@ const syntaxes = {
|
|
|
539
539
|
ambiguousKeys: [
|
|
540
540
|
'box'
|
|
541
541
|
],
|
|
542
|
-
|
|
542
|
+
type: syntaxRuleType.Native
|
|
543
543
|
},
|
|
544
544
|
'box-decoration-break': {
|
|
545
545
|
key: 'box-decoration',
|
|
546
|
-
|
|
546
|
+
type: syntaxRuleType.Native,
|
|
547
547
|
declare (value) {
|
|
548
548
|
return {
|
|
549
549
|
'-webkit-box-decoration-break': value,
|
|
@@ -552,27 +552,27 @@ const syntaxes = {
|
|
|
552
552
|
}
|
|
553
553
|
},
|
|
554
554
|
contain: {
|
|
555
|
-
|
|
555
|
+
type: syntaxRuleType.Native
|
|
556
556
|
},
|
|
557
557
|
content: {
|
|
558
|
-
|
|
558
|
+
type: syntaxRuleType.Native
|
|
559
559
|
},
|
|
560
560
|
'counter-increment': {
|
|
561
|
-
|
|
561
|
+
type: syntaxRuleType.Native
|
|
562
562
|
},
|
|
563
563
|
'counter-reset': {
|
|
564
|
-
|
|
564
|
+
type: syntaxRuleType.Native
|
|
565
565
|
},
|
|
566
566
|
'letter-spacing': {
|
|
567
567
|
key: 'tracking',
|
|
568
568
|
subkey: 'ls',
|
|
569
|
-
|
|
569
|
+
type: syntaxRuleType.Native,
|
|
570
570
|
unit: 'em'
|
|
571
571
|
},
|
|
572
572
|
'line-height': {
|
|
573
573
|
key: 'leading',
|
|
574
574
|
subkey: 'line-h',
|
|
575
|
-
|
|
575
|
+
type: syntaxRuleType.Native
|
|
576
576
|
},
|
|
577
577
|
'object-fit': {
|
|
578
578
|
ambiguousKeys: [
|
|
@@ -585,7 +585,7 @@ const syntaxes = {
|
|
|
585
585
|
'fill',
|
|
586
586
|
'scale-down'
|
|
587
587
|
],
|
|
588
|
-
|
|
588
|
+
type: syntaxRuleType.Native
|
|
589
589
|
},
|
|
590
590
|
'object-position': {
|
|
591
591
|
ambiguousKeys: [
|
|
@@ -599,7 +599,7 @@ const syntaxes = {
|
|
|
599
599
|
'left',
|
|
600
600
|
'center'
|
|
601
601
|
],
|
|
602
|
-
|
|
602
|
+
type: syntaxRuleType.Native
|
|
603
603
|
},
|
|
604
604
|
'text-align': {
|
|
605
605
|
ambiguousKeys: [
|
|
@@ -614,7 +614,7 @@ const syntaxes = {
|
|
|
614
614
|
'start',
|
|
615
615
|
'end'
|
|
616
616
|
],
|
|
617
|
-
|
|
617
|
+
type: syntaxRuleType.Native
|
|
618
618
|
},
|
|
619
619
|
'text-decoration-color': {
|
|
620
620
|
ambiguousKeys: [
|
|
@@ -623,7 +623,7 @@ const syntaxes = {
|
|
|
623
623
|
ambiguousValues: [
|
|
624
624
|
common.COLOR_VALUE_REGEX
|
|
625
625
|
],
|
|
626
|
-
|
|
626
|
+
type: syntaxRuleType.Native,
|
|
627
627
|
variables: [
|
|
628
628
|
'text'
|
|
629
629
|
]
|
|
@@ -639,7 +639,7 @@ const syntaxes = {
|
|
|
639
639
|
'dashed',
|
|
640
640
|
'wavy'
|
|
641
641
|
],
|
|
642
|
-
|
|
642
|
+
type: syntaxRuleType.Native
|
|
643
643
|
},
|
|
644
644
|
'text-decoration-thickness': {
|
|
645
645
|
ambiguousKeys: [
|
|
@@ -649,7 +649,7 @@ const syntaxes = {
|
|
|
649
649
|
'from-font',
|
|
650
650
|
common.NUMBER_VALUE_REGEX
|
|
651
651
|
],
|
|
652
|
-
|
|
652
|
+
type: syntaxRuleType.Native,
|
|
653
653
|
unit: 'em'
|
|
654
654
|
},
|
|
655
655
|
'text-decoration-line': {
|
|
@@ -661,7 +661,7 @@ const syntaxes = {
|
|
|
661
661
|
'overline',
|
|
662
662
|
'line-through'
|
|
663
663
|
],
|
|
664
|
-
|
|
664
|
+
type: syntaxRuleType.Native
|
|
665
665
|
},
|
|
666
666
|
'text-decoration': {
|
|
667
667
|
ambiguousKeys: [
|
|
@@ -674,7 +674,7 @@ const syntaxes = {
|
|
|
674
674
|
'line-through'
|
|
675
675
|
],
|
|
676
676
|
unit: 'rem',
|
|
677
|
-
|
|
677
|
+
type: syntaxRuleType.NativeShorthand,
|
|
678
678
|
variables: [
|
|
679
679
|
'text'
|
|
680
680
|
],
|
|
@@ -690,7 +690,7 @@ const syntaxes = {
|
|
|
690
690
|
'text-underline'
|
|
691
691
|
],
|
|
692
692
|
unit: 'rem',
|
|
693
|
-
|
|
693
|
+
type: syntaxRuleType.Native,
|
|
694
694
|
variables: [
|
|
695
695
|
'spacing'
|
|
696
696
|
]
|
|
@@ -705,7 +705,7 @@ const syntaxes = {
|
|
|
705
705
|
'left',
|
|
706
706
|
'right'
|
|
707
707
|
],
|
|
708
|
-
|
|
708
|
+
type: syntaxRuleType.Native
|
|
709
709
|
},
|
|
710
710
|
'text-overflow': {
|
|
711
711
|
ambiguousKeys: [
|
|
@@ -716,7 +716,7 @@ const syntaxes = {
|
|
|
716
716
|
'ellipsis',
|
|
717
717
|
'clip'
|
|
718
718
|
],
|
|
719
|
-
|
|
719
|
+
type: syntaxRuleType.Native
|
|
720
720
|
},
|
|
721
721
|
'text-orientation': {
|
|
722
722
|
ambiguousKeys: [
|
|
@@ -730,7 +730,7 @@ const syntaxes = {
|
|
|
730
730
|
'sideways',
|
|
731
731
|
'use-glyph-orientation'
|
|
732
732
|
],
|
|
733
|
-
|
|
733
|
+
type: syntaxRuleType.Native
|
|
734
734
|
},
|
|
735
735
|
'text-transform': {
|
|
736
736
|
ambiguousKeys: [
|
|
@@ -742,7 +742,7 @@ const syntaxes = {
|
|
|
742
742
|
'lowercase',
|
|
743
743
|
'capitalize'
|
|
744
744
|
],
|
|
745
|
-
|
|
745
|
+
type: syntaxRuleType.Native
|
|
746
746
|
},
|
|
747
747
|
'text-rendering': {
|
|
748
748
|
ambiguousKeys: [
|
|
@@ -754,7 +754,7 @@ const syntaxes = {
|
|
|
754
754
|
'optimizeLegibility',
|
|
755
755
|
'geometricPrecision'
|
|
756
756
|
],
|
|
757
|
-
|
|
757
|
+
type: syntaxRuleType.Native
|
|
758
758
|
},
|
|
759
759
|
'text-wrap': {
|
|
760
760
|
ambiguousKeys: [
|
|
@@ -767,47 +767,47 @@ const syntaxes = {
|
|
|
767
767
|
'balance',
|
|
768
768
|
'pretty'
|
|
769
769
|
],
|
|
770
|
-
|
|
770
|
+
type: syntaxRuleType.NativeShorthand
|
|
771
771
|
},
|
|
772
772
|
'text-indent': {
|
|
773
773
|
unit: 'rem',
|
|
774
|
-
|
|
774
|
+
type: syntaxRuleType.Native
|
|
775
775
|
},
|
|
776
776
|
'vertical-align': {
|
|
777
777
|
key: 'v',
|
|
778
778
|
subkey: 'vertical',
|
|
779
|
-
|
|
779
|
+
type: syntaxRuleType.Native
|
|
780
780
|
},
|
|
781
781
|
columns: {
|
|
782
782
|
key: 'cols',
|
|
783
|
-
|
|
783
|
+
type: syntaxRuleType.NativeShorthand
|
|
784
784
|
},
|
|
785
785
|
'white-space': {
|
|
786
|
-
|
|
786
|
+
type: syntaxRuleType.Native
|
|
787
787
|
},
|
|
788
788
|
top: {
|
|
789
|
-
|
|
789
|
+
type: syntaxRuleType.Native,
|
|
790
790
|
unit: 'rem',
|
|
791
791
|
variables: [
|
|
792
792
|
'spacing'
|
|
793
793
|
]
|
|
794
794
|
},
|
|
795
795
|
bottom: {
|
|
796
|
-
|
|
796
|
+
type: syntaxRuleType.Native,
|
|
797
797
|
unit: 'rem',
|
|
798
798
|
variables: [
|
|
799
799
|
'spacing'
|
|
800
800
|
]
|
|
801
801
|
},
|
|
802
802
|
left: {
|
|
803
|
-
|
|
803
|
+
type: syntaxRuleType.Native,
|
|
804
804
|
unit: 'rem',
|
|
805
805
|
variables: [
|
|
806
806
|
'spacing'
|
|
807
807
|
]
|
|
808
808
|
},
|
|
809
809
|
right: {
|
|
810
|
-
|
|
810
|
+
type: syntaxRuleType.Native,
|
|
811
811
|
unit: 'rem',
|
|
812
812
|
variables: [
|
|
813
813
|
'spacing'
|
|
@@ -815,7 +815,7 @@ const syntaxes = {
|
|
|
815
815
|
},
|
|
816
816
|
inset: {
|
|
817
817
|
unit: 'rem',
|
|
818
|
-
|
|
818
|
+
type: syntaxRuleType.NativeShorthand,
|
|
819
819
|
variables: [
|
|
820
820
|
'spacing'
|
|
821
821
|
]
|
|
@@ -823,30 +823,30 @@ const syntaxes = {
|
|
|
823
823
|
'max-height': {
|
|
824
824
|
key: 'max-h',
|
|
825
825
|
unit: 'rem',
|
|
826
|
-
|
|
826
|
+
type: syntaxRuleType.Native
|
|
827
827
|
},
|
|
828
828
|
'max-width': {
|
|
829
829
|
key: 'max-w',
|
|
830
830
|
unit: 'rem',
|
|
831
|
-
|
|
831
|
+
type: syntaxRuleType.Native
|
|
832
832
|
},
|
|
833
833
|
opacity: {
|
|
834
|
-
|
|
834
|
+
type: syntaxRuleType.Native
|
|
835
835
|
},
|
|
836
836
|
visibility: {
|
|
837
|
-
|
|
837
|
+
type: syntaxRuleType.Native
|
|
838
838
|
},
|
|
839
839
|
clear: {
|
|
840
|
-
|
|
840
|
+
type: syntaxRuleType.Native
|
|
841
841
|
},
|
|
842
842
|
float: {
|
|
843
|
-
|
|
843
|
+
type: syntaxRuleType.Native
|
|
844
844
|
},
|
|
845
845
|
isolation: {
|
|
846
|
-
|
|
846
|
+
type: syntaxRuleType.Native
|
|
847
847
|
},
|
|
848
848
|
'overflow-x': {
|
|
849
|
-
|
|
849
|
+
type: syntaxRuleType.Native,
|
|
850
850
|
declare (value) {
|
|
851
851
|
return value === 'overlay' ? {
|
|
852
852
|
'overflow-x': [
|
|
@@ -859,7 +859,7 @@ const syntaxes = {
|
|
|
859
859
|
}
|
|
860
860
|
},
|
|
861
861
|
'overflow-y': {
|
|
862
|
-
|
|
862
|
+
type: syntaxRuleType.Native,
|
|
863
863
|
declare (value) {
|
|
864
864
|
return value === 'overlay' ? {
|
|
865
865
|
'overflow-y': [
|
|
@@ -872,7 +872,7 @@ const syntaxes = {
|
|
|
872
872
|
}
|
|
873
873
|
},
|
|
874
874
|
overflow: {
|
|
875
|
-
|
|
875
|
+
type: syntaxRuleType.NativeShorthand,
|
|
876
876
|
declare (value) {
|
|
877
877
|
return value === 'overlay' ? {
|
|
878
878
|
overflow: [
|
|
@@ -885,42 +885,42 @@ const syntaxes = {
|
|
|
885
885
|
}
|
|
886
886
|
},
|
|
887
887
|
'overscroll-behavior-x': {
|
|
888
|
-
|
|
888
|
+
type: syntaxRuleType.Native
|
|
889
889
|
},
|
|
890
890
|
'overscroll-behavior-y': {
|
|
891
|
-
|
|
891
|
+
type: syntaxRuleType.Native
|
|
892
892
|
},
|
|
893
893
|
'overscroll-behavior': {
|
|
894
|
-
|
|
894
|
+
type: syntaxRuleType.NativeShorthand
|
|
895
895
|
},
|
|
896
896
|
'z-index': {
|
|
897
897
|
key: 'z',
|
|
898
|
-
|
|
898
|
+
type: syntaxRuleType.Native
|
|
899
899
|
},
|
|
900
900
|
position: {
|
|
901
|
-
|
|
901
|
+
type: syntaxRuleType.Native
|
|
902
902
|
},
|
|
903
903
|
cursor: {
|
|
904
|
-
|
|
904
|
+
type: syntaxRuleType.Native
|
|
905
905
|
},
|
|
906
906
|
'pointer-events': {
|
|
907
|
-
|
|
907
|
+
type: syntaxRuleType.Native
|
|
908
908
|
},
|
|
909
909
|
resize: {
|
|
910
|
-
|
|
910
|
+
type: syntaxRuleType.Native
|
|
911
911
|
},
|
|
912
912
|
'touch-action': {
|
|
913
|
-
|
|
913
|
+
type: syntaxRuleType.Native
|
|
914
914
|
},
|
|
915
915
|
'word-break': {
|
|
916
|
-
|
|
916
|
+
type: syntaxRuleType.Native
|
|
917
917
|
},
|
|
918
918
|
'word-spacing': {
|
|
919
|
-
|
|
919
|
+
type: syntaxRuleType.Native,
|
|
920
920
|
unit: 'em'
|
|
921
921
|
},
|
|
922
922
|
'user-drag': {
|
|
923
|
-
|
|
923
|
+
type: syntaxRuleType.Native,
|
|
924
924
|
declare (value) {
|
|
925
925
|
return {
|
|
926
926
|
'-webkit-user-drag': value,
|
|
@@ -929,7 +929,7 @@ const syntaxes = {
|
|
|
929
929
|
}
|
|
930
930
|
},
|
|
931
931
|
'user-select': {
|
|
932
|
-
|
|
932
|
+
type: syntaxRuleType.Native,
|
|
933
933
|
declare (value) {
|
|
934
934
|
return {
|
|
935
935
|
'-webkit-user-select': value,
|
|
@@ -939,7 +939,7 @@ const syntaxes = {
|
|
|
939
939
|
},
|
|
940
940
|
'text-shadow': {
|
|
941
941
|
unit: 'rem',
|
|
942
|
-
|
|
942
|
+
type: syntaxRuleType.Native
|
|
943
943
|
},
|
|
944
944
|
'text-size': {
|
|
945
945
|
ambiguousKeys: [
|
|
@@ -957,7 +957,7 @@ const syntaxes = {
|
|
|
957
957
|
'line-height': `calc(${value} + ${diff}em)`
|
|
958
958
|
};
|
|
959
959
|
},
|
|
960
|
-
|
|
960
|
+
type: syntaxRuleType.Shorthand
|
|
961
961
|
},
|
|
962
962
|
'text-fill-color': {
|
|
963
963
|
ambiguousKeys: [
|
|
@@ -967,7 +967,7 @@ const syntaxes = {
|
|
|
967
967
|
ambiguousValues: [
|
|
968
968
|
common.COLOR_VALUE_REGEX
|
|
969
969
|
],
|
|
970
|
-
|
|
970
|
+
type: syntaxRuleType.Native,
|
|
971
971
|
variables: [
|
|
972
972
|
'text'
|
|
973
973
|
],
|
|
@@ -988,7 +988,7 @@ const syntaxes = {
|
|
|
988
988
|
common.NUMBER_VALUE_REGEX
|
|
989
989
|
],
|
|
990
990
|
unit: 'rem',
|
|
991
|
-
|
|
991
|
+
type: syntaxRuleType.Native,
|
|
992
992
|
declare (value) {
|
|
993
993
|
return {
|
|
994
994
|
'-webkit-text-stroke-width': value
|
|
@@ -1002,7 +1002,7 @@ const syntaxes = {
|
|
|
1002
1002
|
ambiguousValues: [
|
|
1003
1003
|
common.COLOR_VALUE_REGEX
|
|
1004
1004
|
],
|
|
1005
|
-
|
|
1005
|
+
type: syntaxRuleType.Native,
|
|
1006
1006
|
declare (value) {
|
|
1007
1007
|
return {
|
|
1008
1008
|
'-webkit-text-stroke-color': value
|
|
@@ -1011,7 +1011,7 @@ const syntaxes = {
|
|
|
1011
1011
|
},
|
|
1012
1012
|
'text-stroke': {
|
|
1013
1013
|
unit: 'rem',
|
|
1014
|
-
|
|
1014
|
+
type: syntaxRuleType.Native,
|
|
1015
1015
|
declare (value) {
|
|
1016
1016
|
return {
|
|
1017
1017
|
'-webkit-text-stroke': value
|
|
@@ -1030,22 +1030,22 @@ const syntaxes = {
|
|
|
1030
1030
|
'text-overflow': 'ellipsis'
|
|
1031
1031
|
};
|
|
1032
1032
|
},
|
|
1033
|
-
|
|
1033
|
+
type: syntaxRuleType.Shorthand
|
|
1034
1034
|
},
|
|
1035
1035
|
'box-shadow': {
|
|
1036
1036
|
key: 'shadow',
|
|
1037
1037
|
subkey: 's',
|
|
1038
1038
|
unit: 'rem',
|
|
1039
|
-
|
|
1039
|
+
type: syntaxRuleType.Native
|
|
1040
1040
|
},
|
|
1041
1041
|
'table-layout': {
|
|
1042
|
-
|
|
1042
|
+
type: syntaxRuleType.Native
|
|
1043
1043
|
},
|
|
1044
1044
|
'transform-box': {
|
|
1045
1045
|
ambiguousKeys: [
|
|
1046
1046
|
'transform'
|
|
1047
1047
|
],
|
|
1048
|
-
|
|
1048
|
+
type: syntaxRuleType.Native
|
|
1049
1049
|
},
|
|
1050
1050
|
'transform-style': {
|
|
1051
1051
|
ambiguousKeys: [
|
|
@@ -1055,7 +1055,7 @@ const syntaxes = {
|
|
|
1055
1055
|
'flat',
|
|
1056
1056
|
'preserve-3d'
|
|
1057
1057
|
],
|
|
1058
|
-
|
|
1058
|
+
type: syntaxRuleType.Native
|
|
1059
1059
|
},
|
|
1060
1060
|
'transform-origin': {
|
|
1061
1061
|
ambiguousKeys: [
|
|
@@ -1070,11 +1070,11 @@ const syntaxes = {
|
|
|
1070
1070
|
common.NUMBER_VALUE_REGEX
|
|
1071
1071
|
],
|
|
1072
1072
|
unit: 'px',
|
|
1073
|
-
|
|
1073
|
+
type: syntaxRuleType.Native
|
|
1074
1074
|
},
|
|
1075
1075
|
transform: {
|
|
1076
1076
|
matcher: /^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,
|
|
1077
|
-
|
|
1077
|
+
type: syntaxRuleType.Native,
|
|
1078
1078
|
analyze (className) {
|
|
1079
1079
|
return [
|
|
1080
1080
|
className.startsWith('transform') ? className.slice(10) : className
|
|
@@ -1087,20 +1087,20 @@ const syntaxes = {
|
|
|
1087
1087
|
},
|
|
1088
1088
|
'transition-property': {
|
|
1089
1089
|
key: '~property',
|
|
1090
|
-
|
|
1090
|
+
type: syntaxRuleType.Native
|
|
1091
1091
|
},
|
|
1092
1092
|
'transition-timing-function': {
|
|
1093
1093
|
key: '~easing',
|
|
1094
|
-
|
|
1094
|
+
type: syntaxRuleType.Native
|
|
1095
1095
|
},
|
|
1096
1096
|
'transition-duration': {
|
|
1097
1097
|
key: '~duration',
|
|
1098
|
-
|
|
1098
|
+
type: syntaxRuleType.Native,
|
|
1099
1099
|
unit: 'ms'
|
|
1100
1100
|
},
|
|
1101
1101
|
'transition-delay': {
|
|
1102
1102
|
key: '~delay',
|
|
1103
|
-
|
|
1103
|
+
type: syntaxRuleType.Native,
|
|
1104
1104
|
unit: 'ms'
|
|
1105
1105
|
},
|
|
1106
1106
|
transition: {
|
|
@@ -1118,46 +1118,46 @@ const syntaxes = {
|
|
|
1118
1118
|
];
|
|
1119
1119
|
}
|
|
1120
1120
|
},
|
|
1121
|
-
|
|
1121
|
+
type: syntaxRuleType.NativeShorthand
|
|
1122
1122
|
},
|
|
1123
1123
|
'animation-delay': {
|
|
1124
1124
|
key: '@delay',
|
|
1125
|
-
|
|
1125
|
+
type: syntaxRuleType.Native,
|
|
1126
1126
|
unit: 'ms'
|
|
1127
1127
|
},
|
|
1128
1128
|
'animation-direction': {
|
|
1129
1129
|
key: '@direction',
|
|
1130
|
-
|
|
1130
|
+
type: syntaxRuleType.Native
|
|
1131
1131
|
},
|
|
1132
1132
|
'animation-duration': {
|
|
1133
1133
|
key: '@duration',
|
|
1134
|
-
|
|
1134
|
+
type: syntaxRuleType.Native,
|
|
1135
1135
|
unit: 'ms'
|
|
1136
1136
|
},
|
|
1137
1137
|
'animation-fill-mode': {
|
|
1138
1138
|
key: '@fill',
|
|
1139
|
-
|
|
1139
|
+
type: syntaxRuleType.Native
|
|
1140
1140
|
},
|
|
1141
1141
|
'animation-iteration-count': {
|
|
1142
1142
|
key: '@iteration',
|
|
1143
|
-
|
|
1143
|
+
type: syntaxRuleType.Native
|
|
1144
1144
|
},
|
|
1145
1145
|
'animation-name': {
|
|
1146
1146
|
key: '@name',
|
|
1147
|
-
|
|
1147
|
+
type: syntaxRuleType.Native,
|
|
1148
1148
|
includeAnimations: true
|
|
1149
1149
|
},
|
|
1150
1150
|
'animation-play-state': {
|
|
1151
1151
|
key: '@play',
|
|
1152
|
-
|
|
1152
|
+
type: syntaxRuleType.Native
|
|
1153
1153
|
},
|
|
1154
1154
|
'animation-timing-function': {
|
|
1155
1155
|
key: '@easing',
|
|
1156
|
-
|
|
1156
|
+
type: syntaxRuleType.Native
|
|
1157
1157
|
},
|
|
1158
1158
|
animation: {
|
|
1159
1159
|
sign: '@',
|
|
1160
|
-
|
|
1160
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1161
1161
|
includeAnimations: true,
|
|
1162
1162
|
analyze (className) {
|
|
1163
1163
|
if (className.startsWith('@')) {
|
|
@@ -1182,11 +1182,11 @@ const syntaxes = {
|
|
|
1182
1182
|
'collapse',
|
|
1183
1183
|
'separate'
|
|
1184
1184
|
],
|
|
1185
|
-
|
|
1185
|
+
type: syntaxRuleType.Native
|
|
1186
1186
|
},
|
|
1187
1187
|
'border-spacing': {
|
|
1188
1188
|
unit: 'rem',
|
|
1189
|
-
|
|
1189
|
+
type: syntaxRuleType.Native,
|
|
1190
1190
|
variables: [
|
|
1191
1191
|
'spacing'
|
|
1192
1192
|
]
|
|
@@ -1200,7 +1200,7 @@ const syntaxes = {
|
|
|
1200
1200
|
ambiguousValues: [
|
|
1201
1201
|
common.COLOR_VALUE_REGEX
|
|
1202
1202
|
],
|
|
1203
|
-
|
|
1203
|
+
type: syntaxRuleType.Native,
|
|
1204
1204
|
variables: [
|
|
1205
1205
|
'frame'
|
|
1206
1206
|
]
|
|
@@ -1213,7 +1213,7 @@ const syntaxes = {
|
|
|
1213
1213
|
ambiguousValues: [
|
|
1214
1214
|
common.COLOR_VALUE_REGEX
|
|
1215
1215
|
],
|
|
1216
|
-
|
|
1216
|
+
type: syntaxRuleType.Native,
|
|
1217
1217
|
variables: [
|
|
1218
1218
|
'frame'
|
|
1219
1219
|
]
|
|
@@ -1226,7 +1226,7 @@ const syntaxes = {
|
|
|
1226
1226
|
ambiguousValues: [
|
|
1227
1227
|
common.COLOR_VALUE_REGEX
|
|
1228
1228
|
],
|
|
1229
|
-
|
|
1229
|
+
type: syntaxRuleType.Native,
|
|
1230
1230
|
variables: [
|
|
1231
1231
|
'frame'
|
|
1232
1232
|
]
|
|
@@ -1239,7 +1239,7 @@ const syntaxes = {
|
|
|
1239
1239
|
ambiguousValues: [
|
|
1240
1240
|
common.COLOR_VALUE_REGEX
|
|
1241
1241
|
],
|
|
1242
|
-
|
|
1242
|
+
type: syntaxRuleType.Native,
|
|
1243
1243
|
variables: [
|
|
1244
1244
|
'frame'
|
|
1245
1245
|
]
|
|
@@ -1252,7 +1252,7 @@ const syntaxes = {
|
|
|
1252
1252
|
ambiguousValues: [
|
|
1253
1253
|
common.COLOR_VALUE_REGEX
|
|
1254
1254
|
],
|
|
1255
|
-
|
|
1255
|
+
type: syntaxRuleType.Shorthand,
|
|
1256
1256
|
variables: [
|
|
1257
1257
|
'frame'
|
|
1258
1258
|
],
|
|
@@ -1271,7 +1271,7 @@ const syntaxes = {
|
|
|
1271
1271
|
ambiguousValues: [
|
|
1272
1272
|
common.COLOR_VALUE_REGEX
|
|
1273
1273
|
],
|
|
1274
|
-
|
|
1274
|
+
type: syntaxRuleType.Shorthand,
|
|
1275
1275
|
variables: [
|
|
1276
1276
|
'frame'
|
|
1277
1277
|
],
|
|
@@ -1290,7 +1290,7 @@ const syntaxes = {
|
|
|
1290
1290
|
ambiguousValues: [
|
|
1291
1291
|
common.COLOR_VALUE_REGEX
|
|
1292
1292
|
],
|
|
1293
|
-
|
|
1293
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1294
1294
|
variables: [
|
|
1295
1295
|
'frame'
|
|
1296
1296
|
]
|
|
@@ -1299,27 +1299,27 @@ const syntaxes = {
|
|
|
1299
1299
|
'border-top-left-radius': {
|
|
1300
1300
|
key: 'rtl',
|
|
1301
1301
|
unit: 'rem',
|
|
1302
|
-
|
|
1302
|
+
type: syntaxRuleType.Native
|
|
1303
1303
|
},
|
|
1304
1304
|
'border-top-right-radius': {
|
|
1305
1305
|
key: 'rtr',
|
|
1306
1306
|
unit: 'rem',
|
|
1307
|
-
|
|
1307
|
+
type: syntaxRuleType.Native
|
|
1308
1308
|
},
|
|
1309
1309
|
'border-bottom-left-radius': {
|
|
1310
1310
|
key: 'rbl',
|
|
1311
1311
|
unit: 'rem',
|
|
1312
|
-
|
|
1312
|
+
type: syntaxRuleType.Native
|
|
1313
1313
|
},
|
|
1314
1314
|
'border-bottom-right-radius': {
|
|
1315
1315
|
key: 'rbr',
|
|
1316
1316
|
unit: 'rem',
|
|
1317
|
-
|
|
1317
|
+
type: syntaxRuleType.Native
|
|
1318
1318
|
},
|
|
1319
1319
|
'border-top-radius': {
|
|
1320
1320
|
key: 'rt',
|
|
1321
1321
|
unit: 'rem',
|
|
1322
|
-
|
|
1322
|
+
type: syntaxRuleType.Shorthand,
|
|
1323
1323
|
declare (value) {
|
|
1324
1324
|
return {
|
|
1325
1325
|
'border-top-left-radius': value,
|
|
@@ -1330,7 +1330,7 @@ const syntaxes = {
|
|
|
1330
1330
|
'border-bottom-radius': {
|
|
1331
1331
|
key: 'rb',
|
|
1332
1332
|
unit: 'rem',
|
|
1333
|
-
|
|
1333
|
+
type: syntaxRuleType.Shorthand,
|
|
1334
1334
|
declare (value) {
|
|
1335
1335
|
return {
|
|
1336
1336
|
'border-bottom-left-radius': value,
|
|
@@ -1341,7 +1341,7 @@ const syntaxes = {
|
|
|
1341
1341
|
'border-left-radius': {
|
|
1342
1342
|
key: 'rl',
|
|
1343
1343
|
unit: 'rem',
|
|
1344
|
-
|
|
1344
|
+
type: syntaxRuleType.Shorthand,
|
|
1345
1345
|
declare (value) {
|
|
1346
1346
|
return {
|
|
1347
1347
|
'border-top-left-radius': value,
|
|
@@ -1352,7 +1352,7 @@ const syntaxes = {
|
|
|
1352
1352
|
'border-right-radius': {
|
|
1353
1353
|
key: 'rr',
|
|
1354
1354
|
unit: 'rem',
|
|
1355
|
-
|
|
1355
|
+
type: syntaxRuleType.Shorthand,
|
|
1356
1356
|
declare (value) {
|
|
1357
1357
|
return {
|
|
1358
1358
|
'border-top-right-radius': value,
|
|
@@ -1363,7 +1363,7 @@ const syntaxes = {
|
|
|
1363
1363
|
'border-radius': {
|
|
1364
1364
|
key: 'r',
|
|
1365
1365
|
unit: 'rem',
|
|
1366
|
-
|
|
1366
|
+
type: syntaxRuleType.NativeShorthand
|
|
1367
1367
|
},
|
|
1368
1368
|
// border style
|
|
1369
1369
|
'border-top-style': {
|
|
@@ -1372,7 +1372,7 @@ const syntaxes = {
|
|
|
1372
1372
|
'border-top'
|
|
1373
1373
|
],
|
|
1374
1374
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
1375
|
-
|
|
1375
|
+
type: syntaxRuleType.Native
|
|
1376
1376
|
},
|
|
1377
1377
|
'border-bottom-style': {
|
|
1378
1378
|
ambiguousKeys: [
|
|
@@ -1380,7 +1380,7 @@ const syntaxes = {
|
|
|
1380
1380
|
'border-bottom'
|
|
1381
1381
|
],
|
|
1382
1382
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
1383
|
-
|
|
1383
|
+
type: syntaxRuleType.Native
|
|
1384
1384
|
},
|
|
1385
1385
|
'border-left-style': {
|
|
1386
1386
|
ambiguousKeys: [
|
|
@@ -1388,7 +1388,7 @@ const syntaxes = {
|
|
|
1388
1388
|
'border-left'
|
|
1389
1389
|
],
|
|
1390
1390
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
1391
|
-
|
|
1391
|
+
type: syntaxRuleType.Native
|
|
1392
1392
|
},
|
|
1393
1393
|
'border-right-style': {
|
|
1394
1394
|
ambiguousKeys: [
|
|
@@ -1396,7 +1396,7 @@ const syntaxes = {
|
|
|
1396
1396
|
'border-right'
|
|
1397
1397
|
],
|
|
1398
1398
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
1399
|
-
|
|
1399
|
+
type: syntaxRuleType.Native
|
|
1400
1400
|
},
|
|
1401
1401
|
'border-x-style': {
|
|
1402
1402
|
ambiguousKeys: [
|
|
@@ -1404,7 +1404,7 @@ const syntaxes = {
|
|
|
1404
1404
|
'border-x'
|
|
1405
1405
|
],
|
|
1406
1406
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
1407
|
-
|
|
1407
|
+
type: syntaxRuleType.Shorthand,
|
|
1408
1408
|
declare (value) {
|
|
1409
1409
|
return {
|
|
1410
1410
|
'border-left-style': value,
|
|
@@ -1418,7 +1418,7 @@ const syntaxes = {
|
|
|
1418
1418
|
'border-y'
|
|
1419
1419
|
],
|
|
1420
1420
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
1421
|
-
|
|
1421
|
+
type: syntaxRuleType.Shorthand,
|
|
1422
1422
|
declare (value) {
|
|
1423
1423
|
return {
|
|
1424
1424
|
'border-top-style': value,
|
|
@@ -1432,7 +1432,7 @@ const syntaxes = {
|
|
|
1432
1432
|
'border'
|
|
1433
1433
|
],
|
|
1434
1434
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
1435
|
-
|
|
1435
|
+
type: syntaxRuleType.NativeShorthand
|
|
1436
1436
|
},
|
|
1437
1437
|
// border width
|
|
1438
1438
|
'border-top-width': {
|
|
@@ -1444,7 +1444,7 @@ const syntaxes = {
|
|
|
1444
1444
|
common.NUMBER_VALUE_REGEX
|
|
1445
1445
|
],
|
|
1446
1446
|
unit: 'rem',
|
|
1447
|
-
|
|
1447
|
+
type: syntaxRuleType.Native
|
|
1448
1448
|
},
|
|
1449
1449
|
'border-bottom-width': {
|
|
1450
1450
|
ambiguousKeys: [
|
|
@@ -1455,7 +1455,7 @@ const syntaxes = {
|
|
|
1455
1455
|
common.NUMBER_VALUE_REGEX
|
|
1456
1456
|
],
|
|
1457
1457
|
unit: 'rem',
|
|
1458
|
-
|
|
1458
|
+
type: syntaxRuleType.Native
|
|
1459
1459
|
},
|
|
1460
1460
|
'border-left-width': {
|
|
1461
1461
|
ambiguousKeys: [
|
|
@@ -1466,7 +1466,7 @@ const syntaxes = {
|
|
|
1466
1466
|
common.NUMBER_VALUE_REGEX
|
|
1467
1467
|
],
|
|
1468
1468
|
unit: 'rem',
|
|
1469
|
-
|
|
1469
|
+
type: syntaxRuleType.Native
|
|
1470
1470
|
},
|
|
1471
1471
|
'border-right-width': {
|
|
1472
1472
|
ambiguousKeys: [
|
|
@@ -1477,7 +1477,7 @@ const syntaxes = {
|
|
|
1477
1477
|
common.NUMBER_VALUE_REGEX
|
|
1478
1478
|
],
|
|
1479
1479
|
unit: 'rem',
|
|
1480
|
-
|
|
1480
|
+
type: syntaxRuleType.Native
|
|
1481
1481
|
},
|
|
1482
1482
|
'border-x-width': {
|
|
1483
1483
|
ambiguousKeys: [
|
|
@@ -1488,7 +1488,7 @@ const syntaxes = {
|
|
|
1488
1488
|
common.NUMBER_VALUE_REGEX
|
|
1489
1489
|
],
|
|
1490
1490
|
unit: 'rem',
|
|
1491
|
-
|
|
1491
|
+
type: syntaxRuleType.Shorthand,
|
|
1492
1492
|
declare (value) {
|
|
1493
1493
|
return {
|
|
1494
1494
|
'border-left-width': value,
|
|
@@ -1505,7 +1505,7 @@ const syntaxes = {
|
|
|
1505
1505
|
common.NUMBER_VALUE_REGEX
|
|
1506
1506
|
],
|
|
1507
1507
|
unit: 'rem',
|
|
1508
|
-
|
|
1508
|
+
type: syntaxRuleType.Shorthand,
|
|
1509
1509
|
declare (value) {
|
|
1510
1510
|
return {
|
|
1511
1511
|
'border-top-width': value,
|
|
@@ -1522,7 +1522,7 @@ const syntaxes = {
|
|
|
1522
1522
|
common.NUMBER_VALUE_REGEX
|
|
1523
1523
|
],
|
|
1524
1524
|
unit: 'rem',
|
|
1525
|
-
|
|
1525
|
+
type: syntaxRuleType.NativeShorthand
|
|
1526
1526
|
},
|
|
1527
1527
|
// border image
|
|
1528
1528
|
'border-image-repeat': {
|
|
@@ -1535,13 +1535,13 @@ const syntaxes = {
|
|
|
1535
1535
|
'round',
|
|
1536
1536
|
'space'
|
|
1537
1537
|
],
|
|
1538
|
-
|
|
1538
|
+
type: syntaxRuleType.Native
|
|
1539
1539
|
},
|
|
1540
1540
|
'border-image-slice': {
|
|
1541
1541
|
ambiguousKeys: [
|
|
1542
1542
|
'border-image'
|
|
1543
1543
|
],
|
|
1544
|
-
|
|
1544
|
+
type: syntaxRuleType.Native
|
|
1545
1545
|
},
|
|
1546
1546
|
'border-image-source': {
|
|
1547
1547
|
ambiguousKeys: [
|
|
@@ -1550,7 +1550,7 @@ const syntaxes = {
|
|
|
1550
1550
|
ambiguousValues: [
|
|
1551
1551
|
common.IMAGE_VALUE_REGEX
|
|
1552
1552
|
],
|
|
1553
|
-
|
|
1553
|
+
type: syntaxRuleType.Native
|
|
1554
1554
|
},
|
|
1555
1555
|
'border-image-width': {
|
|
1556
1556
|
ambiguousKeys: [
|
|
@@ -1561,7 +1561,7 @@ const syntaxes = {
|
|
|
1561
1561
|
common.NUMBER_VALUE_REGEX
|
|
1562
1562
|
],
|
|
1563
1563
|
unit: 'rem',
|
|
1564
|
-
|
|
1564
|
+
type: syntaxRuleType.Native
|
|
1565
1565
|
},
|
|
1566
1566
|
'border-image-outset': {
|
|
1567
1567
|
ambiguousKeys: [
|
|
@@ -1571,15 +1571,15 @@ const syntaxes = {
|
|
|
1571
1571
|
common.NUMBER_VALUE_REGEX
|
|
1572
1572
|
],
|
|
1573
1573
|
unit: 'rem',
|
|
1574
|
-
|
|
1574
|
+
type: syntaxRuleType.Native
|
|
1575
1575
|
},
|
|
1576
1576
|
'border-image': {
|
|
1577
|
-
|
|
1577
|
+
type: syntaxRuleType.NativeShorthand
|
|
1578
1578
|
},
|
|
1579
1579
|
// border
|
|
1580
1580
|
'border-top': {
|
|
1581
1581
|
key: 'bt',
|
|
1582
|
-
|
|
1582
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1583
1583
|
unit: 'rem',
|
|
1584
1584
|
transformValueComponents: autofillSolidStyle,
|
|
1585
1585
|
variables: [
|
|
@@ -1588,7 +1588,7 @@ const syntaxes = {
|
|
|
1588
1588
|
},
|
|
1589
1589
|
'border-bottom': {
|
|
1590
1590
|
key: 'bb',
|
|
1591
|
-
|
|
1591
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1592
1592
|
unit: 'rem',
|
|
1593
1593
|
transformValueComponents: autofillSolidStyle,
|
|
1594
1594
|
variables: [
|
|
@@ -1597,7 +1597,7 @@ const syntaxes = {
|
|
|
1597
1597
|
},
|
|
1598
1598
|
'border-left': {
|
|
1599
1599
|
key: 'bl',
|
|
1600
|
-
|
|
1600
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1601
1601
|
unit: 'rem',
|
|
1602
1602
|
transformValueComponents: autofillSolidStyle,
|
|
1603
1603
|
variables: [
|
|
@@ -1606,7 +1606,7 @@ const syntaxes = {
|
|
|
1606
1606
|
},
|
|
1607
1607
|
'border-right': {
|
|
1608
1608
|
key: 'br',
|
|
1609
|
-
|
|
1609
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1610
1610
|
unit: 'rem',
|
|
1611
1611
|
transformValueComponents: autofillSolidStyle,
|
|
1612
1612
|
variables: [
|
|
@@ -1616,7 +1616,7 @@ const syntaxes = {
|
|
|
1616
1616
|
'border-x': {
|
|
1617
1617
|
key: 'bx',
|
|
1618
1618
|
unit: 'rem',
|
|
1619
|
-
|
|
1619
|
+
type: syntaxRuleType.Shorthand,
|
|
1620
1620
|
transformValueComponents: autofillSolidStyle,
|
|
1621
1621
|
variables: [
|
|
1622
1622
|
'frame'
|
|
@@ -1631,7 +1631,7 @@ const syntaxes = {
|
|
|
1631
1631
|
'border-y': {
|
|
1632
1632
|
key: 'by',
|
|
1633
1633
|
unit: 'rem',
|
|
1634
|
-
|
|
1634
|
+
type: syntaxRuleType.Shorthand,
|
|
1635
1635
|
transformValueComponents: autofillSolidStyle,
|
|
1636
1636
|
variables: [
|
|
1637
1637
|
'frame'
|
|
@@ -1646,7 +1646,7 @@ const syntaxes = {
|
|
|
1646
1646
|
border: {
|
|
1647
1647
|
key: 'b',
|
|
1648
1648
|
unit: 'rem',
|
|
1649
|
-
|
|
1649
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1650
1650
|
transformValueComponents: autofillSolidStyle,
|
|
1651
1651
|
variables: [
|
|
1652
1652
|
'frame'
|
|
@@ -1661,11 +1661,11 @@ const syntaxes = {
|
|
|
1661
1661
|
'local',
|
|
1662
1662
|
'scroll'
|
|
1663
1663
|
],
|
|
1664
|
-
|
|
1664
|
+
type: syntaxRuleType.Native
|
|
1665
1665
|
},
|
|
1666
1666
|
'background-blend-mode': {
|
|
1667
1667
|
key: 'bg-blend',
|
|
1668
|
-
|
|
1668
|
+
type: syntaxRuleType.Native
|
|
1669
1669
|
},
|
|
1670
1670
|
'background-color': {
|
|
1671
1671
|
ambiguousKeys: [
|
|
@@ -1674,11 +1674,11 @@ const syntaxes = {
|
|
|
1674
1674
|
ambiguousValues: [
|
|
1675
1675
|
common.COLOR_VALUE_REGEX
|
|
1676
1676
|
],
|
|
1677
|
-
|
|
1677
|
+
type: syntaxRuleType.Native
|
|
1678
1678
|
},
|
|
1679
1679
|
'background-clip': {
|
|
1680
1680
|
key: 'bg-clip',
|
|
1681
|
-
|
|
1681
|
+
type: syntaxRuleType.Native,
|
|
1682
1682
|
declare (value) {
|
|
1683
1683
|
return {
|
|
1684
1684
|
'-webkit-background-clip': value,
|
|
@@ -1688,7 +1688,7 @@ const syntaxes = {
|
|
|
1688
1688
|
},
|
|
1689
1689
|
'background-origin': {
|
|
1690
1690
|
key: 'bg-origin',
|
|
1691
|
-
|
|
1691
|
+
type: syntaxRuleType.Native
|
|
1692
1692
|
},
|
|
1693
1693
|
'background-position': {
|
|
1694
1694
|
ambiguousKeys: [
|
|
@@ -1701,7 +1701,7 @@ const syntaxes = {
|
|
|
1701
1701
|
'left',
|
|
1702
1702
|
'center'
|
|
1703
1703
|
],
|
|
1704
|
-
|
|
1704
|
+
type: syntaxRuleType.Native,
|
|
1705
1705
|
unit: 'px'
|
|
1706
1706
|
},
|
|
1707
1707
|
'background-repeat': {
|
|
@@ -1716,7 +1716,7 @@ const syntaxes = {
|
|
|
1716
1716
|
'repeat-x',
|
|
1717
1717
|
'repeat-y'
|
|
1718
1718
|
],
|
|
1719
|
-
|
|
1719
|
+
type: syntaxRuleType.Native
|
|
1720
1720
|
},
|
|
1721
1721
|
'background-size': {
|
|
1722
1722
|
ambiguousKeys: [
|
|
@@ -1729,7 +1729,7 @@ const syntaxes = {
|
|
|
1729
1729
|
common.NUMBER_VALUE_REGEX
|
|
1730
1730
|
],
|
|
1731
1731
|
unit: 'rem',
|
|
1732
|
-
|
|
1732
|
+
type: syntaxRuleType.Native
|
|
1733
1733
|
},
|
|
1734
1734
|
'background-image': {
|
|
1735
1735
|
ambiguousKeys: [
|
|
@@ -1738,15 +1738,15 @@ const syntaxes = {
|
|
|
1738
1738
|
ambiguousValues: [
|
|
1739
1739
|
common.IMAGE_VALUE_REGEX
|
|
1740
1740
|
],
|
|
1741
|
-
|
|
1741
|
+
type: syntaxRuleType.Native
|
|
1742
1742
|
},
|
|
1743
1743
|
background: {
|
|
1744
1744
|
key: 'bg',
|
|
1745
|
-
|
|
1745
|
+
type: syntaxRuleType.NativeShorthand
|
|
1746
1746
|
},
|
|
1747
1747
|
gradient: {
|
|
1748
1748
|
matcher: /^gradient\(/,
|
|
1749
|
-
|
|
1749
|
+
type: syntaxRuleType.Shorthand,
|
|
1750
1750
|
declare (value) {
|
|
1751
1751
|
return {
|
|
1752
1752
|
'background-image': 'linear-' + value
|
|
@@ -1755,11 +1755,11 @@ const syntaxes = {
|
|
|
1755
1755
|
},
|
|
1756
1756
|
'mix-blend-mode': {
|
|
1757
1757
|
key: 'blend',
|
|
1758
|
-
|
|
1758
|
+
type: syntaxRuleType.Native
|
|
1759
1759
|
},
|
|
1760
1760
|
'backdrop-filter': {
|
|
1761
1761
|
key: 'bd',
|
|
1762
|
-
|
|
1762
|
+
type: syntaxRuleType.Native,
|
|
1763
1763
|
declare (value) {
|
|
1764
1764
|
return {
|
|
1765
1765
|
'-webkit-backdrop-filter': value,
|
|
@@ -1769,16 +1769,16 @@ const syntaxes = {
|
|
|
1769
1769
|
},
|
|
1770
1770
|
filter: {
|
|
1771
1771
|
matcher: /^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,
|
|
1772
|
-
|
|
1772
|
+
type: syntaxRuleType.Native
|
|
1773
1773
|
},
|
|
1774
1774
|
fill: {
|
|
1775
|
-
|
|
1775
|
+
type: syntaxRuleType.Native
|
|
1776
1776
|
},
|
|
1777
1777
|
'stroke-dasharray': {
|
|
1778
|
-
|
|
1778
|
+
type: syntaxRuleType.Native
|
|
1779
1779
|
},
|
|
1780
1780
|
'stroke-dashoffset': {
|
|
1781
|
-
|
|
1781
|
+
type: syntaxRuleType.Native,
|
|
1782
1782
|
variables: [
|
|
1783
1783
|
'spacing'
|
|
1784
1784
|
]
|
|
@@ -1790,52 +1790,52 @@ const syntaxes = {
|
|
|
1790
1790
|
ambiguousValues: [
|
|
1791
1791
|
common.NUMBER_VALUE_REGEX
|
|
1792
1792
|
],
|
|
1793
|
-
|
|
1793
|
+
type: syntaxRuleType.Native
|
|
1794
1794
|
},
|
|
1795
1795
|
stroke: {
|
|
1796
|
-
|
|
1796
|
+
type: syntaxRuleType.Native
|
|
1797
1797
|
},
|
|
1798
1798
|
x: {
|
|
1799
|
-
|
|
1799
|
+
type: syntaxRuleType.Native,
|
|
1800
1800
|
variables: [
|
|
1801
1801
|
'spacing'
|
|
1802
1802
|
]
|
|
1803
1803
|
},
|
|
1804
1804
|
y: {
|
|
1805
|
-
|
|
1805
|
+
type: syntaxRuleType.Native,
|
|
1806
1806
|
variables: [
|
|
1807
1807
|
'spacing'
|
|
1808
1808
|
]
|
|
1809
1809
|
},
|
|
1810
1810
|
cx: {
|
|
1811
|
-
|
|
1811
|
+
type: syntaxRuleType.Native,
|
|
1812
1812
|
variables: [
|
|
1813
1813
|
'spacing'
|
|
1814
1814
|
]
|
|
1815
1815
|
},
|
|
1816
1816
|
cy: {
|
|
1817
|
-
|
|
1817
|
+
type: syntaxRuleType.Native,
|
|
1818
1818
|
variables: [
|
|
1819
1819
|
'spacing'
|
|
1820
1820
|
]
|
|
1821
1821
|
},
|
|
1822
1822
|
rx: {
|
|
1823
|
-
|
|
1823
|
+
type: syntaxRuleType.Native
|
|
1824
1824
|
},
|
|
1825
1825
|
ry: {
|
|
1826
|
-
|
|
1826
|
+
type: syntaxRuleType.Native
|
|
1827
1827
|
},
|
|
1828
1828
|
'grid-column-start': {
|
|
1829
1829
|
key: 'grid-col-start',
|
|
1830
|
-
|
|
1830
|
+
type: syntaxRuleType.Native
|
|
1831
1831
|
},
|
|
1832
1832
|
'grid-column-end': {
|
|
1833
1833
|
key: 'grid-col-end',
|
|
1834
|
-
|
|
1834
|
+
type: syntaxRuleType.Native
|
|
1835
1835
|
},
|
|
1836
1836
|
'grid-column-span': {
|
|
1837
1837
|
key: 'grid-col-span',
|
|
1838
|
-
|
|
1838
|
+
type: syntaxRuleType.Shorthand,
|
|
1839
1839
|
transformValue (value) {
|
|
1840
1840
|
return 'span' + ' ' + value + '/' + 'span' + ' ' + value;
|
|
1841
1841
|
},
|
|
@@ -1847,7 +1847,7 @@ const syntaxes = {
|
|
|
1847
1847
|
},
|
|
1848
1848
|
'grid-column': {
|
|
1849
1849
|
key: 'grid-col',
|
|
1850
|
-
|
|
1850
|
+
type: syntaxRuleType.NativeShorthand
|
|
1851
1851
|
},
|
|
1852
1852
|
'grid-columns': {
|
|
1853
1853
|
key: 'grid-cols',
|
|
@@ -1857,16 +1857,16 @@ const syntaxes = {
|
|
|
1857
1857
|
'grid-template-columns': 'repeat' + '(' + value + ',' + 'minmax' + '(' + 0 + ',' + 1 + 'fr' + '))'
|
|
1858
1858
|
};
|
|
1859
1859
|
},
|
|
1860
|
-
|
|
1860
|
+
type: syntaxRuleType.Shorthand
|
|
1861
1861
|
},
|
|
1862
1862
|
'grid-row-start': {
|
|
1863
|
-
|
|
1863
|
+
type: syntaxRuleType.Native
|
|
1864
1864
|
},
|
|
1865
1865
|
'grid-row-end': {
|
|
1866
|
-
|
|
1866
|
+
type: syntaxRuleType.Native
|
|
1867
1867
|
},
|
|
1868
1868
|
'grid-row-span': {
|
|
1869
|
-
|
|
1869
|
+
type: syntaxRuleType.Shorthand,
|
|
1870
1870
|
transformValue (value) {
|
|
1871
1871
|
return 'span' + ' ' + value + '/' + 'span' + ' ' + value;
|
|
1872
1872
|
},
|
|
@@ -1877,7 +1877,7 @@ const syntaxes = {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
},
|
|
1879
1879
|
'grid-row': {
|
|
1880
|
-
|
|
1880
|
+
type: syntaxRuleType.NativeShorthand
|
|
1881
1881
|
},
|
|
1882
1882
|
'grid-rows': {
|
|
1883
1883
|
declare (value) {
|
|
@@ -1887,44 +1887,44 @@ const syntaxes = {
|
|
|
1887
1887
|
'grid-template-rows': 'repeat' + '(' + value + ',' + 'minmax' + '(' + 0 + ',' + 1 + 'fr' + '))'
|
|
1888
1888
|
};
|
|
1889
1889
|
},
|
|
1890
|
-
|
|
1890
|
+
type: syntaxRuleType.Shorthand
|
|
1891
1891
|
},
|
|
1892
1892
|
'grid-auto-columns': {
|
|
1893
1893
|
key: 'grid-auto-cols',
|
|
1894
|
-
|
|
1894
|
+
type: syntaxRuleType.Native
|
|
1895
1895
|
},
|
|
1896
1896
|
'grid-auto-flow': {
|
|
1897
1897
|
key: 'grid-flow',
|
|
1898
|
-
|
|
1898
|
+
type: syntaxRuleType.Native
|
|
1899
1899
|
},
|
|
1900
1900
|
'grid-auto-rows': {
|
|
1901
|
-
|
|
1901
|
+
type: syntaxRuleType.Native
|
|
1902
1902
|
},
|
|
1903
1903
|
'grid-template-areas': {
|
|
1904
|
-
|
|
1904
|
+
type: syntaxRuleType.Native
|
|
1905
1905
|
},
|
|
1906
1906
|
'grid-template-columns': {
|
|
1907
1907
|
key: 'grid-template-cols',
|
|
1908
|
-
|
|
1908
|
+
type: syntaxRuleType.Native,
|
|
1909
1909
|
unit: 'rem'
|
|
1910
1910
|
},
|
|
1911
1911
|
'grid-template-rows': {
|
|
1912
|
-
|
|
1912
|
+
type: syntaxRuleType.Native,
|
|
1913
1913
|
unit: 'rem'
|
|
1914
1914
|
},
|
|
1915
1915
|
'grid-template': {
|
|
1916
|
-
|
|
1916
|
+
type: syntaxRuleType.NativeShorthand
|
|
1917
1917
|
},
|
|
1918
1918
|
'grid-area': {
|
|
1919
|
-
|
|
1919
|
+
type: syntaxRuleType.NativeShorthand
|
|
1920
1920
|
},
|
|
1921
1921
|
grid: {
|
|
1922
|
-
|
|
1922
|
+
type: syntaxRuleType.NativeShorthand
|
|
1923
1923
|
},
|
|
1924
1924
|
'column-gap': {
|
|
1925
1925
|
key: 'gap-x',
|
|
1926
1926
|
unit: 'rem',
|
|
1927
|
-
|
|
1927
|
+
type: syntaxRuleType.Native,
|
|
1928
1928
|
variables: [
|
|
1929
1929
|
'spacing'
|
|
1930
1930
|
]
|
|
@@ -1932,71 +1932,71 @@ const syntaxes = {
|
|
|
1932
1932
|
'row-gap': {
|
|
1933
1933
|
key: 'gap-y',
|
|
1934
1934
|
unit: 'rem',
|
|
1935
|
-
|
|
1935
|
+
type: syntaxRuleType.Native,
|
|
1936
1936
|
variables: [
|
|
1937
1937
|
'spacing'
|
|
1938
1938
|
]
|
|
1939
1939
|
},
|
|
1940
1940
|
gap: {
|
|
1941
1941
|
unit: 'rem',
|
|
1942
|
-
|
|
1942
|
+
type: syntaxRuleType.NativeShorthand,
|
|
1943
1943
|
variables: [
|
|
1944
1944
|
'spacing'
|
|
1945
1945
|
]
|
|
1946
1946
|
},
|
|
1947
1947
|
order: {
|
|
1948
1948
|
key: 'o',
|
|
1949
|
-
|
|
1949
|
+
type: syntaxRuleType.Native
|
|
1950
1950
|
},
|
|
1951
1951
|
'break-inside': {
|
|
1952
|
-
|
|
1952
|
+
type: syntaxRuleType.Native
|
|
1953
1953
|
},
|
|
1954
1954
|
'break-before': {
|
|
1955
|
-
|
|
1955
|
+
type: syntaxRuleType.Native
|
|
1956
1956
|
},
|
|
1957
1957
|
'break-after': {
|
|
1958
|
-
|
|
1958
|
+
type: syntaxRuleType.Native
|
|
1959
1959
|
},
|
|
1960
1960
|
'aspect-ratio': {
|
|
1961
1961
|
key: 'aspect',
|
|
1962
|
-
|
|
1962
|
+
type: syntaxRuleType.Native
|
|
1963
1963
|
},
|
|
1964
1964
|
'column-span': {
|
|
1965
1965
|
key: 'col-span',
|
|
1966
|
-
|
|
1966
|
+
type: syntaxRuleType.Native
|
|
1967
1967
|
},
|
|
1968
1968
|
'align-content': {
|
|
1969
1969
|
subkey: 'ac',
|
|
1970
|
-
|
|
1970
|
+
type: syntaxRuleType.Native
|
|
1971
1971
|
},
|
|
1972
1972
|
'align-items': {
|
|
1973
1973
|
subkey: 'ai',
|
|
1974
|
-
|
|
1974
|
+
type: syntaxRuleType.Native
|
|
1975
1975
|
},
|
|
1976
1976
|
'align-self': {
|
|
1977
1977
|
subkey: 'as',
|
|
1978
|
-
|
|
1978
|
+
type: syntaxRuleType.Native
|
|
1979
1979
|
},
|
|
1980
1980
|
'justify-content': {
|
|
1981
1981
|
subkey: 'jc',
|
|
1982
|
-
|
|
1982
|
+
type: syntaxRuleType.Native
|
|
1983
1983
|
},
|
|
1984
1984
|
'justify-items': {
|
|
1985
1985
|
subkey: 'ji',
|
|
1986
|
-
|
|
1986
|
+
type: syntaxRuleType.Native
|
|
1987
1987
|
},
|
|
1988
1988
|
'justify-self': {
|
|
1989
1989
|
subkey: 'js',
|
|
1990
|
-
|
|
1990
|
+
type: syntaxRuleType.Native
|
|
1991
1991
|
},
|
|
1992
1992
|
'place-content': {
|
|
1993
|
-
|
|
1993
|
+
type: syntaxRuleType.NativeShorthand
|
|
1994
1994
|
},
|
|
1995
1995
|
'place-items': {
|
|
1996
|
-
|
|
1996
|
+
type: syntaxRuleType.NativeShorthand
|
|
1997
1997
|
},
|
|
1998
1998
|
'place-self': {
|
|
1999
|
-
|
|
1999
|
+
type: syntaxRuleType.NativeShorthand
|
|
2000
2000
|
},
|
|
2001
2001
|
'list-style-position': {
|
|
2002
2002
|
ambiguousKeys: [
|
|
@@ -2006,7 +2006,7 @@ const syntaxes = {
|
|
|
2006
2006
|
'inside',
|
|
2007
2007
|
'outside'
|
|
2008
2008
|
],
|
|
2009
|
-
|
|
2009
|
+
type: syntaxRuleType.Native
|
|
2010
2010
|
},
|
|
2011
2011
|
'list-style-type': {
|
|
2012
2012
|
ambiguousKeys: [
|
|
@@ -2016,7 +2016,7 @@ const syntaxes = {
|
|
|
2016
2016
|
'disc',
|
|
2017
2017
|
'decimal'
|
|
2018
2018
|
],
|
|
2019
|
-
|
|
2019
|
+
type: syntaxRuleType.Native
|
|
2020
2020
|
},
|
|
2021
2021
|
'list-style-image': {
|
|
2022
2022
|
ambiguousKeys: [
|
|
@@ -2025,10 +2025,10 @@ const syntaxes = {
|
|
|
2025
2025
|
ambiguousValues: [
|
|
2026
2026
|
common.IMAGE_VALUE_REGEX
|
|
2027
2027
|
],
|
|
2028
|
-
|
|
2028
|
+
type: syntaxRuleType.Native
|
|
2029
2029
|
},
|
|
2030
2030
|
'list-style': {
|
|
2031
|
-
|
|
2031
|
+
type: syntaxRuleType.NativeShorthand
|
|
2032
2032
|
},
|
|
2033
2033
|
'outline-color': {
|
|
2034
2034
|
ambiguousKeys: [
|
|
@@ -2037,14 +2037,14 @@ const syntaxes = {
|
|
|
2037
2037
|
ambiguousValues: [
|
|
2038
2038
|
common.COLOR_VALUE_REGEX
|
|
2039
2039
|
],
|
|
2040
|
-
|
|
2040
|
+
type: syntaxRuleType.Native,
|
|
2041
2041
|
variables: [
|
|
2042
2042
|
'frame'
|
|
2043
2043
|
]
|
|
2044
2044
|
},
|
|
2045
2045
|
'outline-offset': {
|
|
2046
2046
|
unit: 'rem',
|
|
2047
|
-
|
|
2047
|
+
type: syntaxRuleType.Native,
|
|
2048
2048
|
variables: [
|
|
2049
2049
|
'spacing'
|
|
2050
2050
|
]
|
|
@@ -2054,7 +2054,7 @@ const syntaxes = {
|
|
|
2054
2054
|
'outline'
|
|
2055
2055
|
],
|
|
2056
2056
|
ambiguousValues: common.BORDER_STYLE_VALUES,
|
|
2057
|
-
|
|
2057
|
+
type: syntaxRuleType.Native
|
|
2058
2058
|
},
|
|
2059
2059
|
'outline-width': {
|
|
2060
2060
|
ambiguousKeys: [
|
|
@@ -2067,11 +2067,11 @@ const syntaxes = {
|
|
|
2067
2067
|
common.NUMBER_VALUE_REGEX
|
|
2068
2068
|
],
|
|
2069
2069
|
unit: 'rem',
|
|
2070
|
-
|
|
2070
|
+
type: syntaxRuleType.Native
|
|
2071
2071
|
},
|
|
2072
2072
|
outline: {
|
|
2073
2073
|
unit: 'rem',
|
|
2074
|
-
|
|
2074
|
+
type: syntaxRuleType.NativeShorthand,
|
|
2075
2075
|
variables: [
|
|
2076
2076
|
'outline-width',
|
|
2077
2077
|
'outline-style',
|
|
@@ -2083,25 +2083,25 @@ const syntaxes = {
|
|
|
2083
2083
|
},
|
|
2084
2084
|
'accent-color': {
|
|
2085
2085
|
key: 'accent',
|
|
2086
|
-
|
|
2086
|
+
type: syntaxRuleType.Native
|
|
2087
2087
|
},
|
|
2088
2088
|
appearance: {
|
|
2089
|
-
|
|
2089
|
+
type: syntaxRuleType.Native
|
|
2090
2090
|
},
|
|
2091
2091
|
'caret-color': {
|
|
2092
2092
|
key: 'caret',
|
|
2093
|
-
|
|
2093
|
+
type: syntaxRuleType.Native,
|
|
2094
2094
|
variables: [
|
|
2095
2095
|
'text'
|
|
2096
2096
|
]
|
|
2097
2097
|
},
|
|
2098
2098
|
'scroll-behavior': {
|
|
2099
|
-
|
|
2099
|
+
type: syntaxRuleType.Native
|
|
2100
2100
|
},
|
|
2101
2101
|
// scroll margin
|
|
2102
2102
|
'scroll-margin-left': {
|
|
2103
2103
|
key: 'scroll-ml',
|
|
2104
|
-
|
|
2104
|
+
type: syntaxRuleType.Native,
|
|
2105
2105
|
unit: 'rem',
|
|
2106
2106
|
variables: [
|
|
2107
2107
|
'spacing'
|
|
@@ -2109,7 +2109,7 @@ const syntaxes = {
|
|
|
2109
2109
|
},
|
|
2110
2110
|
'scroll-margin-right': {
|
|
2111
2111
|
key: 'scroll-mr',
|
|
2112
|
-
|
|
2112
|
+
type: syntaxRuleType.Native,
|
|
2113
2113
|
unit: 'rem',
|
|
2114
2114
|
variables: [
|
|
2115
2115
|
'spacing'
|
|
@@ -2117,7 +2117,7 @@ const syntaxes = {
|
|
|
2117
2117
|
},
|
|
2118
2118
|
'scroll-margin-top': {
|
|
2119
2119
|
key: 'scroll-mt',
|
|
2120
|
-
|
|
2120
|
+
type: syntaxRuleType.Native,
|
|
2121
2121
|
unit: 'rem',
|
|
2122
2122
|
variables: [
|
|
2123
2123
|
'spacing'
|
|
@@ -2125,7 +2125,7 @@ const syntaxes = {
|
|
|
2125
2125
|
},
|
|
2126
2126
|
'scroll-margin-bottom': {
|
|
2127
2127
|
key: 'scroll-mb',
|
|
2128
|
-
|
|
2128
|
+
type: syntaxRuleType.Native,
|
|
2129
2129
|
unit: 'rem',
|
|
2130
2130
|
variables: [
|
|
2131
2131
|
'spacing'
|
|
@@ -2134,7 +2134,7 @@ const syntaxes = {
|
|
|
2134
2134
|
'scroll-margin-x': {
|
|
2135
2135
|
key: 'scroll-mx',
|
|
2136
2136
|
unit: 'rem',
|
|
2137
|
-
|
|
2137
|
+
type: syntaxRuleType.Shorthand,
|
|
2138
2138
|
declare (value) {
|
|
2139
2139
|
return {
|
|
2140
2140
|
'scroll-margin-left': value,
|
|
@@ -2148,7 +2148,7 @@ const syntaxes = {
|
|
|
2148
2148
|
'scroll-margin-y': {
|
|
2149
2149
|
key: 'scroll-my',
|
|
2150
2150
|
unit: 'rem',
|
|
2151
|
-
|
|
2151
|
+
type: syntaxRuleType.Shorthand,
|
|
2152
2152
|
declare (value) {
|
|
2153
2153
|
return {
|
|
2154
2154
|
'scroll-margin-top': value,
|
|
@@ -2162,7 +2162,7 @@ const syntaxes = {
|
|
|
2162
2162
|
'scroll-margin': {
|
|
2163
2163
|
key: 'scroll-m',
|
|
2164
2164
|
unit: 'rem',
|
|
2165
|
-
|
|
2165
|
+
type: syntaxRuleType.NativeShorthand,
|
|
2166
2166
|
variables: [
|
|
2167
2167
|
'spacing'
|
|
2168
2168
|
]
|
|
@@ -2170,7 +2170,7 @@ const syntaxes = {
|
|
|
2170
2170
|
// scroll padding
|
|
2171
2171
|
'scroll-padding-left': {
|
|
2172
2172
|
key: 'scroll-pl',
|
|
2173
|
-
|
|
2173
|
+
type: syntaxRuleType.Native,
|
|
2174
2174
|
unit: 'rem',
|
|
2175
2175
|
variables: [
|
|
2176
2176
|
'spacing'
|
|
@@ -2178,7 +2178,7 @@ const syntaxes = {
|
|
|
2178
2178
|
},
|
|
2179
2179
|
'scroll-padding-right': {
|
|
2180
2180
|
key: 'scroll-pr',
|
|
2181
|
-
|
|
2181
|
+
type: syntaxRuleType.Native,
|
|
2182
2182
|
unit: 'rem',
|
|
2183
2183
|
variables: [
|
|
2184
2184
|
'spacing'
|
|
@@ -2186,7 +2186,7 @@ const syntaxes = {
|
|
|
2186
2186
|
},
|
|
2187
2187
|
'scroll-padding-top': {
|
|
2188
2188
|
key: 'scroll-pt',
|
|
2189
|
-
|
|
2189
|
+
type: syntaxRuleType.Native,
|
|
2190
2190
|
unit: 'rem',
|
|
2191
2191
|
variables: [
|
|
2192
2192
|
'spacing'
|
|
@@ -2194,7 +2194,7 @@ const syntaxes = {
|
|
|
2194
2194
|
},
|
|
2195
2195
|
'scroll-padding-bottom': {
|
|
2196
2196
|
key: 'scroll-pb',
|
|
2197
|
-
|
|
2197
|
+
type: syntaxRuleType.Native,
|
|
2198
2198
|
unit: 'rem',
|
|
2199
2199
|
variables: [
|
|
2200
2200
|
'spacing'
|
|
@@ -2203,7 +2203,7 @@ const syntaxes = {
|
|
|
2203
2203
|
'scroll-padding-x': {
|
|
2204
2204
|
key: 'scroll-px',
|
|
2205
2205
|
unit: 'rem',
|
|
2206
|
-
|
|
2206
|
+
type: syntaxRuleType.Shorthand,
|
|
2207
2207
|
declare (value) {
|
|
2208
2208
|
return {
|
|
2209
2209
|
'scroll-padding-left': value,
|
|
@@ -2217,7 +2217,7 @@ const syntaxes = {
|
|
|
2217
2217
|
'scroll-padding-y': {
|
|
2218
2218
|
key: 'scroll-py',
|
|
2219
2219
|
unit: 'rem',
|
|
2220
|
-
|
|
2220
|
+
type: syntaxRuleType.Shorthand,
|
|
2221
2221
|
declare (value) {
|
|
2222
2222
|
return {
|
|
2223
2223
|
'scroll-padding-top': value,
|
|
@@ -2231,7 +2231,7 @@ const syntaxes = {
|
|
|
2231
2231
|
'scroll-padding': {
|
|
2232
2232
|
key: 'scroll-p',
|
|
2233
2233
|
unit: 'rem',
|
|
2234
|
-
|
|
2234
|
+
type: syntaxRuleType.NativeShorthand,
|
|
2235
2235
|
variables: [
|
|
2236
2236
|
'spacing'
|
|
2237
2237
|
]
|
|
@@ -2246,7 +2246,7 @@ const syntaxes = {
|
|
|
2246
2246
|
'end',
|
|
2247
2247
|
'center'
|
|
2248
2248
|
],
|
|
2249
|
-
|
|
2249
|
+
type: syntaxRuleType.Native
|
|
2250
2250
|
},
|
|
2251
2251
|
'scroll-snap-stop': {
|
|
2252
2252
|
ambiguousKeys: [
|
|
@@ -2256,7 +2256,7 @@ const syntaxes = {
|
|
|
2256
2256
|
'normal',
|
|
2257
2257
|
'always'
|
|
2258
2258
|
],
|
|
2259
|
-
|
|
2259
|
+
type: syntaxRuleType.Native
|
|
2260
2260
|
},
|
|
2261
2261
|
'scroll-snap-type': {
|
|
2262
2262
|
ambiguousKeys: [
|
|
@@ -2269,17 +2269,17 @@ const syntaxes = {
|
|
|
2269
2269
|
'inline',
|
|
2270
2270
|
'both'
|
|
2271
2271
|
],
|
|
2272
|
-
|
|
2272
|
+
type: syntaxRuleType.Native
|
|
2273
2273
|
},
|
|
2274
2274
|
'will-change': {
|
|
2275
|
-
|
|
2275
|
+
type: syntaxRuleType.Native
|
|
2276
2276
|
},
|
|
2277
2277
|
'writing-mode': {
|
|
2278
2278
|
key: 'writing',
|
|
2279
|
-
|
|
2279
|
+
type: syntaxRuleType.Native
|
|
2280
2280
|
},
|
|
2281
2281
|
direction: {
|
|
2282
|
-
|
|
2282
|
+
type: syntaxRuleType.Native
|
|
2283
2283
|
},
|
|
2284
2284
|
'shape-outside': {
|
|
2285
2285
|
ambiguousKeys: [
|
|
@@ -2288,7 +2288,7 @@ const syntaxes = {
|
|
|
2288
2288
|
ambiguousValues: [
|
|
2289
2289
|
/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/
|
|
2290
2290
|
],
|
|
2291
|
-
|
|
2291
|
+
type: syntaxRuleType.Native
|
|
2292
2292
|
},
|
|
2293
2293
|
'shape-margin': {
|
|
2294
2294
|
ambiguousKeys: [
|
|
@@ -2298,23 +2298,23 @@ const syntaxes = {
|
|
|
2298
2298
|
common.NUMBER_VALUE_REGEX
|
|
2299
2299
|
],
|
|
2300
2300
|
unit: 'rem',
|
|
2301
|
-
|
|
2301
|
+
type: syntaxRuleType.Native,
|
|
2302
2302
|
variables: [
|
|
2303
2303
|
'spacing'
|
|
2304
2304
|
]
|
|
2305
2305
|
},
|
|
2306
2306
|
'shape-image-threshold': {
|
|
2307
|
-
|
|
2307
|
+
type: syntaxRuleType.Native
|
|
2308
2308
|
},
|
|
2309
2309
|
'clip-path': {
|
|
2310
2310
|
key: 'clip',
|
|
2311
|
-
|
|
2311
|
+
type: syntaxRuleType.Native
|
|
2312
2312
|
},
|
|
2313
2313
|
quotes: {
|
|
2314
|
-
|
|
2314
|
+
type: syntaxRuleType.Native
|
|
2315
2315
|
},
|
|
2316
2316
|
'mask-image': {
|
|
2317
|
-
|
|
2317
|
+
type: syntaxRuleType.Native,
|
|
2318
2318
|
declare (value) {
|
|
2319
2319
|
return {
|
|
2320
2320
|
'-webkit-mask-image': value,
|
|
@@ -2324,4 +2324,4 @@ const syntaxes = {
|
|
|
2324
2324
|
}
|
|
2325
2325
|
};
|
|
2326
2326
|
|
|
2327
|
-
module.exports =
|
|
2327
|
+
module.exports = rules;
|