aliascss 1.5.2 → 1.5.4
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/CHANGELOG.md +9 -0
- package/README.md +408 -553
- package/dashed-ident.patch +216 -0
- package/dist/aliascss.js +1 -1
- package/lib/classPrinter.d.ts +1 -1
- package/lib/classPrinter.js +23 -13
- package/lib/compilers/dashedIdent.d.ts +49 -0
- package/lib/compilers/dashedIdent.js +115 -0
- package/lib/compilers/length.js +4 -2
- package/lib/css-properties-all-old-full-alias-support.d.ts +19 -0
- package/lib/css-properties-all-old-full-alias-support.js +3122 -0
- package/lib/css-properties-all.js +119 -93
- package/lib/node/compileFile.js +30 -15
- package/lib/prefix/responsive.js +7 -7
- package/lib/returnPropertyAndValue.js +24 -6
- package/lib/returnStatement.js +2 -2
- package/lib/static/staticClassNamesAlias.js +5 -5
- package/lib/utils/helper.d.ts +4 -0
- package/lib/utils/helper.js +23 -0
- package/lib/x-imports.js +135 -68
- package/package.json +1 -1
|
@@ -0,0 +1,3122 @@
|
|
|
1
|
+
import config from './config.js';
|
|
2
|
+
import length, { lenByNumPer } from './compilers/length.js';
|
|
3
|
+
import color from './compilers/color.js';
|
|
4
|
+
import timingFunction from './compilers/timingFunction.js';
|
|
5
|
+
import content, { string } from './compilers/stringAndContent.js';
|
|
6
|
+
import border from './compilers/border.js';
|
|
7
|
+
import gradient from './compilers/gradient.js';
|
|
8
|
+
import url from './compilers/url.js';
|
|
9
|
+
import clipPath from './compilers/clipPath.js';
|
|
10
|
+
import shadow from './compilers/shadow.js';
|
|
11
|
+
import filter from './compilers/filter.js';
|
|
12
|
+
import transform from './compilers/transform.js';
|
|
13
|
+
import transition from './compilers/transition.js';
|
|
14
|
+
import font from './compilers/font.js';
|
|
15
|
+
import { repeat } from './utils/cssFunc.js';
|
|
16
|
+
const style = config.styles; // ['dotted:d','dashed:da:d2','solid:s','double:db:d3','groove:g','ridge:ri:r','inset:i','outset:o','none:n','hidden:h'];
|
|
17
|
+
const width = config.widths; // ['medium:m','thin:t','thick:th:t2'];
|
|
18
|
+
const mode = config.modes; // ['normal:ml','multiply:m','screen:s','overlay:o','darken:d','lighten:l','color-dodge:cd','color-burn:cb','hard-light:hl','soft-light:sl','difference:di:d2','exclusion:e','hue:h','saturation:sa:s2','color:c','luminosity:lu:l2'];
|
|
19
|
+
const remUnits = config.remUnits; // [`${1/4}rem:1`,`${2/4}rem:2`,`${3/4}rem:3`,`${4/4}rem:4`,`${5/4}rem:5`,`${6/4}rem:6`,`${7/4}rem:7`,`${8/4}rem:8`,`${9/4}rem:9`,`${10/4}rem:10`,];
|
|
20
|
+
const remUnitsNegative = config.remUnitsNegative; // [`-${1/4}rem:-1`, `-${2/4}rem:-2`, `-${3/4}rem:-3`, `-${4/4}rem:-4`, `-${5/4}rem:-5`, `-${6/4}rem:-6`, `-${7/4}rem:-7`, `-${8/4}rem:-8`, `-${9/4}rem:-9`, `-${10/4}rem:-10`];
|
|
21
|
+
const gridBy = (value) => value
|
|
22
|
+
.replace(/--([\d])/g, '-Minus$1')
|
|
23
|
+
.replace(/\/-([\d])/g, '/Minus$1') // "/-1" is always negative: "/" is not a dash separator
|
|
24
|
+
.replace(/^-/, '')
|
|
25
|
+
.replace(/-by-/g, " / ")
|
|
26
|
+
.replace(/[-]?(span|[-]?[\d]+)[-]?/g, ' $1 ')
|
|
27
|
+
.replace(/[-]?Minus[\s]*/g, '-');
|
|
28
|
+
const cssProps = {
|
|
29
|
+
// type:s=static,d=dynamic
|
|
30
|
+
// -----------------xc----------------
|
|
31
|
+
// 'width-grow':{
|
|
32
|
+
// alias:'',
|
|
33
|
+
// property:'--width-grow',
|
|
34
|
+
// type:'d',
|
|
35
|
+
// compiler:length,
|
|
36
|
+
// values:[],
|
|
37
|
+
// },
|
|
38
|
+
// 'width-shrink':{
|
|
39
|
+
// alias:'',
|
|
40
|
+
// property:'--width-shrink',
|
|
41
|
+
// type:'d',
|
|
42
|
+
// compiler:length,
|
|
43
|
+
// values:[],
|
|
44
|
+
// },
|
|
45
|
+
// 'height-grow':{
|
|
46
|
+
// alias:'',
|
|
47
|
+
// property:'--height-grow',
|
|
48
|
+
// type:'d',
|
|
49
|
+
// compiler:length,
|
|
50
|
+
// values:[],
|
|
51
|
+
// },
|
|
52
|
+
// 'height-shrink':{
|
|
53
|
+
// alias:'',
|
|
54
|
+
// property:'--height-shrink',
|
|
55
|
+
// type:'d',
|
|
56
|
+
// compiler:length,
|
|
57
|
+
// values:[],
|
|
58
|
+
// },
|
|
59
|
+
// ----------xc-end
|
|
60
|
+
'accent-color': {
|
|
61
|
+
alias: 'accent',
|
|
62
|
+
type: 'd',
|
|
63
|
+
compiler: color,
|
|
64
|
+
values: ['auto:a'],
|
|
65
|
+
},
|
|
66
|
+
'align-content': {
|
|
67
|
+
alias: 'ac',
|
|
68
|
+
type: 's',
|
|
69
|
+
compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
|
|
70
|
+
values: ['start:s', 'end:e', 'normal:n', 'baseline:b:bl', 'stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'space-between:sb', 'space-around:sa', 'space-evenly:se'],
|
|
71
|
+
},
|
|
72
|
+
'align-items': {
|
|
73
|
+
alias: 'ai',
|
|
74
|
+
type: 's',
|
|
75
|
+
compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
|
|
76
|
+
values: ['normal:n', 'anchor-center:ac', 'stretch:st:s2', 'center:c', 'start:s', 'end:e', 'flex-start:fs', 'flex-end:fe', 'baseline:b'],
|
|
77
|
+
},
|
|
78
|
+
'align-self': {
|
|
79
|
+
alias: 'as',
|
|
80
|
+
type: 's',
|
|
81
|
+
compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
|
|
82
|
+
values: ['auto:a', 'anchor-center:ac', 'stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'baseline:b'],
|
|
83
|
+
},
|
|
84
|
+
'alignment-baseline': {
|
|
85
|
+
alias: 'ab',
|
|
86
|
+
type: 's',
|
|
87
|
+
// compiler:'',
|
|
88
|
+
values: ['auto', 'baseline', 'before-edge', 'text-before-edge',
|
|
89
|
+
'middle', 'central', 'after-edge', 'text-after-edge', 'ideographic', 'alphabetic',
|
|
90
|
+
'hanging', 'mathematical', 'top', 'center', 'bottom']
|
|
91
|
+
},
|
|
92
|
+
'all': {
|
|
93
|
+
alias: '',
|
|
94
|
+
type: 's',
|
|
95
|
+
// compiler:'',
|
|
96
|
+
values: [],
|
|
97
|
+
},
|
|
98
|
+
'anchor-name': {
|
|
99
|
+
alias: '',
|
|
100
|
+
type: 'd',
|
|
101
|
+
compiler: (value) => "-" + value.replace(/__/g, ', --'),
|
|
102
|
+
values: ['none:n']
|
|
103
|
+
},
|
|
104
|
+
'animation': {
|
|
105
|
+
alias: 'a',
|
|
106
|
+
type: 'd',
|
|
107
|
+
compiler: (value) => {
|
|
108
|
+
let result = '';
|
|
109
|
+
value.split(/__/).forEach((val) => result += (val.replace(/-/g, ' ').replace(/(ease[\s]in|ease[\s]out|ease[\s]in[\s]out|linear|step[\s]start|step[\s]end)/, (m, e) => m.replace(/\s/g, '-')) + ', '));
|
|
110
|
+
return result.replace(/(,\s)$/, '');
|
|
111
|
+
},
|
|
112
|
+
values: [],
|
|
113
|
+
},
|
|
114
|
+
'animation-composition': {
|
|
115
|
+
'alias': 'anc',
|
|
116
|
+
compiler: (value) => value.replace(/[-_]/g, ' ')
|
|
117
|
+
},
|
|
118
|
+
'animation-delay': {
|
|
119
|
+
alias: 'adl',
|
|
120
|
+
type: 'dynamic',
|
|
121
|
+
compiler: length,
|
|
122
|
+
values: [],
|
|
123
|
+
},
|
|
124
|
+
'animation-direction': {
|
|
125
|
+
alias: 'ad',
|
|
126
|
+
type: 's',
|
|
127
|
+
// compiler:'',
|
|
128
|
+
values: ['normal:n', 'reverse:r', 'alternate:a', 'alternate-reverse:ar'],
|
|
129
|
+
},
|
|
130
|
+
'animation-duration': {
|
|
131
|
+
alias: 'adu',
|
|
132
|
+
type: 'd',
|
|
133
|
+
compiler: length,
|
|
134
|
+
values: [''],
|
|
135
|
+
},
|
|
136
|
+
'animation-fill-mode': {
|
|
137
|
+
alias: 'afm',
|
|
138
|
+
type: 's',
|
|
139
|
+
// compiler:'',
|
|
140
|
+
values: ['none:n', 'forwards:f', 'backwards:b', 'both:bo:b2'],
|
|
141
|
+
},
|
|
142
|
+
'animation-iteration-count': {
|
|
143
|
+
alias: 'aic',
|
|
144
|
+
type: 'd',
|
|
145
|
+
compiler: (value) => value.replace(/[d]/, '.').replace('-', ""),
|
|
146
|
+
values: ['infinite:i'],
|
|
147
|
+
},
|
|
148
|
+
'animation-name': {
|
|
149
|
+
alias: 'an',
|
|
150
|
+
type: 'd',
|
|
151
|
+
compiler: string,
|
|
152
|
+
values: ['none:n'],
|
|
153
|
+
},
|
|
154
|
+
'animation-play-state': {
|
|
155
|
+
alias: 'aps',
|
|
156
|
+
type: 's',
|
|
157
|
+
// compiler:'',
|
|
158
|
+
values: ['paused:p', 'running:r'],
|
|
159
|
+
},
|
|
160
|
+
'animation-timing-function': {
|
|
161
|
+
alias: 'atf',
|
|
162
|
+
type: 'd',
|
|
163
|
+
compiler: timingFunction,
|
|
164
|
+
values: ['linear:l', 'ease:e', 'ease-in:ei', 'ease-out:eo', 'ease-in-out:eio', 'step-start:ss', 'step-end:se'],
|
|
165
|
+
},
|
|
166
|
+
'animation-timeline': {
|
|
167
|
+
alias: 'at',
|
|
168
|
+
type: 'd',
|
|
169
|
+
compiler: (values) => {
|
|
170
|
+
let result = '';
|
|
171
|
+
values.split(/__/).forEach((value) => {
|
|
172
|
+
if (value.match(/^-(scroll|view|s|v)-/)) {
|
|
173
|
+
result += /^-s/.test(value) ? 'scroll(' : 'view(';
|
|
174
|
+
value = value.replace(/^-(scroll|view|s|v)-/, '');
|
|
175
|
+
if (value)
|
|
176
|
+
result += value.replace(/-/g, ' ')
|
|
177
|
+
.replace(/(\d)[p][\s]/g, '$1% ')
|
|
178
|
+
.replace(/(\d)p$/, '$1%')
|
|
179
|
+
.replace(/(\d)d(\d)/g, '$1.$2') + "), ";
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
result += (value.match(/^-/) ? ("-" + value) : ('--' + value)).replace(/--none/, 'none ') + ', ';
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
return result.replace(/,[\s]$/, '');
|
|
186
|
+
},
|
|
187
|
+
values: ['auto:a', 'none:n', 'view():view:v', 'scroll():scroll:s',]
|
|
188
|
+
},
|
|
189
|
+
'animation-range': {
|
|
190
|
+
// 'alias':'ar',
|
|
191
|
+
compiler: (value) => value.replace(/-/g, ' ').replace(/([\d])[p][\s]/, '$1% ').replace(/([\d])[p]$/, '$1%'),
|
|
192
|
+
},
|
|
193
|
+
'animation-range-end': {
|
|
194
|
+
'alias': 'are',
|
|
195
|
+
compiler: (value) => value.replace(/-/g, ' ').replace(/([\d])[p][\s]/, '$1% ').replace(/([\d])[p]$/, '$1%'),
|
|
196
|
+
values: ['normal:nl', 'cover', 'contain']
|
|
197
|
+
},
|
|
198
|
+
'animation-range-start': {
|
|
199
|
+
'alias': 'ars',
|
|
200
|
+
compiler: (value) => value.replace(/-/g, ' ').replace(/([\d])[p][\s]/, '$1% ').replace(/([\d])[p]$/, '$1%'),
|
|
201
|
+
},
|
|
202
|
+
'appearance': {
|
|
203
|
+
alias: 'ap',
|
|
204
|
+
type: 's',
|
|
205
|
+
compiler: (value) => value.replace(/^-/, '').replace(/moz/, '-moz'),
|
|
206
|
+
values: ['none:n', 'auto:a', 'menulist-button:mb', 'textfield:t:tf'],
|
|
207
|
+
},
|
|
208
|
+
'aspect-ratio': {
|
|
209
|
+
alias: 'ar',
|
|
210
|
+
type: 'd',
|
|
211
|
+
compiler: (value) => value.replace(/^-/, '').replace(/(-by-)/, '/').replace(/([\d])d([\d])/g, '$1.$2').replace("-", " "),
|
|
212
|
+
values: ['auto:a'],
|
|
213
|
+
},
|
|
214
|
+
// ----------B--------'
|
|
215
|
+
'backdrop-filter': {
|
|
216
|
+
alias: 'bf',
|
|
217
|
+
type: 'd',
|
|
218
|
+
compiler: filter,
|
|
219
|
+
values: ['none:n', 'invert():invert:i', 'sepia():sepia:se', 'grayscale():grayscale:gs'],
|
|
220
|
+
},
|
|
221
|
+
'backface-visibility': {
|
|
222
|
+
alias: 'bv',
|
|
223
|
+
type: 's',
|
|
224
|
+
// compiler:'',
|
|
225
|
+
values: ['visible:v', 'hidden:h'],
|
|
226
|
+
},
|
|
227
|
+
'background': {
|
|
228
|
+
alias: 'bg',
|
|
229
|
+
type: 'd',
|
|
230
|
+
compiler: (value, custom) => {
|
|
231
|
+
if (value.match(/^[-]?url/)) {
|
|
232
|
+
return url(value);
|
|
233
|
+
}
|
|
234
|
+
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rlg))([(-_][\w_-]+)/)) {
|
|
235
|
+
return gradient(value, custom);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
return color(value, custom);
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
values: [],
|
|
242
|
+
},
|
|
243
|
+
'background-attachment': {
|
|
244
|
+
alias: 'bga',
|
|
245
|
+
type: 's',
|
|
246
|
+
compiler: (value) => value.replace(/^-/, '').replace(/-/g, ', '),
|
|
247
|
+
values: ['scroll:s', 'fixed:f', 'local:l'],
|
|
248
|
+
},
|
|
249
|
+
'background-blend-mode': {
|
|
250
|
+
alias: 'bgbm',
|
|
251
|
+
type: 's',
|
|
252
|
+
compiler: (value) => value.replace(/^-/, '').replace(/(-|__)/g, ', ').replace(/color,[\s]dodge/g, 'color-dodge'),
|
|
253
|
+
values: ['normal:nl', 'multiply:m', 'screen:s', 'overlay:o', 'darken:d', 'lighten:l', 'color-dodge:cd', 'saturation:sa:s2', 'color:c', 'luminosity:lu:l2'],
|
|
254
|
+
},
|
|
255
|
+
'background-clip': {
|
|
256
|
+
alias: 'bgcl',
|
|
257
|
+
type: 's',
|
|
258
|
+
compiler: (value) => value.replace(/^-/, '').replace(/(-|__)/g, ', ').replace(/,[\s]b/g, '-b'),
|
|
259
|
+
values: ['border-box:bb', 'padding-box:pb', 'content-box:cb', 'text:t'],
|
|
260
|
+
},
|
|
261
|
+
'background-color': {
|
|
262
|
+
alias: 'bgc',
|
|
263
|
+
type: 'd',
|
|
264
|
+
compiler: color,
|
|
265
|
+
// values:[],
|
|
266
|
+
},
|
|
267
|
+
'background-image': {
|
|
268
|
+
alias: 'bgi',
|
|
269
|
+
type: 'd',
|
|
270
|
+
compiler: (value, custom) => {
|
|
271
|
+
if (value.match(/^[-]?url/)) {
|
|
272
|
+
return url(value);
|
|
273
|
+
}
|
|
274
|
+
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
|
|
275
|
+
return gradient(value, custom);
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
values: ['none:n'],
|
|
282
|
+
},
|
|
283
|
+
'background-origin': {
|
|
284
|
+
alias: 'bgo',
|
|
285
|
+
type: 's',
|
|
286
|
+
// compiler:'',
|
|
287
|
+
values: ['padding-box:pb', 'border-box:bb', 'content-box:cb'],
|
|
288
|
+
},
|
|
289
|
+
'background-position': {
|
|
290
|
+
alias: 'bgp',
|
|
291
|
+
type: 'd',
|
|
292
|
+
// compiler:length,
|
|
293
|
+
compiler: (value) => value.replace(/-/g, ' ').replace(/(\d)d(\d)/g, '$1.$2').replace(/__/g, ', ').replace(/([\d])p([\s,])/g, "$1%$2 ").replace(/([\d])p$/, "$1%"),
|
|
294
|
+
values: ['bottom:b', 'bottom center:bc', 'bottom left:bl', 'bottom right:br', 'center:c', 'center bottom:cb', 'center center:cc', 'center top:ct', 'left:l', 'left bottom:lb', 'left center:lc', 'left top:lt', 'right:r', 'right bottom:rb', 'right center:rc', 'right top:rt', 'top:t', 'top center:tc', 'top left:tl', 'top right:tr'],
|
|
295
|
+
},
|
|
296
|
+
'background-position-x': {
|
|
297
|
+
alias: 'bgpx',
|
|
298
|
+
type: 'd',
|
|
299
|
+
compiler: (value) => value.replace(/-/g, ' ').replace(/(\d)d(\d)/g, '$1.$2').replace(/__/g, ', ').replace(/([\d])p([\s,])/g, "$1%$2 ").replace(/([\d])p$/, "$1%"),
|
|
300
|
+
values: ['right:r', 'left:l', 'center:c'],
|
|
301
|
+
},
|
|
302
|
+
'background-position-y': {
|
|
303
|
+
alias: 'bgpy',
|
|
304
|
+
type: 'd',
|
|
305
|
+
compiler: (value) => value.replace(/-/g, ' ').replace(/(\d)d(\d)/g, '$1.$2').replace(/__/g, ', ').replace(/([\d])p([\s,])/g, "$1%$2 ").replace(/([\d])p$/, "$1%"),
|
|
306
|
+
values: ['top:t', 'center:c', 'bottom:b'],
|
|
307
|
+
},
|
|
308
|
+
'background-repeat': {
|
|
309
|
+
alias: 'bgr',
|
|
310
|
+
type: 's',
|
|
311
|
+
// compiler:'',
|
|
312
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ' '),
|
|
313
|
+
values: ['repeat:r', 'repeat-x:rx', 'repeat-y:ry', 'round:ro', 'space:s', 'no-repeat:nr',
|
|
314
|
+
'repeat repeat:rr', 'repeat space:rs', 'repeat round:rro', 'repeat no-repeat:rnr',
|
|
315
|
+
'space repeat:sr', 'space space:ss', 'space round:sro', 'space no-repeat:snr',
|
|
316
|
+
'round repeat:ror', 'round space:ros', 'round round:roro', 'round no-repeat:ronr',
|
|
317
|
+
'no-repeat repeat:nrr', 'no-repeat space:nrs', 'no-repeat round:nrro', 'no-repeat no-repeat:nrnr'
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
'background-size': {
|
|
321
|
+
alias: 'bgs',
|
|
322
|
+
type: 'd',
|
|
323
|
+
// compiler:length,
|
|
324
|
+
compiler: (value) => {
|
|
325
|
+
let result = '';
|
|
326
|
+
value.split('__').forEach((val) => {
|
|
327
|
+
result += length(val).replace(/-(contain|cover|auto)/g, " $1") + ", ";
|
|
328
|
+
});
|
|
329
|
+
return result.replace(/[,][\s]$/, '');
|
|
330
|
+
},
|
|
331
|
+
values: ['auto:a', 'contain:c', 'cover:co'],
|
|
332
|
+
},
|
|
333
|
+
// 'bleed':{},
|
|
334
|
+
'block-overflow': {
|
|
335
|
+
alias: '',
|
|
336
|
+
type: 'd',
|
|
337
|
+
compiler: (value) => value.replace(/^-/, ''),
|
|
338
|
+
values: ['clip:c', 'ellipsis:e']
|
|
339
|
+
},
|
|
340
|
+
'block-size': {
|
|
341
|
+
alias: '', // border-spacing-bs
|
|
342
|
+
type: 'd',
|
|
343
|
+
compiler: length,
|
|
344
|
+
values: ['auto:a', 'max-content:xc', 'min-content:mc', 'fit-content:fc'],
|
|
345
|
+
},
|
|
346
|
+
'border': {
|
|
347
|
+
alias: 'b',
|
|
348
|
+
type: 'd',
|
|
349
|
+
compiler: border,
|
|
350
|
+
values: ['none:n', '0'],
|
|
351
|
+
},
|
|
352
|
+
'border-block': {
|
|
353
|
+
alias: '',
|
|
354
|
+
type: 'd',
|
|
355
|
+
compiler: border,
|
|
356
|
+
values: [''],
|
|
357
|
+
},
|
|
358
|
+
'border-block-color': {
|
|
359
|
+
alias: '',
|
|
360
|
+
type: 'd',
|
|
361
|
+
compiler: color,
|
|
362
|
+
values: [''],
|
|
363
|
+
},
|
|
364
|
+
'border-block-end-color': {
|
|
365
|
+
alias: 'bbec',
|
|
366
|
+
type: 'd',
|
|
367
|
+
compiler: color,
|
|
368
|
+
values: [''],
|
|
369
|
+
},
|
|
370
|
+
'border-block-end-style': {
|
|
371
|
+
alias: 'bbes',
|
|
372
|
+
type: 's',
|
|
373
|
+
// compiler:'',
|
|
374
|
+
values: style,
|
|
375
|
+
},
|
|
376
|
+
'border-block-end-width': {
|
|
377
|
+
alias: 'bbew',
|
|
378
|
+
type: 'd',
|
|
379
|
+
compiler: length,
|
|
380
|
+
values: width,
|
|
381
|
+
},
|
|
382
|
+
'border-block-start-color': {
|
|
383
|
+
alias: 'bbsc',
|
|
384
|
+
type: 'd',
|
|
385
|
+
compiler: color,
|
|
386
|
+
values: [''],
|
|
387
|
+
},
|
|
388
|
+
'border-block-start-style': {
|
|
389
|
+
alias: 'bbss',
|
|
390
|
+
type: 's',
|
|
391
|
+
// compiler:'',
|
|
392
|
+
values: style,
|
|
393
|
+
},
|
|
394
|
+
'border-block-start-width': {
|
|
395
|
+
alias: 'bbsw',
|
|
396
|
+
type: 'd',
|
|
397
|
+
compiler: length,
|
|
398
|
+
values: width,
|
|
399
|
+
},
|
|
400
|
+
'border-block-style': {
|
|
401
|
+
alias: '',
|
|
402
|
+
type: 's',
|
|
403
|
+
// compiler:'',
|
|
404
|
+
values: style,
|
|
405
|
+
},
|
|
406
|
+
'border-block-width': {
|
|
407
|
+
alias: '',
|
|
408
|
+
type: 'd',
|
|
409
|
+
compiler: length,
|
|
410
|
+
values: width,
|
|
411
|
+
},
|
|
412
|
+
'border-bottom': {
|
|
413
|
+
alias: 'bb',
|
|
414
|
+
type: 'd',
|
|
415
|
+
compiler: border,
|
|
416
|
+
values: [''],
|
|
417
|
+
},
|
|
418
|
+
'border-bottom-color': {
|
|
419
|
+
alias: 'bbc',
|
|
420
|
+
type: 'd',
|
|
421
|
+
compiler: color,
|
|
422
|
+
values: [''],
|
|
423
|
+
},
|
|
424
|
+
'border-bottom-left-radius': {
|
|
425
|
+
alias: 'bblr',
|
|
426
|
+
type: 'd',
|
|
427
|
+
compiler: length,
|
|
428
|
+
values: [''],
|
|
429
|
+
},
|
|
430
|
+
'border-bottom-right-radius': {
|
|
431
|
+
alias: 'bbrr',
|
|
432
|
+
type: 'd',
|
|
433
|
+
compiler: length,
|
|
434
|
+
values: [''],
|
|
435
|
+
},
|
|
436
|
+
'border-bottom-style': {
|
|
437
|
+
alias: 'bbs',
|
|
438
|
+
type: 's',
|
|
439
|
+
// compiler:'',
|
|
440
|
+
values: style,
|
|
441
|
+
},
|
|
442
|
+
'border-bottom-width': {
|
|
443
|
+
alias: 'bbw',
|
|
444
|
+
type: 'd',
|
|
445
|
+
compiler: length,
|
|
446
|
+
values: width,
|
|
447
|
+
},
|
|
448
|
+
'border-boundary': {
|
|
449
|
+
alias: '',
|
|
450
|
+
type: 's',
|
|
451
|
+
'values': ['none:n', 'parent:p', 'display:d']
|
|
452
|
+
},
|
|
453
|
+
'border-collapse': {
|
|
454
|
+
alias: '',
|
|
455
|
+
type: 's',
|
|
456
|
+
// compiler:'',
|
|
457
|
+
values: ['separate:s', 'collapse:c'],
|
|
458
|
+
},
|
|
459
|
+
'border-color': {
|
|
460
|
+
alias: 'bc',
|
|
461
|
+
type: 'd',
|
|
462
|
+
compiler: color,
|
|
463
|
+
values: [''],
|
|
464
|
+
},
|
|
465
|
+
'border-end-end-radius': {
|
|
466
|
+
alias: 'beer',
|
|
467
|
+
type: 'd',
|
|
468
|
+
compiler: length,
|
|
469
|
+
values: [''],
|
|
470
|
+
},
|
|
471
|
+
'border-end-start-radius': {
|
|
472
|
+
alias: 'besr',
|
|
473
|
+
type: 'd',
|
|
474
|
+
compiler: length,
|
|
475
|
+
values: [''],
|
|
476
|
+
},
|
|
477
|
+
'border-image': {
|
|
478
|
+
alias: '', // taken by border-inline
|
|
479
|
+
type: '',
|
|
480
|
+
compiler: (value, custom) => {
|
|
481
|
+
if (value.match(/^[-]?url/)) {
|
|
482
|
+
return url(value);
|
|
483
|
+
}
|
|
484
|
+
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
|
|
485
|
+
return gradient(value, custom);
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
return null;
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
values: [''],
|
|
492
|
+
},
|
|
493
|
+
'border-image-outset': {
|
|
494
|
+
alias: '',
|
|
495
|
+
type: 'd',
|
|
496
|
+
compiler: length,
|
|
497
|
+
values: [''],
|
|
498
|
+
},
|
|
499
|
+
'border-image-repeat': {
|
|
500
|
+
alias: 'bir',
|
|
501
|
+
type: 's',
|
|
502
|
+
// compiler:'',
|
|
503
|
+
values: ['stretch:s', 'repeat:r', 'round:ro:r2', 'space:sp:s2'],
|
|
504
|
+
},
|
|
505
|
+
'border-image-slice': {
|
|
506
|
+
alias: '',
|
|
507
|
+
type: 'd',
|
|
508
|
+
compiler: length,
|
|
509
|
+
values: [''],
|
|
510
|
+
},
|
|
511
|
+
'border-image-source': {
|
|
512
|
+
alias: '',
|
|
513
|
+
type: '',
|
|
514
|
+
compiler: (value, custom) => {
|
|
515
|
+
if (value.match(/^[-]?url/)) {
|
|
516
|
+
return url(value);
|
|
517
|
+
}
|
|
518
|
+
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
|
|
519
|
+
return gradient(value, custom);
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
return null;
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
values: ['none:n'],
|
|
526
|
+
},
|
|
527
|
+
'border-image-width': {
|
|
528
|
+
alias: '',
|
|
529
|
+
type: 'd',
|
|
530
|
+
compiler: length,
|
|
531
|
+
values: [''],
|
|
532
|
+
},
|
|
533
|
+
'border-inline': {
|
|
534
|
+
alias: 'bi',
|
|
535
|
+
type: 'd',
|
|
536
|
+
compiler: border,
|
|
537
|
+
values: [''],
|
|
538
|
+
},
|
|
539
|
+
'border-inline-color': {
|
|
540
|
+
alias: 'bic',
|
|
541
|
+
type: 'd',
|
|
542
|
+
compiler: color,
|
|
543
|
+
values: [''],
|
|
544
|
+
},
|
|
545
|
+
'border-inline-end-color': {
|
|
546
|
+
alias: 'biec',
|
|
547
|
+
type: 'd',
|
|
548
|
+
compiler: color,
|
|
549
|
+
values: [''],
|
|
550
|
+
},
|
|
551
|
+
'border-inline-end-style': {
|
|
552
|
+
alias: 'bies',
|
|
553
|
+
type: 's',
|
|
554
|
+
// compiler:'',
|
|
555
|
+
values: style,
|
|
556
|
+
},
|
|
557
|
+
'border-inline-end-width': {
|
|
558
|
+
alias: 'biew',
|
|
559
|
+
type: 'd',
|
|
560
|
+
compiler: length,
|
|
561
|
+
values: width,
|
|
562
|
+
},
|
|
563
|
+
'border-inline-start-color': {
|
|
564
|
+
alias: 'bisc',
|
|
565
|
+
type: 'd',
|
|
566
|
+
compiler: color,
|
|
567
|
+
values: [''],
|
|
568
|
+
},
|
|
569
|
+
'border-inline-start-style': {
|
|
570
|
+
alias: 'biss',
|
|
571
|
+
type: 's',
|
|
572
|
+
// compiler:'',
|
|
573
|
+
values: style,
|
|
574
|
+
},
|
|
575
|
+
'border-inline-start-width': {
|
|
576
|
+
alias: 'bisw',
|
|
577
|
+
type: 'd',
|
|
578
|
+
compiler: length,
|
|
579
|
+
values: width,
|
|
580
|
+
},
|
|
581
|
+
'border-inline-style': {
|
|
582
|
+
alias: 'bis',
|
|
583
|
+
type: 's',
|
|
584
|
+
// compiler:'',
|
|
585
|
+
values: style,
|
|
586
|
+
},
|
|
587
|
+
'border-inline-width': {
|
|
588
|
+
alias: 'biw',
|
|
589
|
+
type: 'd',
|
|
590
|
+
compiler: length,
|
|
591
|
+
values: width,
|
|
592
|
+
},
|
|
593
|
+
'border-left': {
|
|
594
|
+
alias: 'bl',
|
|
595
|
+
type: 'd',
|
|
596
|
+
compiler: border,
|
|
597
|
+
values: [''],
|
|
598
|
+
},
|
|
599
|
+
'border-left-color': {
|
|
600
|
+
alias: 'blc',
|
|
601
|
+
type: 'd',
|
|
602
|
+
compiler: color,
|
|
603
|
+
values: [''],
|
|
604
|
+
},
|
|
605
|
+
'border-left-style': {
|
|
606
|
+
alias: 'bls',
|
|
607
|
+
type: 's',
|
|
608
|
+
// compiler:'',
|
|
609
|
+
values: style,
|
|
610
|
+
},
|
|
611
|
+
'border-left-width': {
|
|
612
|
+
alias: 'blw',
|
|
613
|
+
type: 'd',
|
|
614
|
+
compiler: length,
|
|
615
|
+
values: width,
|
|
616
|
+
},
|
|
617
|
+
'border-radius': {
|
|
618
|
+
alias: 'br',
|
|
619
|
+
type: 'd',
|
|
620
|
+
compiler: length,
|
|
621
|
+
values: [''],
|
|
622
|
+
},
|
|
623
|
+
'border-right': {
|
|
624
|
+
alias: 'brt',
|
|
625
|
+
type: 'd',
|
|
626
|
+
compiler: border,
|
|
627
|
+
values: [''],
|
|
628
|
+
},
|
|
629
|
+
'border-right-color': {
|
|
630
|
+
alias: 'brc',
|
|
631
|
+
type: 'd',
|
|
632
|
+
compiler: color,
|
|
633
|
+
values: [''],
|
|
634
|
+
},
|
|
635
|
+
'border-right-style': {
|
|
636
|
+
alias: 'brs',
|
|
637
|
+
type: 's',
|
|
638
|
+
// compiler:'',
|
|
639
|
+
values: style,
|
|
640
|
+
},
|
|
641
|
+
'border-right-width': {
|
|
642
|
+
alias: 'brw',
|
|
643
|
+
type: 'd',
|
|
644
|
+
compiler: length,
|
|
645
|
+
values: width,
|
|
646
|
+
},
|
|
647
|
+
'border-spacing': {
|
|
648
|
+
alias: '',
|
|
649
|
+
type: 'd',
|
|
650
|
+
compiler: length,
|
|
651
|
+
values: [''],
|
|
652
|
+
},
|
|
653
|
+
'border-start-end-radius': {
|
|
654
|
+
alias: 'bser',
|
|
655
|
+
type: 'd',
|
|
656
|
+
compiler: length,
|
|
657
|
+
values: [''],
|
|
658
|
+
},
|
|
659
|
+
'border-start-start-radius': {
|
|
660
|
+
alias: 'bssr',
|
|
661
|
+
type: 'd',
|
|
662
|
+
compiler: length,
|
|
663
|
+
values: [''],
|
|
664
|
+
},
|
|
665
|
+
'border-style': {
|
|
666
|
+
alias: 'bs', // ------
|
|
667
|
+
type: 's',
|
|
668
|
+
// compiler:'',
|
|
669
|
+
values: style,
|
|
670
|
+
},
|
|
671
|
+
'border-top': {
|
|
672
|
+
alias: 'bt',
|
|
673
|
+
type: 'd',
|
|
674
|
+
compiler: border,
|
|
675
|
+
values: [''],
|
|
676
|
+
},
|
|
677
|
+
'border-top-color': {
|
|
678
|
+
alias: 'btc',
|
|
679
|
+
type: 'd',
|
|
680
|
+
compiler: color,
|
|
681
|
+
values: [''],
|
|
682
|
+
},
|
|
683
|
+
'border-top-left-radius': {
|
|
684
|
+
alias: 'btlr',
|
|
685
|
+
type: 'd',
|
|
686
|
+
compiler: length,
|
|
687
|
+
values: [''],
|
|
688
|
+
},
|
|
689
|
+
'border-top-right-radius': {
|
|
690
|
+
alias: 'btrr',
|
|
691
|
+
type: 'd',
|
|
692
|
+
compiler: length,
|
|
693
|
+
values: [''],
|
|
694
|
+
},
|
|
695
|
+
'border-top-style': {
|
|
696
|
+
alias: 'bts',
|
|
697
|
+
type: 's',
|
|
698
|
+
// compiler:'',
|
|
699
|
+
values: style,
|
|
700
|
+
},
|
|
701
|
+
'border-top-width': {
|
|
702
|
+
alias: 'btw',
|
|
703
|
+
type: 'd',
|
|
704
|
+
compiler: length,
|
|
705
|
+
values: width,
|
|
706
|
+
},
|
|
707
|
+
'border-width': {
|
|
708
|
+
alias: 'bw',
|
|
709
|
+
type: 'd',
|
|
710
|
+
compiler: length,
|
|
711
|
+
values: width,
|
|
712
|
+
},
|
|
713
|
+
'bottom': {
|
|
714
|
+
alias: 'btm',
|
|
715
|
+
type: 'd',
|
|
716
|
+
compiler: length,
|
|
717
|
+
values: [''],
|
|
718
|
+
},
|
|
719
|
+
'box-decoration-break': {
|
|
720
|
+
alias: 'bdb',
|
|
721
|
+
type: '',
|
|
722
|
+
// compiler:'',
|
|
723
|
+
values: ['slice:s', 'clone:c'],
|
|
724
|
+
},
|
|
725
|
+
'box-reflect': {
|
|
726
|
+
alias: 'bxr',
|
|
727
|
+
type: 'd',
|
|
728
|
+
compiler: length,
|
|
729
|
+
values: ['none:n', 'below:b', 'above:a', 'left:l', 'right:r'],
|
|
730
|
+
},
|
|
731
|
+
'box-shadow': {
|
|
732
|
+
alias: 'bxs',
|
|
733
|
+
type: 'd',
|
|
734
|
+
compiler: shadow,
|
|
735
|
+
values: ['none:n'],
|
|
736
|
+
},
|
|
737
|
+
'box-sizing': {
|
|
738
|
+
alias: '',
|
|
739
|
+
type: 's',
|
|
740
|
+
// compiler:'',
|
|
741
|
+
values: ['content-box:cb', 'border-box:bb'],
|
|
742
|
+
},
|
|
743
|
+
'break-after': {
|
|
744
|
+
alias: 'ba',
|
|
745
|
+
type: 's',
|
|
746
|
+
// compiler:'',
|
|
747
|
+
values: ['auto:au', 'all', 'always:al', 'avoid:av', 'avoid-column:ac', 'avoid-page:ap', 'avoid-region:ar', 'column:c', 'left:l', 'page:p', 'recto:rec', 'region:reg', 'right:r', 'verso:v'],
|
|
748
|
+
},
|
|
749
|
+
'break-before': {
|
|
750
|
+
alias: '',
|
|
751
|
+
type: 's',
|
|
752
|
+
// compiler:'',
|
|
753
|
+
values: ['auto:au', 'all', 'always:al', 'avoid:av', 'avoid-column:ac', 'avoid-page:ap', 'avoid-region:ar', 'column:c', 'left:l', 'page:p', 'recto:rec', 'region:reg', 'right:r', 'verso:v'],
|
|
754
|
+
},
|
|
755
|
+
'break-inside': {
|
|
756
|
+
alias: '', // ----
|
|
757
|
+
type: 's',
|
|
758
|
+
// compiler:'',
|
|
759
|
+
values: ['auto:au', 'all', 'always:al', 'avoid:av', 'avoid-column:ac', 'avoid-page:ap', 'avoid-region:ar', 'column:c', 'left:l', 'page:p', 'recto:rec', 'region:reg', 'right:r', 'verso:v'],
|
|
760
|
+
},
|
|
761
|
+
// ----------C--------
|
|
762
|
+
'caption-side': {
|
|
763
|
+
alias: '',
|
|
764
|
+
type: 's',
|
|
765
|
+
// compiler:'',
|
|
766
|
+
values: ['top:t', 'bottom:b'],
|
|
767
|
+
},
|
|
768
|
+
'caret-color': {
|
|
769
|
+
alias: '', // ---
|
|
770
|
+
type: 'd',
|
|
771
|
+
compiler: color,
|
|
772
|
+
values: [],
|
|
773
|
+
},
|
|
774
|
+
'clear': {
|
|
775
|
+
alias: 'cl', // --
|
|
776
|
+
type: '',
|
|
777
|
+
// compiler:'',
|
|
778
|
+
values: ['none:n', 'left:l', 'right:r', 'both:b'],
|
|
779
|
+
},
|
|
780
|
+
'clip-path': {
|
|
781
|
+
alias: 'cp',
|
|
782
|
+
type: 'd',
|
|
783
|
+
compiler: clipPath,
|
|
784
|
+
values: ['none:n', 'margin-box:mb', 'border-box:bb', 'padding-box:pb', 'content-box:cb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
|
|
785
|
+
},
|
|
786
|
+
'color': {
|
|
787
|
+
alias: 'c',
|
|
788
|
+
type: 'd',
|
|
789
|
+
compiler: color,
|
|
790
|
+
values: [''],
|
|
791
|
+
},
|
|
792
|
+
'color-interpolation': {
|
|
793
|
+
alias: '',
|
|
794
|
+
type: 's',
|
|
795
|
+
// compiler:'',
|
|
796
|
+
values: ['auto:a', 'sRGB', 'linearRGB']
|
|
797
|
+
},
|
|
798
|
+
'color-interpolation-filters': {
|
|
799
|
+
alias: '',
|
|
800
|
+
type: 's',
|
|
801
|
+
// compiler:'',
|
|
802
|
+
values: ['auto:a', 'sRGB', 'linearRGB']
|
|
803
|
+
},
|
|
804
|
+
'color-scheme': {
|
|
805
|
+
alias: '',
|
|
806
|
+
type: 's',
|
|
807
|
+
// compiler:'',
|
|
808
|
+
values: ['normal:n', 'dark:d', 'only dark:only-dark:od:o-d', 'light dark:light-dark:l-d:ld', 'only light:only-light:o-l:ol', 'light:l']
|
|
809
|
+
},
|
|
810
|
+
'column-count': {
|
|
811
|
+
alias: 'cc',
|
|
812
|
+
type: 'd',
|
|
813
|
+
compiler: length,
|
|
814
|
+
values: ['auto:a'],
|
|
815
|
+
},
|
|
816
|
+
'column-fill': {
|
|
817
|
+
alias: 'cf',
|
|
818
|
+
type: 's',
|
|
819
|
+
// compiler:'',
|
|
820
|
+
values: ['auto:a', 'balance:b'],
|
|
821
|
+
},
|
|
822
|
+
'column-gap': {
|
|
823
|
+
alias: 'cg',
|
|
824
|
+
type: 'd',
|
|
825
|
+
compiler: length,
|
|
826
|
+
values: ['normal:n', ...remUnits],
|
|
827
|
+
},
|
|
828
|
+
'column-rule': {
|
|
829
|
+
alias: 'cr',
|
|
830
|
+
type: 'd',
|
|
831
|
+
compiler: border,
|
|
832
|
+
values: [''],
|
|
833
|
+
},
|
|
834
|
+
'column-rule-color': {
|
|
835
|
+
alias: 'crc',
|
|
836
|
+
type: 'd',
|
|
837
|
+
compiler: color,
|
|
838
|
+
values: [''],
|
|
839
|
+
},
|
|
840
|
+
'column-rule-style': {
|
|
841
|
+
alias: 'crs',
|
|
842
|
+
type: 's',
|
|
843
|
+
// compiler:'',
|
|
844
|
+
values: style,
|
|
845
|
+
},
|
|
846
|
+
'column-rule-width': {
|
|
847
|
+
alias: 'crw',
|
|
848
|
+
type: 'd',
|
|
849
|
+
compiler: length,
|
|
850
|
+
values: width,
|
|
851
|
+
},
|
|
852
|
+
'column-span': {
|
|
853
|
+
alias: 'cs',
|
|
854
|
+
type: 's',
|
|
855
|
+
// compiler:'',
|
|
856
|
+
values: ['all:a', 'none:n'],
|
|
857
|
+
},
|
|
858
|
+
'column-width': {
|
|
859
|
+
alias: 'cw',
|
|
860
|
+
type: 'd',
|
|
861
|
+
compiler: length,
|
|
862
|
+
values: ['auto:a'],
|
|
863
|
+
},
|
|
864
|
+
'columns': {
|
|
865
|
+
alias: 'cols',
|
|
866
|
+
type: 'd',
|
|
867
|
+
compiler: length,
|
|
868
|
+
values: [''],
|
|
869
|
+
},
|
|
870
|
+
'contain': {
|
|
871
|
+
alias: '',
|
|
872
|
+
type: 'd',
|
|
873
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_[_]?/g, ' '),
|
|
874
|
+
values: ['none:n', 'strict:st', 'content:c', 'size:si', 'inline-size:is', 'layout:l', 'style:sty', 'paint:p']
|
|
875
|
+
},
|
|
876
|
+
'contain-intrinsic-block-size': {
|
|
877
|
+
alias: '',
|
|
878
|
+
type: 'd',
|
|
879
|
+
compiler: length,
|
|
880
|
+
values: ['none:n', 'auto:a']
|
|
881
|
+
},
|
|
882
|
+
'contain-intrinsic-height': {
|
|
883
|
+
alias: '',
|
|
884
|
+
type: 'd',
|
|
885
|
+
compiler: length,
|
|
886
|
+
values: ['none:n', 'auto:a']
|
|
887
|
+
},
|
|
888
|
+
'contain-intrinsic-inline-size': {
|
|
889
|
+
alias: '',
|
|
890
|
+
type: 'd',
|
|
891
|
+
compiler: length,
|
|
892
|
+
values: ['none:n', 'auto:a']
|
|
893
|
+
},
|
|
894
|
+
'contain-intrinsic-size': {
|
|
895
|
+
alias: '',
|
|
896
|
+
type: 'd',
|
|
897
|
+
compiler: length,
|
|
898
|
+
values: ['none:n', 'auto:a']
|
|
899
|
+
}, 'contain-intrinsic-width': {
|
|
900
|
+
alias: '',
|
|
901
|
+
type: 'd',
|
|
902
|
+
compiler: length,
|
|
903
|
+
values: ['none:n', 'auto:a']
|
|
904
|
+
},
|
|
905
|
+
'container': {
|
|
906
|
+
alias: '',
|
|
907
|
+
type: 'd',
|
|
908
|
+
compiler: (value) => value.replace(/^-/, '').replace(/-by-/, ' / '),
|
|
909
|
+
values: ['none']
|
|
910
|
+
},
|
|
911
|
+
'container-name': {
|
|
912
|
+
alias: '',
|
|
913
|
+
type: 'd',
|
|
914
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ' '),
|
|
915
|
+
values: []
|
|
916
|
+
},
|
|
917
|
+
'container-type': {
|
|
918
|
+
alias: '',
|
|
919
|
+
type: 's',
|
|
920
|
+
// compiler:'',
|
|
921
|
+
values: ['normal', 'size', 'inline-size']
|
|
922
|
+
},
|
|
923
|
+
'content': {
|
|
924
|
+
alias: 'cont',
|
|
925
|
+
type: 'd',
|
|
926
|
+
compiler: content,
|
|
927
|
+
values: ['"":empty', 'normal:nl', 'none:n', 'open-quote:oq', 'close-quote:cq', 'no-open-quote:noq', 'no-close-quote:ncq'],
|
|
928
|
+
},
|
|
929
|
+
'content-visibility': {
|
|
930
|
+
alias: 'cv',
|
|
931
|
+
type: 's',
|
|
932
|
+
values: ['visible:v', 'hidden:h', 'auto:a']
|
|
933
|
+
},
|
|
934
|
+
'counter-increment': {
|
|
935
|
+
alias: 'ci',
|
|
936
|
+
type: 'd',
|
|
937
|
+
compiler: (value) => value.replace(/^-/, '').replace(/[-]([-]?[\d])[-]?/g, ' $1 '),
|
|
938
|
+
values: ['none:n'],
|
|
939
|
+
},
|
|
940
|
+
'counter-reset': {
|
|
941
|
+
alias: '',
|
|
942
|
+
type: 'd',
|
|
943
|
+
compiler: (value) => value.replace(/^-/, '').replace(/[-]([-]?[\d])[-]?/g, ' $1 '),
|
|
944
|
+
values: ['none:n'],
|
|
945
|
+
},
|
|
946
|
+
'counter-set': {
|
|
947
|
+
alias: '',
|
|
948
|
+
type: 'd',
|
|
949
|
+
compiler: (value) => value.replace(/^-/, '').replace(/[-]([-]?[\d])[-]?/g, ' $1 '),
|
|
950
|
+
values: ['none:n'],
|
|
951
|
+
},
|
|
952
|
+
'cursor': {
|
|
953
|
+
alias: 'cur',
|
|
954
|
+
type: '',
|
|
955
|
+
// compiler:'',
|
|
956
|
+
values: ['grab:gr:g', 'alias:al', 'all-scroll:as', 'auto:a', 'cell:c', 'col-resize:cr', 'context-menu:cm', 'copy:cp',
|
|
957
|
+
'crosshair:ch', 'default:d', 'e-resize:er', 'ew-resize:ewr', 'help:h', 'move:mo', 'n-resize:nr', 'ne-resize:ner', 'nesw-resize:neswr',
|
|
958
|
+
'no-drop:nd', 'none:n', 'not-allowed:na', 'ns-resize:nsr', 'nw-resize:nwr', 'nwse-resize:nwser',
|
|
959
|
+
'pointer:p', 'progress:pr', 'row-resize:rr', 's-resize:sr', 'se-resize:ser', 'sw-resize:swr',
|
|
960
|
+
'text:t', 'vertical-text:vt', 'w-resize:wr', 'wait:w', 'zoom-in:zi', 'zoom-out:zo'],
|
|
961
|
+
},
|
|
962
|
+
// ----------D--------
|
|
963
|
+
'direction': {
|
|
964
|
+
alias: 'dir', // --
|
|
965
|
+
type: 's',
|
|
966
|
+
// compiler:'',
|
|
967
|
+
values: ['ltr:l', 'rtl:r'],
|
|
968
|
+
},
|
|
969
|
+
'display': {
|
|
970
|
+
alias: 'd',
|
|
971
|
+
type: 's',
|
|
972
|
+
// compiler:'',
|
|
973
|
+
values: ['-webkit-box:webkit-box:wb:box', 'block:b', 'compact:cp', 'container:c', 'contents:cont', 'flex:f', 'grid:g', 'inline:i', 'inline-block:ib',
|
|
974
|
+
'inline-flex:if', 'inline-grid:ig', 'inline-table:it',
|
|
975
|
+
'list-item:li', 'none:n', 'run-in:ri', 'table:t', 'table-caption:tcap', 'table-cell:tcl', 'table-column:tc',
|
|
976
|
+
'table-column-group:tcg', 'table-footer-group:tfg', 'table-header-group:thg', 'table-row:tr', 'table-row-group:trg'],
|
|
977
|
+
},
|
|
978
|
+
// ----------E--------
|
|
979
|
+
'empty-cells': {
|
|
980
|
+
alias: 'ec',
|
|
981
|
+
type: 's',
|
|
982
|
+
// compiler:'',
|
|
983
|
+
values: ['hide:h', 'show:s'],
|
|
984
|
+
},
|
|
985
|
+
// ----------F--------
|
|
986
|
+
'field-sizing': {
|
|
987
|
+
alias: '',
|
|
988
|
+
type: 's',
|
|
989
|
+
// compiler:'',
|
|
990
|
+
values: ['content:c', 'fixed:f'],
|
|
991
|
+
},
|
|
992
|
+
'filter': {
|
|
993
|
+
alias: 'fl',
|
|
994
|
+
type: 'd',
|
|
995
|
+
compiler: filter,
|
|
996
|
+
values: ['none:n', 'invert():invert:i', 'sepia():sepia:se', 'grayscale():grayscale:gs'],
|
|
997
|
+
},
|
|
998
|
+
'flex': {
|
|
999
|
+
alias: 'fx',
|
|
1000
|
+
type: 'd',
|
|
1001
|
+
compiler: length,
|
|
1002
|
+
values: ['none:n'],
|
|
1003
|
+
},
|
|
1004
|
+
'flex-basis': {
|
|
1005
|
+
alias: 'fb',
|
|
1006
|
+
type: 'd',
|
|
1007
|
+
compiler: length,
|
|
1008
|
+
values: [''],
|
|
1009
|
+
},
|
|
1010
|
+
'flex-direction': {
|
|
1011
|
+
alias: 'fd',
|
|
1012
|
+
type: 's',
|
|
1013
|
+
// compiler:'',
|
|
1014
|
+
values: ['row:r', 'row-reverse:rr', 'column:c', 'column-reverse:cr'],
|
|
1015
|
+
},
|
|
1016
|
+
'flex-flow': {
|
|
1017
|
+
alias: 'ffl',
|
|
1018
|
+
type: 'd',
|
|
1019
|
+
compiler: (value) => value.replace(/[-](w|n)/, " $1"),
|
|
1020
|
+
values: [''],
|
|
1021
|
+
},
|
|
1022
|
+
'flex-grow': {
|
|
1023
|
+
alias: 'fg',
|
|
1024
|
+
type: 'd',
|
|
1025
|
+
compiler: length,
|
|
1026
|
+
values: [''],
|
|
1027
|
+
},
|
|
1028
|
+
'flex-shrink': {
|
|
1029
|
+
alias: 'fsk',
|
|
1030
|
+
type: 'd',
|
|
1031
|
+
compiler: length,
|
|
1032
|
+
values: [''],
|
|
1033
|
+
},
|
|
1034
|
+
'flex-wrap': {
|
|
1035
|
+
alias: 'fwp',
|
|
1036
|
+
type: 's',
|
|
1037
|
+
// compiler:'',
|
|
1038
|
+
values: ['nowrap:nw:n', 'wrap:w', 'wrap-reverse:wr'],
|
|
1039
|
+
},
|
|
1040
|
+
'float': {
|
|
1041
|
+
alias: 'f', // ----
|
|
1042
|
+
type: 's',
|
|
1043
|
+
// compiler:'',
|
|
1044
|
+
values: ['none:n', 'left:l', 'right:r'],
|
|
1045
|
+
},
|
|
1046
|
+
'font': {
|
|
1047
|
+
alias: '',
|
|
1048
|
+
type: 'd',
|
|
1049
|
+
compiler: length,
|
|
1050
|
+
values: [''],
|
|
1051
|
+
},
|
|
1052
|
+
'font-family': {
|
|
1053
|
+
alias: 'ff',
|
|
1054
|
+
type: 'd',
|
|
1055
|
+
compiler: font,
|
|
1056
|
+
values: [''],
|
|
1057
|
+
},
|
|
1058
|
+
'font-feature-settings': {
|
|
1059
|
+
alias: 'ffs',
|
|
1060
|
+
type: '',
|
|
1061
|
+
compiler: (value) => value.replace(/--/g, ', ').replace(/(\w{4})/g, '"$1" ').replace('-', ' '),
|
|
1062
|
+
values: [''],
|
|
1063
|
+
},
|
|
1064
|
+
'font-kerning': {
|
|
1065
|
+
alias: 'fk',
|
|
1066
|
+
type: 's',
|
|
1067
|
+
// compiler:'',
|
|
1068
|
+
values: ['auto:a', 'normal:nl:n2', 'none:n'],
|
|
1069
|
+
},
|
|
1070
|
+
'font-language-override': {
|
|
1071
|
+
alias: 'flo',
|
|
1072
|
+
type: 'd',
|
|
1073
|
+
compiler: (value) => value.replace(/(\w+)/, '"$1"'),
|
|
1074
|
+
values: ['normal|:nl'],
|
|
1075
|
+
},
|
|
1076
|
+
'font-size': {
|
|
1077
|
+
alias: 'fs',
|
|
1078
|
+
type: 'd',
|
|
1079
|
+
compiler: length,
|
|
1080
|
+
values: ['medium', 'xx-small', 'x-small', 'small', 'large', 'x-large', 'xx-large', 'smaller', 'larger'],
|
|
1081
|
+
// values:['medium:m:md','xx-small:xxs','x-small:xs','small:sm:s','large:lg:l','x-large:xl','xx-large:xxl','smaller:smr','larger:lgr'],
|
|
1082
|
+
},
|
|
1083
|
+
'font-size-adjust': {
|
|
1084
|
+
alias: 'fsa',
|
|
1085
|
+
type: 'd',
|
|
1086
|
+
compiler: length,
|
|
1087
|
+
values: ['none:n'],
|
|
1088
|
+
},
|
|
1089
|
+
'font-stretch': {
|
|
1090
|
+
alias: '', // --
|
|
1091
|
+
type: 's',
|
|
1092
|
+
// compiler:'',
|
|
1093
|
+
values: ['ultra-condensed:uc', 'extra-condensed:ec', 'condensed:c', 'semi-condensed:sc', 'normal:nl', 'semi-expanded:se', 'expanded:e', 'extra-expanded:ee', 'ultra-expanded:ue'],
|
|
1094
|
+
},
|
|
1095
|
+
'font-style': {
|
|
1096
|
+
alias: 'fst', // --
|
|
1097
|
+
type: 's',
|
|
1098
|
+
// compiler:'',
|
|
1099
|
+
values: ['normal:nl', 'italic:i', 'oblique:o'],
|
|
1100
|
+
},
|
|
1101
|
+
'font-synthesis': {
|
|
1102
|
+
alias: '',
|
|
1103
|
+
type: 'd',
|
|
1104
|
+
compiler: length,
|
|
1105
|
+
values: ['none:n', 'weight:w',],
|
|
1106
|
+
},
|
|
1107
|
+
'font-variant': {
|
|
1108
|
+
alias: 'fv',
|
|
1109
|
+
type: 's',
|
|
1110
|
+
// compiler:'',
|
|
1111
|
+
values: ['normal:nl', 'small-caps:sc'],
|
|
1112
|
+
},
|
|
1113
|
+
'font-variant-alternates': {
|
|
1114
|
+
alias: 'fva',
|
|
1115
|
+
type: '',
|
|
1116
|
+
// compiler:'',
|
|
1117
|
+
values: [''],
|
|
1118
|
+
},
|
|
1119
|
+
'font-variant-caps': {
|
|
1120
|
+
alias: 'fvc',
|
|
1121
|
+
type: 's',
|
|
1122
|
+
// compiler:'',
|
|
1123
|
+
values: ['normal:nl', 'small-caps:sc', 'all-small-caps:asc', 'petite-caps:pc', 'all-petite-caps:apc', 'unicase:u', 'titling-caps:tc'],
|
|
1124
|
+
},
|
|
1125
|
+
'font-variant-east-asian': {
|
|
1126
|
+
alias: 'fvea',
|
|
1127
|
+
type: '',
|
|
1128
|
+
// compiler:'',
|
|
1129
|
+
values: [''],
|
|
1130
|
+
},
|
|
1131
|
+
'font-variant-ligatures': {
|
|
1132
|
+
alias: 'fvl',
|
|
1133
|
+
type: 's',
|
|
1134
|
+
// compiler:'',
|
|
1135
|
+
values: ['normal:nl', 'none:n', 'common-ligatures:cl', 'no-common-ligatures:ncl', 'discretionary-ligatures:dl', 'no-discretionary-ligatures:ndl', 'historical-ligatures:hl', 'no-historical-ligatures:nhl', 'contextual:c', 'no-contextual:nc'],
|
|
1136
|
+
},
|
|
1137
|
+
'font-variant-numeric': {
|
|
1138
|
+
alias: 'fvn',
|
|
1139
|
+
type: 's',
|
|
1140
|
+
// compiler:'',
|
|
1141
|
+
values: ['normal:nl', 'ordinal:o', 'slashed-zero:sz', 'lining-nums:ln', 'oldstyle-nums:on', 'proportional-nums:pn', 'tabular-nums:tn', 'diagonal-fractions:df', 'stacked-fractions:sf'],
|
|
1142
|
+
},
|
|
1143
|
+
'font-variant-position': {
|
|
1144
|
+
alias: 'fvp',
|
|
1145
|
+
type: 's',
|
|
1146
|
+
// compiler:'',
|
|
1147
|
+
values: ['normal:nl', 'sub:s', 'super:su:s2'],
|
|
1148
|
+
},
|
|
1149
|
+
'font-variation-settings': {
|
|
1150
|
+
alias: 'fvs',
|
|
1151
|
+
type: 'd',
|
|
1152
|
+
compiler: (value, custom) => {
|
|
1153
|
+
return value.replace(/^-/, '')
|
|
1154
|
+
.replace(/[_]/g, ' ')
|
|
1155
|
+
.replace(/([a-zA-Z]+)/g, '"$1"')
|
|
1156
|
+
.replace(/[-]/g, ',');
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
'font-variant-emoji': {
|
|
1160
|
+
alias: 'fve',
|
|
1161
|
+
type: 's',
|
|
1162
|
+
// compiler:'',
|
|
1163
|
+
values: ['normal:nl', 'text:t', 'emoji:e', 'unicode:u'],
|
|
1164
|
+
},
|
|
1165
|
+
'font-weight': {
|
|
1166
|
+
alias: 'fw',
|
|
1167
|
+
type: 'd',
|
|
1168
|
+
compiler: (value, custom) => value.replace(/^-/, ''),
|
|
1169
|
+
values: ['bolder:b2:blr', 'lighter:l:ltr', '100:1:thin', '200:2:extra-light', '300:3:light', '400:4:normal:nl:regular', '500:5:medium', '600:6:semi-bold', '700:7:bold', '800:8:extra-bold', '900:9:black'],
|
|
1170
|
+
},
|
|
1171
|
+
'forced-color-adjust': {
|
|
1172
|
+
alias: 'fca',
|
|
1173
|
+
type: 's',
|
|
1174
|
+
// compiler:'',
|
|
1175
|
+
values: ['auto:a', 'none:n', 'preserve-parent-color:ppc'],
|
|
1176
|
+
},
|
|
1177
|
+
// ----------G--------
|
|
1178
|
+
'gap': {
|
|
1179
|
+
alias: 'g',
|
|
1180
|
+
type: 'd',
|
|
1181
|
+
compiler: length,
|
|
1182
|
+
values: ['none:n', ...remUnits],
|
|
1183
|
+
},
|
|
1184
|
+
'grid': {
|
|
1185
|
+
alias: 'gd',
|
|
1186
|
+
type: 'd',
|
|
1187
|
+
compiler: (value) => repeat(value).replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g, " $1($2 , $3 ) ")
|
|
1188
|
+
.replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
|
|
1189
|
+
.replace(/-([\daamf])/g, ' $1')
|
|
1190
|
+
.replace(/([\d])d([\d])/g, '$1.$2').replace(/auto-flow-dense/g, 'auto-flow dense').replace(/auto flow/, 'auto-flow')
|
|
1191
|
+
.replace(/([\d])p([\s])/g, "$1% ").replace(/p$/, "%").replace(/-by[-\s]/g, ' / '),
|
|
1192
|
+
values: ['none:n'],
|
|
1193
|
+
},
|
|
1194
|
+
'grid-area': {
|
|
1195
|
+
alias: 'ga',
|
|
1196
|
+
type: 'd',
|
|
1197
|
+
// compiler:lenByNumPer,
|
|
1198
|
+
compiler: gridBy,
|
|
1199
|
+
values: [''],
|
|
1200
|
+
},
|
|
1201
|
+
'grid-auto-columns': {
|
|
1202
|
+
alias: 'gac',
|
|
1203
|
+
type: 'd',
|
|
1204
|
+
compiler: (value) => {
|
|
1205
|
+
// if(/^fit-content-/.test(value:string)){
|
|
1206
|
+
// return value.replace(/(fit-content)[-]([\w]+)/,"$1( $2 )") // fit-content-50px
|
|
1207
|
+
// .replace(/([\d])d([\d])/,'$1.$2').replace(/([\d])p([\s])/,"$1% ");
|
|
1208
|
+
// }
|
|
1209
|
+
// if(/^minmax-/.text(value:string)){
|
|
1210
|
+
return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g, " $1($2 , $3 ) ")
|
|
1211
|
+
.replace(/(\d)\.(\d)/g, '$1d$2').replace(/%/g, 'p')
|
|
1212
|
+
.replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
|
|
1213
|
+
.replace(/-([\d|a|a|f|m])/g, ' $1')
|
|
1214
|
+
.replace(/([\d])d([\d])/g, '$1.$2')
|
|
1215
|
+
.replace(/([\d])p([\s])/g, "$1% ").replace(/p$/, "%");
|
|
1216
|
+
// }
|
|
1217
|
+
},
|
|
1218
|
+
values: ['max-content:xc', 'min-content:mc', 'auto:a'],
|
|
1219
|
+
},
|
|
1220
|
+
'grid-auto-flow': {
|
|
1221
|
+
alias: 'gaf',
|
|
1222
|
+
type: 's',
|
|
1223
|
+
// compiler:'',
|
|
1224
|
+
values: ['row:r', 'column:c', 'dense:d', 'row dense:row-dense:rd', 'column dense:column-dense:cd'],
|
|
1225
|
+
},
|
|
1226
|
+
'grid-auto-rows': {
|
|
1227
|
+
alias: 'gar',
|
|
1228
|
+
type: 'd',
|
|
1229
|
+
compiler: (value) => {
|
|
1230
|
+
// if(/^fit-content-/.test(value:string)){
|
|
1231
|
+
// return value.replace(/(fit-content)[-]([\w]+)/,"$1( $2 )") // fit-content-50px
|
|
1232
|
+
// .replace(/([\d])d([\d])/,'$1.$2').replace(/([\d])p([\s])/,"$1% ");
|
|
1233
|
+
// }
|
|
1234
|
+
// if(/^minmax-/.text(value:string)){
|
|
1235
|
+
return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g, " $1($2 , $3 ) ")
|
|
1236
|
+
.replace(/(\d)\.(\d)/g, '$1d$2').replace(/%/g, 'p').replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
|
|
1237
|
+
.replace(/-([\d|a|a|f|m])/g, ' $1')
|
|
1238
|
+
.replace(/([\d])d([\d])/g, '$1.$2')
|
|
1239
|
+
.replace(/([\d])p([\s])/g, "$1% ").replace(/p$/, "%");
|
|
1240
|
+
// }
|
|
1241
|
+
},
|
|
1242
|
+
values: ['max-content:xc', 'min-content:mc', 'auto:a'],
|
|
1243
|
+
},
|
|
1244
|
+
'grid-column': {
|
|
1245
|
+
alias: 'gc',
|
|
1246
|
+
type: 'd',
|
|
1247
|
+
// compiler:lenByNumPer,
|
|
1248
|
+
compiler: gridBy,
|
|
1249
|
+
values: [],
|
|
1250
|
+
},
|
|
1251
|
+
'grid-column-end': {
|
|
1252
|
+
alias: 'gce',
|
|
1253
|
+
type: 'd',
|
|
1254
|
+
// compiler:lenByNumPer,
|
|
1255
|
+
compiler: gridBy,
|
|
1256
|
+
values: ['auto'],
|
|
1257
|
+
},
|
|
1258
|
+
'grid-column-gap': {
|
|
1259
|
+
alias: 'gcg',
|
|
1260
|
+
type: 'd',
|
|
1261
|
+
compiler: length,
|
|
1262
|
+
values: ['none:n', ...remUnits],
|
|
1263
|
+
},
|
|
1264
|
+
'grid-column-start': {
|
|
1265
|
+
alias: 'gcs',
|
|
1266
|
+
type: 'd',
|
|
1267
|
+
// compiler:length,
|
|
1268
|
+
compiler: gridBy,
|
|
1269
|
+
values: ['auto:a'],
|
|
1270
|
+
},
|
|
1271
|
+
'grid-gap': {
|
|
1272
|
+
alias: 'gg',
|
|
1273
|
+
type: 'd',
|
|
1274
|
+
compiler: lenByNumPer,
|
|
1275
|
+
values: ['none:n', ...remUnits],
|
|
1276
|
+
},
|
|
1277
|
+
'grid-row': {
|
|
1278
|
+
alias: 'gr',
|
|
1279
|
+
type: 'd',
|
|
1280
|
+
// compiler:lenByNumPer,
|
|
1281
|
+
compiler: gridBy,
|
|
1282
|
+
values: ['auto:a', 'auto / auto:auto-auto'],
|
|
1283
|
+
},
|
|
1284
|
+
'grid-row-end': {
|
|
1285
|
+
alias: 'gre',
|
|
1286
|
+
type: 'd',
|
|
1287
|
+
// compiler:lenByNumPer,
|
|
1288
|
+
compiler: gridBy,
|
|
1289
|
+
values: ['auto:a'],
|
|
1290
|
+
},
|
|
1291
|
+
'grid-row-gap': {
|
|
1292
|
+
alias: 'grg',
|
|
1293
|
+
type: 'd',
|
|
1294
|
+
compiler: length,
|
|
1295
|
+
values: ['none:n', ...remUnits],
|
|
1296
|
+
},
|
|
1297
|
+
'grid-row-start': {
|
|
1298
|
+
alias: 'grs',
|
|
1299
|
+
type: 'd',
|
|
1300
|
+
// compiler:lenByNumPer,
|
|
1301
|
+
compiler: gridBy,
|
|
1302
|
+
values: ['auto:a'],
|
|
1303
|
+
},
|
|
1304
|
+
'grid-template': {
|
|
1305
|
+
alias: 'gt',
|
|
1306
|
+
type: 'd',
|
|
1307
|
+
compiler: repeat,
|
|
1308
|
+
values: ['none:n'],
|
|
1309
|
+
},
|
|
1310
|
+
'grid-template-areas': {
|
|
1311
|
+
alias: 'gta',
|
|
1312
|
+
type: 'd',
|
|
1313
|
+
compiler: (value) => value.replace(/[-]?([\w]+)/g, "'$1' ").replace(/_/g, " ").replace(/dot/g, '.'),
|
|
1314
|
+
values: ['none'],
|
|
1315
|
+
},
|
|
1316
|
+
'grid-template-columns': {
|
|
1317
|
+
alias: 'gtc',
|
|
1318
|
+
type: 'd',
|
|
1319
|
+
compiler: repeat,
|
|
1320
|
+
// compiler:(value:string)=>{
|
|
1321
|
+
// return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g," $1($2 , $3 ) ")
|
|
1322
|
+
// .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
|
|
1323
|
+
// .replace(/-([\daamf])/g,' $1')
|
|
1324
|
+
// .replace(/([\d])d([\d])/g,'$1.$2')
|
|
1325
|
+
// .replace(/([\d])p([\s])/g,"$1% ").replace(/p$/,"%");
|
|
1326
|
+
// },
|
|
1327
|
+
values: ['subgrid:sg:s', 'masonry:m', 'none:n'],
|
|
1328
|
+
},
|
|
1329
|
+
'grid-template-rows': {
|
|
1330
|
+
alias: 'gtr',
|
|
1331
|
+
type: 'd',
|
|
1332
|
+
compiler: repeat,
|
|
1333
|
+
// compiler:(value:string)=>{
|
|
1334
|
+
// return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g," $1($2 , $3 ) ")
|
|
1335
|
+
// .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
|
|
1336
|
+
// .replace(/-([\d|a|a|f|m])/g,' $1')
|
|
1337
|
+
// .replace(/([\d])d([\d])/g,'$1.$2')
|
|
1338
|
+
// .replace(/([\d])p([\s])/g,"$1% ").replace(/p$/,"%");
|
|
1339
|
+
// },
|
|
1340
|
+
values: ['subgrid:sg:s', 'masonry:m', 'none:n'],
|
|
1341
|
+
},
|
|
1342
|
+
// ----------H--------
|
|
1343
|
+
'hanging-punctuation': {
|
|
1344
|
+
alias: 'hp',
|
|
1345
|
+
type: 'd',
|
|
1346
|
+
compiler: (value) => value.replace(/-e/g, 'E').replace(/-/g, ' ').replace(/E/g, '-e'),
|
|
1347
|
+
values: ['none:n', 'first:f', 'last:l', 'force-end:fe', 'allow-end:ae'],
|
|
1348
|
+
},
|
|
1349
|
+
'height': {
|
|
1350
|
+
alias: 'h', // --
|
|
1351
|
+
type: 'd',
|
|
1352
|
+
compiler: length,
|
|
1353
|
+
values: ['auto:a', 'max-content:xc', 'min-content:mc', ...remUnits],
|
|
1354
|
+
},
|
|
1355
|
+
'hyphens': {
|
|
1356
|
+
alias: '',
|
|
1357
|
+
type: 's',
|
|
1358
|
+
// compiler:'',
|
|
1359
|
+
values: ['auto:a', 'none:n', 'manual:m'],
|
|
1360
|
+
},
|
|
1361
|
+
// ----------I--------
|
|
1362
|
+
'image-orientation': {
|
|
1363
|
+
alias: 'io',
|
|
1364
|
+
type: 's',
|
|
1365
|
+
// compiler:'',
|
|
1366
|
+
values: ['none:n', 'from-image:fi'],
|
|
1367
|
+
},
|
|
1368
|
+
'image-rendering': {
|
|
1369
|
+
alias: 'ir',
|
|
1370
|
+
type: 's',
|
|
1371
|
+
// compiler:'',
|
|
1372
|
+
values: ['auto:a', 'crisp-edges:ce', 'pixelated:p'],
|
|
1373
|
+
},
|
|
1374
|
+
'initial-letter': {
|
|
1375
|
+
'alias': 'il',
|
|
1376
|
+
compiler: (value) => value.replace(/^-/, '').replace(/(\d)d(\d)/, '$1.$2'),
|
|
1377
|
+
values: ['normal:nl']
|
|
1378
|
+
},
|
|
1379
|
+
'inline-size': {
|
|
1380
|
+
alias: 'is',
|
|
1381
|
+
type: 'd',
|
|
1382
|
+
compiler: length,
|
|
1383
|
+
values: ['auto:a', 'max-content:xc', 'min-content:mc'],
|
|
1384
|
+
},
|
|
1385
|
+
'inset': {
|
|
1386
|
+
alias: 'i',
|
|
1387
|
+
type: 'd',
|
|
1388
|
+
compiler: length,
|
|
1389
|
+
values: ['auto:a'],
|
|
1390
|
+
},
|
|
1391
|
+
'inset-area': {
|
|
1392
|
+
alias: 'ia',
|
|
1393
|
+
values: ['none:n', 'top left:top-left:tl', 'start end:start-end:se', 'block-start center:block-start-center:bsc',
|
|
1394
|
+
'inline-start block-end:inline-start-block-end:isbe', 'x-start y-end:x-start-y-end:xsye',
|
|
1395
|
+
'center y-self-end:center-y-self-end:cye', 'top span-left:top-span-left:tsl',
|
|
1396
|
+
'center span-start:center-span-start:css', 'inline-start span-block-end:inline-start-span-block-end:issbe',
|
|
1397
|
+
'y-start span-x-end:y-start-span-x-end:yssxe', 'top span-all:top-span-all:tsa', 'block-end span-all:block-end-span-all:besa',
|
|
1398
|
+
'x-self-start span-all:x-self-start-span-all:xsssa', 'top:t', 'inline-start:is', 'center:c', 'span-all:sa', 'end:e'
|
|
1399
|
+
],
|
|
1400
|
+
},
|
|
1401
|
+
'inset-block': {
|
|
1402
|
+
alias: 'ib',
|
|
1403
|
+
type: 'd',
|
|
1404
|
+
compiler: length,
|
|
1405
|
+
values: ['auto:a'],
|
|
1406
|
+
},
|
|
1407
|
+
'inset-block-end': {
|
|
1408
|
+
alias: 'ibe',
|
|
1409
|
+
type: 'd',
|
|
1410
|
+
compiler: length,
|
|
1411
|
+
values: ['auto:a'],
|
|
1412
|
+
},
|
|
1413
|
+
'inset-block-start': {
|
|
1414
|
+
alias: 'ibs',
|
|
1415
|
+
type: 'd',
|
|
1416
|
+
compiler: length,
|
|
1417
|
+
values: ['auto:a'],
|
|
1418
|
+
},
|
|
1419
|
+
'inset-inline': {
|
|
1420
|
+
alias: 'ii',
|
|
1421
|
+
type: 'd',
|
|
1422
|
+
compiler: length,
|
|
1423
|
+
values: ['auto:a'],
|
|
1424
|
+
},
|
|
1425
|
+
'inset-inline-end': {
|
|
1426
|
+
alias: 'iie',
|
|
1427
|
+
type: 'd',
|
|
1428
|
+
compiler: length,
|
|
1429
|
+
values: ['auto:a'],
|
|
1430
|
+
},
|
|
1431
|
+
'inset-inline-start': {
|
|
1432
|
+
alias: 'iis',
|
|
1433
|
+
type: 'd',
|
|
1434
|
+
compiler: length,
|
|
1435
|
+
values: ['auto:a'],
|
|
1436
|
+
},
|
|
1437
|
+
'isolation': {
|
|
1438
|
+
alias: '',
|
|
1439
|
+
type: 's',
|
|
1440
|
+
// compiler:'',
|
|
1441
|
+
values: ['auto:a', 'isolate:i'],
|
|
1442
|
+
},
|
|
1443
|
+
// ----------J--------
|
|
1444
|
+
'justify-content': {
|
|
1445
|
+
alias: 'jc',
|
|
1446
|
+
type: 's',
|
|
1447
|
+
// compiler:'',
|
|
1448
|
+
values: ['left:l', 'right:r', 'stretch:st', 'normal:n', 'start:s', 'end:e', 'flex-start:fs', 'flex-end:fe', 'center:c', 'space-around:sa', 'space-evenly:se', 'space-between:sb'],
|
|
1449
|
+
},
|
|
1450
|
+
'justify-items': {
|
|
1451
|
+
alias: 'ji',
|
|
1452
|
+
type: 's',
|
|
1453
|
+
// compiler:'',
|
|
1454
|
+
values: ['legacy:le:l2', 'stretch:st:s2', 'start:s', 'left:l', 'center:c', 'end:e', 'right:r', 'flex-start:fs', 'flex-end:fe',
|
|
1455
|
+
'normal:nl', 'baseline:b', 'first baseline:first-baseline:fb', 'last baseline:last-baseline:lb', 'self-start:ss', 'self-end:se',
|
|
1456
|
+
'unsafe:us', 'safe center:safe-center:sc', 'unsafe center:unsafe-center:uc', 'legacy right:legacy-right:lr',
|
|
1457
|
+
'legacy left:legacy-left:ll', 'legacy center:legacy-center:lc'],
|
|
1458
|
+
},
|
|
1459
|
+
'justify-self': {
|
|
1460
|
+
alias: 'js',
|
|
1461
|
+
type: 's',
|
|
1462
|
+
// compiler:'',
|
|
1463
|
+
values: ['auto:a', 'normal:nl', 'stretch:st:s2', 'center:c', 'start:s', 'end:e', 'flex-start:fs', 'flex-end:fe',
|
|
1464
|
+
'self-start:ss', 'self-end:se', 'left:l', 'right:r', 'baseline:b', 'first baseline:first-baseline:fb', 'last baseline:last-baseline:lb',
|
|
1465
|
+
'safe center:safe-center:sc', 'unsafe center:unsafe-center:uc'],
|
|
1466
|
+
},
|
|
1467
|
+
// ----------K--------
|
|
1468
|
+
// ----------L--------
|
|
1469
|
+
'left': {
|
|
1470
|
+
alias: 'l',
|
|
1471
|
+
type: 'd',
|
|
1472
|
+
compiler: length,
|
|
1473
|
+
values: ['auto:a'],
|
|
1474
|
+
},
|
|
1475
|
+
'letter-spacing': {
|
|
1476
|
+
alias: 'les',
|
|
1477
|
+
type: 'd',
|
|
1478
|
+
compiler: length,
|
|
1479
|
+
values: ['normal:nl'],
|
|
1480
|
+
},
|
|
1481
|
+
'lighting-color': {
|
|
1482
|
+
alias: 'lc',
|
|
1483
|
+
type: 'd',
|
|
1484
|
+
compiler: color,
|
|
1485
|
+
// values:[],
|
|
1486
|
+
},
|
|
1487
|
+
'line-break': {
|
|
1488
|
+
alias: 'lb',
|
|
1489
|
+
type: 's',
|
|
1490
|
+
// compiler:'',
|
|
1491
|
+
values: ['auto:a', 'loose:l', 'normal:nl', 'strict:s', 'anywhere:aw:a2'],
|
|
1492
|
+
},
|
|
1493
|
+
'line-clamp': {
|
|
1494
|
+
compiler: (value) => value.replace(/^-/, ''),
|
|
1495
|
+
values: ['none:n']
|
|
1496
|
+
},
|
|
1497
|
+
'line-height': {
|
|
1498
|
+
alias: 'lh',
|
|
1499
|
+
type: 'd',
|
|
1500
|
+
compiler: length,
|
|
1501
|
+
values: ['normal:nl'],
|
|
1502
|
+
},
|
|
1503
|
+
'list-style': {
|
|
1504
|
+
alias: 'ls', // --
|
|
1505
|
+
type: '',
|
|
1506
|
+
// compiler:'',
|
|
1507
|
+
values: ['armenian:a:ar', 'circle:c', 'cjk-ideographic:ci', 'hebrew:h', 'hiragana:hira:h2', 'hiragana-iroha:hi', 'katakana:k',
|
|
1508
|
+
'katakana-iroha:ki', 'decimal:d', 'decimal-leading-zero:dlz', 'disc:di:d2', 'georgian:g', 'lower-alpha:la',
|
|
1509
|
+
'lower-greek:lg', 'lower-latin:ll', 'lower-roman:lr', 'none:n', 'square:s', 'upper-alpha:ua', 'upper-latin:ul'],
|
|
1510
|
+
},
|
|
1511
|
+
'list-style-image': {
|
|
1512
|
+
alias: 'lsi',
|
|
1513
|
+
type: 'd',
|
|
1514
|
+
compiler: (value, custom) => {
|
|
1515
|
+
if (value.match(/^[-]?url/)) {
|
|
1516
|
+
return url(value);
|
|
1517
|
+
}
|
|
1518
|
+
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
|
|
1519
|
+
return gradient(value, custom);
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
return null;
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
values: ['none:n'],
|
|
1526
|
+
},
|
|
1527
|
+
'list-style-position': {
|
|
1528
|
+
alias: 'lsp',
|
|
1529
|
+
type: 's',
|
|
1530
|
+
// compiler:'',
|
|
1531
|
+
values: ['inside:i', 'outside:o'],
|
|
1532
|
+
},
|
|
1533
|
+
'list-style-type': {
|
|
1534
|
+
alias: 'lst',
|
|
1535
|
+
type: 's',
|
|
1536
|
+
// compiler:'',
|
|
1537
|
+
values: ['armenian:a:ar', 'circle:c', 'cjk-ideographic:ci', 'hebrew:h', 'hiragana:hira:h2', 'hiragana-iroha:hi', 'katakana:k',
|
|
1538
|
+
'katakana-iroha:ki', 'decimal:d', 'decimal-leading-zero:dlz', 'disc:di:d2', 'georgian:g', 'lower-alpha:la',
|
|
1539
|
+
'lower-greek:lg', 'lower-latin:ll', 'lower-roman:lr', 'none:n', 'square:s', 'upper-alpha:ua', 'upper-latin:ul',],
|
|
1540
|
+
},
|
|
1541
|
+
// ----------M--------
|
|
1542
|
+
'margin': {
|
|
1543
|
+
alias: 'm',
|
|
1544
|
+
type: 'd',
|
|
1545
|
+
compiler: length,
|
|
1546
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1547
|
+
},
|
|
1548
|
+
'margin-block': {
|
|
1549
|
+
alias: '',
|
|
1550
|
+
type: 'd',
|
|
1551
|
+
compiler: length,
|
|
1552
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1553
|
+
},
|
|
1554
|
+
'margin-block-end': {
|
|
1555
|
+
alias: 'mbe',
|
|
1556
|
+
type: 'd',
|
|
1557
|
+
compiler: length,
|
|
1558
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1559
|
+
},
|
|
1560
|
+
'margin-block-start': {
|
|
1561
|
+
alias: 'mbs',
|
|
1562
|
+
type: 'd',
|
|
1563
|
+
compiler: length,
|
|
1564
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1565
|
+
},
|
|
1566
|
+
'margin-bottom': {
|
|
1567
|
+
alias: 'mb',
|
|
1568
|
+
type: 'd',
|
|
1569
|
+
compiler: length,
|
|
1570
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1571
|
+
},
|
|
1572
|
+
'margin-inline': {
|
|
1573
|
+
alias: 'mi',
|
|
1574
|
+
type: 'd',
|
|
1575
|
+
compiler: length,
|
|
1576
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1577
|
+
},
|
|
1578
|
+
'margin-inline-end': {
|
|
1579
|
+
alias: 'mie',
|
|
1580
|
+
type: 'd',
|
|
1581
|
+
compiler: length,
|
|
1582
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1583
|
+
},
|
|
1584
|
+
'margin-inline-start': {
|
|
1585
|
+
alias: 'mis',
|
|
1586
|
+
type: 'd',
|
|
1587
|
+
compiler: length,
|
|
1588
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1589
|
+
},
|
|
1590
|
+
'margin-left': {
|
|
1591
|
+
alias: 'ml',
|
|
1592
|
+
type: 'd',
|
|
1593
|
+
compiler: length,
|
|
1594
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1595
|
+
},
|
|
1596
|
+
'margin-right': {
|
|
1597
|
+
alias: 'mr',
|
|
1598
|
+
type: 'd',
|
|
1599
|
+
compiler: length,
|
|
1600
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1601
|
+
},
|
|
1602
|
+
'margin-top': {
|
|
1603
|
+
alias: 'mt',
|
|
1604
|
+
type: 'd',
|
|
1605
|
+
compiler: length,
|
|
1606
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1607
|
+
},
|
|
1608
|
+
'mask': {
|
|
1609
|
+
alias: '', // --
|
|
1610
|
+
type: '',
|
|
1611
|
+
// compiler:'',
|
|
1612
|
+
values: ['none:n'],
|
|
1613
|
+
},
|
|
1614
|
+
'mask-border': {},
|
|
1615
|
+
'mask-clip': {
|
|
1616
|
+
alias: '',
|
|
1617
|
+
type: '',
|
|
1618
|
+
// compiler:'',
|
|
1619
|
+
values: ['no-clip:nc', 'content-box:cb', 'padding-box:pb', 'border-box:bb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
|
|
1620
|
+
},
|
|
1621
|
+
'mask-composite': {
|
|
1622
|
+
alias: '',
|
|
1623
|
+
type: 's',
|
|
1624
|
+
// compiler:'',
|
|
1625
|
+
values: ['add:a', 'subtract:s', 'intersect:i', 'exclude:e'],
|
|
1626
|
+
},
|
|
1627
|
+
'mask-image': {
|
|
1628
|
+
alias: '',
|
|
1629
|
+
type: 'd',
|
|
1630
|
+
compiler: (value, custom) => {
|
|
1631
|
+
if (value.match(/^[-]?url/)) {
|
|
1632
|
+
return url(value);
|
|
1633
|
+
}
|
|
1634
|
+
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rcg|rlg))([\w_-]+)/)) {
|
|
1635
|
+
return gradient(value, custom);
|
|
1636
|
+
}
|
|
1637
|
+
else {
|
|
1638
|
+
return null;
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
values: [''],
|
|
1642
|
+
},
|
|
1643
|
+
'mask-mode': {
|
|
1644
|
+
alias: '',
|
|
1645
|
+
type: 's',
|
|
1646
|
+
// compiler:'',
|
|
1647
|
+
values: ['alpha:a', 'luminance:l', 'match-source:ms'],
|
|
1648
|
+
},
|
|
1649
|
+
'mask-origin': {
|
|
1650
|
+
alias: '',
|
|
1651
|
+
type: 's',
|
|
1652
|
+
// compiler:'',
|
|
1653
|
+
values: ['content-box:cb', 'padding-box:pb', 'border-box:bb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
|
|
1654
|
+
},
|
|
1655
|
+
'mask-position': {
|
|
1656
|
+
alias: '',
|
|
1657
|
+
type: 'd',
|
|
1658
|
+
compiler: length,
|
|
1659
|
+
values: ['top:t', 'right:r', 'bottom:b', 'left:l', 'center:c'],
|
|
1660
|
+
},
|
|
1661
|
+
'mask-repeat': {
|
|
1662
|
+
alias: '',
|
|
1663
|
+
type: 's',
|
|
1664
|
+
// compiler:'',
|
|
1665
|
+
values: ['repeat-x:rx', 'repeat-y:ry', 'repeat:r', 'space:s', 'round:ro:r2', 'no-repeat:nr'],
|
|
1666
|
+
},
|
|
1667
|
+
'mask-size': {
|
|
1668
|
+
alias: '',
|
|
1669
|
+
type: 'd',
|
|
1670
|
+
compiler: length,
|
|
1671
|
+
values: ['cover:c', 'contain:con:c2', 'auto:a'],
|
|
1672
|
+
},
|
|
1673
|
+
'mask-type': {
|
|
1674
|
+
alias: '',
|
|
1675
|
+
type: 'd',
|
|
1676
|
+
compiler: length,
|
|
1677
|
+
values: ['alpha:a', 'luminance:l'],
|
|
1678
|
+
},
|
|
1679
|
+
'math-depth': {
|
|
1680
|
+
alias: '',
|
|
1681
|
+
type: 'd',
|
|
1682
|
+
compiler: (value) => value.replace(/^-/, '').replace(/add-([-]?[\d]+)/, 'add($1)'),
|
|
1683
|
+
values: ['auto-add:aa'],
|
|
1684
|
+
},
|
|
1685
|
+
'math-shift': {
|
|
1686
|
+
alias: '',
|
|
1687
|
+
type: 's',
|
|
1688
|
+
// compiler:'',
|
|
1689
|
+
values: ['normal:nl', 'compact:c'],
|
|
1690
|
+
},
|
|
1691
|
+
'math-style': {
|
|
1692
|
+
alias: '',
|
|
1693
|
+
type: 'd',
|
|
1694
|
+
// compiler:'',
|
|
1695
|
+
values: ['normal:nl', 'compact:c'],
|
|
1696
|
+
},
|
|
1697
|
+
'max-height': {
|
|
1698
|
+
alias: 'xh',
|
|
1699
|
+
type: 'd',
|
|
1700
|
+
compiler: length,
|
|
1701
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
1702
|
+
},
|
|
1703
|
+
'max-width': {
|
|
1704
|
+
alias: 'xw',
|
|
1705
|
+
type: 'd',
|
|
1706
|
+
compiler: length,
|
|
1707
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
1708
|
+
},
|
|
1709
|
+
'max-block-size': {
|
|
1710
|
+
alias: 'xbs',
|
|
1711
|
+
type: 'd',
|
|
1712
|
+
compiler: length,
|
|
1713
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n'],
|
|
1714
|
+
},
|
|
1715
|
+
'max-inline-size': {
|
|
1716
|
+
alias: 'xis',
|
|
1717
|
+
type: 'd',
|
|
1718
|
+
compiler: length,
|
|
1719
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n'],
|
|
1720
|
+
},
|
|
1721
|
+
'min-block-size': {
|
|
1722
|
+
alias: '',
|
|
1723
|
+
type: 'd',
|
|
1724
|
+
compiler: length,
|
|
1725
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n'],
|
|
1726
|
+
},
|
|
1727
|
+
'min-inline-size': {
|
|
1728
|
+
alias: '',
|
|
1729
|
+
type: 'd',
|
|
1730
|
+
compiler: length,
|
|
1731
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n'],
|
|
1732
|
+
},
|
|
1733
|
+
'min-height': {
|
|
1734
|
+
alias: 'mh',
|
|
1735
|
+
type: 'd',
|
|
1736
|
+
compiler: length,
|
|
1737
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
1738
|
+
},
|
|
1739
|
+
'min-width': {
|
|
1740
|
+
alias: 'mw',
|
|
1741
|
+
type: 'd',
|
|
1742
|
+
compiler: length,
|
|
1743
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
1744
|
+
},
|
|
1745
|
+
'mix-blend-mode': {
|
|
1746
|
+
alias: 'mbm',
|
|
1747
|
+
type: 's',
|
|
1748
|
+
// compiler:'',
|
|
1749
|
+
values: mode,
|
|
1750
|
+
},
|
|
1751
|
+
// ----------O--------
|
|
1752
|
+
'object-fit': {
|
|
1753
|
+
alias: '',
|
|
1754
|
+
type: 's',
|
|
1755
|
+
// compiler:'',
|
|
1756
|
+
values: ['contain:c', 'cover:co:c2', 'fill:f', 'none:n', 'scale-down:sd'],
|
|
1757
|
+
},
|
|
1758
|
+
'object-position': {
|
|
1759
|
+
alias: '',
|
|
1760
|
+
type: 'd',
|
|
1761
|
+
compiler: length,
|
|
1762
|
+
values: ['top:t', 'left:l', 'center:c', 'bottom:b', 'right:r'],
|
|
1763
|
+
},
|
|
1764
|
+
// 'offset':{// --
|
|
1765
|
+
// alias:'',
|
|
1766
|
+
// type:'',
|
|
1767
|
+
// // compiler:'',
|
|
1768
|
+
// values:[''],
|
|
1769
|
+
// },
|
|
1770
|
+
'offset-anchor': {
|
|
1771
|
+
alias: 'ofa',
|
|
1772
|
+
type: 'd',
|
|
1773
|
+
compiler: length,
|
|
1774
|
+
values: ['top:t', 'left:l', 'center:c', 'bottom:b', 'right:r', 'auto:a'],
|
|
1775
|
+
},
|
|
1776
|
+
'offset-distance': {
|
|
1777
|
+
alias: 'ofd',
|
|
1778
|
+
type: 's',
|
|
1779
|
+
compiler: length,
|
|
1780
|
+
values: [''],
|
|
1781
|
+
},
|
|
1782
|
+
'offset-path': {
|
|
1783
|
+
alias: 'ofp',
|
|
1784
|
+
type: 'd',
|
|
1785
|
+
compiler: clipPath,
|
|
1786
|
+
values: [''],
|
|
1787
|
+
},
|
|
1788
|
+
'offset-position': {
|
|
1789
|
+
alias: 'ofpos',
|
|
1790
|
+
type: 'd',
|
|
1791
|
+
compiler: length,
|
|
1792
|
+
values: [''],
|
|
1793
|
+
},
|
|
1794
|
+
'offset-rotate': {
|
|
1795
|
+
alias: 'ofr',
|
|
1796
|
+
type: 'd',
|
|
1797
|
+
compiler: length,
|
|
1798
|
+
values: ['auto:a', 'reverse:r'],
|
|
1799
|
+
},
|
|
1800
|
+
'opacity': {
|
|
1801
|
+
alias: 'o',
|
|
1802
|
+
type: 'd',
|
|
1803
|
+
compiler: length,
|
|
1804
|
+
values: [''],
|
|
1805
|
+
},
|
|
1806
|
+
'order': {
|
|
1807
|
+
alias: 'ord',
|
|
1808
|
+
type: 's',
|
|
1809
|
+
compiler: length,
|
|
1810
|
+
values: [''],
|
|
1811
|
+
},
|
|
1812
|
+
'orphans': {
|
|
1813
|
+
alias: 'orp',
|
|
1814
|
+
type: 's',
|
|
1815
|
+
compiler: length,
|
|
1816
|
+
values: [''],
|
|
1817
|
+
},
|
|
1818
|
+
'outline': {
|
|
1819
|
+
alias: 'ol',
|
|
1820
|
+
type: 's',
|
|
1821
|
+
compiler: border,
|
|
1822
|
+
values: ['none:n', 'auto:a'],
|
|
1823
|
+
},
|
|
1824
|
+
'outline-color': {
|
|
1825
|
+
alias: 'olc',
|
|
1826
|
+
type: 'd',
|
|
1827
|
+
compiler: color,
|
|
1828
|
+
values: [''],
|
|
1829
|
+
},
|
|
1830
|
+
'outline-offset': {
|
|
1831
|
+
alias: 'olo',
|
|
1832
|
+
type: 'd',
|
|
1833
|
+
compiler: length,
|
|
1834
|
+
values: [''],
|
|
1835
|
+
},
|
|
1836
|
+
'outline-style': {
|
|
1837
|
+
alias: 'ols',
|
|
1838
|
+
type: 's',
|
|
1839
|
+
// compiler:'',
|
|
1840
|
+
values: style,
|
|
1841
|
+
},
|
|
1842
|
+
'outline-width': {
|
|
1843
|
+
alias: 'olw',
|
|
1844
|
+
type: 'd',
|
|
1845
|
+
compiler: lenByNumPer,
|
|
1846
|
+
values: [''],
|
|
1847
|
+
},
|
|
1848
|
+
'overflow': {
|
|
1849
|
+
alias: 'of',
|
|
1850
|
+
type: 's',
|
|
1851
|
+
// compiler:'',
|
|
1852
|
+
values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a',],
|
|
1853
|
+
},
|
|
1854
|
+
'overflow-clip-margin': {
|
|
1855
|
+
'alias': 'ocm',
|
|
1856
|
+
compiler: length,
|
|
1857
|
+
values: ['content-box:cb', 'padding-box:pb', 'border-box:bb']
|
|
1858
|
+
},
|
|
1859
|
+
'overflow-anchor': {
|
|
1860
|
+
alias: 'oa',
|
|
1861
|
+
type: 's',
|
|
1862
|
+
// compiler:'',
|
|
1863
|
+
values: ['auto:a', 'none:n'],
|
|
1864
|
+
},
|
|
1865
|
+
'overflow-wrap': {
|
|
1866
|
+
alias: 'ow',
|
|
1867
|
+
type: 's',
|
|
1868
|
+
// compiler:'',
|
|
1869
|
+
values: ['normal:nl', 'break-word:bw', 'anywhere:a:aw'],
|
|
1870
|
+
},
|
|
1871
|
+
'overflow-x': {
|
|
1872
|
+
alias: 'ox',
|
|
1873
|
+
type: 's',
|
|
1874
|
+
// compiler:'',
|
|
1875
|
+
values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a',],
|
|
1876
|
+
},
|
|
1877
|
+
'overflow-y': {
|
|
1878
|
+
alias: 'oy',
|
|
1879
|
+
type: 's',
|
|
1880
|
+
// compiler:'',
|
|
1881
|
+
values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a',],
|
|
1882
|
+
},
|
|
1883
|
+
'overlay': {
|
|
1884
|
+
alias: 'olay',
|
|
1885
|
+
values: ['auto:a', 'none:n']
|
|
1886
|
+
},
|
|
1887
|
+
'overscroll-behavior': {
|
|
1888
|
+
alias: 'ob',
|
|
1889
|
+
type: 's',
|
|
1890
|
+
// compiler:'',
|
|
1891
|
+
values: ['auto:a', 'contain:c', 'none:n'],
|
|
1892
|
+
},
|
|
1893
|
+
'overscroll-behavior-block': {
|
|
1894
|
+
alias: 'obb',
|
|
1895
|
+
type: 's',
|
|
1896
|
+
// compiler:'',
|
|
1897
|
+
values: ['auto:a', 'contain:c', 'none:n'],
|
|
1898
|
+
},
|
|
1899
|
+
'overscroll-behavior-inline': {
|
|
1900
|
+
alias: 'obi',
|
|
1901
|
+
type: 's',
|
|
1902
|
+
// compiler:'',
|
|
1903
|
+
values: ['auto:a', 'contain:c', 'none:n'],
|
|
1904
|
+
},
|
|
1905
|
+
'overscroll-behavior-x': {
|
|
1906
|
+
alias: 'obx',
|
|
1907
|
+
type: 's',
|
|
1908
|
+
// compiler:'',
|
|
1909
|
+
values: ['auto:a', 'contain:c', 'none:n'],
|
|
1910
|
+
},
|
|
1911
|
+
'overscroll-behavior-y': {
|
|
1912
|
+
alias: 'oby',
|
|
1913
|
+
type: 's',
|
|
1914
|
+
// compiler:'',
|
|
1915
|
+
values: ['auto:a', 'contain:c', 'none:n'],
|
|
1916
|
+
},
|
|
1917
|
+
// ----------P--------
|
|
1918
|
+
'padding': {
|
|
1919
|
+
alias: 'p',
|
|
1920
|
+
type: 'd',
|
|
1921
|
+
compiler: length,
|
|
1922
|
+
values: [...remUnits],
|
|
1923
|
+
},
|
|
1924
|
+
'padding-block': {
|
|
1925
|
+
alias: '',
|
|
1926
|
+
type: 's',
|
|
1927
|
+
compiler: length,
|
|
1928
|
+
values: [...remUnits],
|
|
1929
|
+
},
|
|
1930
|
+
'padding-block-end': {
|
|
1931
|
+
alias: 'pbe',
|
|
1932
|
+
type: 'd',
|
|
1933
|
+
compiler: length,
|
|
1934
|
+
values: [...remUnits],
|
|
1935
|
+
},
|
|
1936
|
+
'padding-block-start': {
|
|
1937
|
+
alias: 'pbs',
|
|
1938
|
+
type: 'd',
|
|
1939
|
+
compiler: length,
|
|
1940
|
+
values: [...remUnits],
|
|
1941
|
+
},
|
|
1942
|
+
'padding-bottom': {
|
|
1943
|
+
alias: 'pb',
|
|
1944
|
+
type: 'd',
|
|
1945
|
+
compiler: length,
|
|
1946
|
+
values: [...remUnits],
|
|
1947
|
+
},
|
|
1948
|
+
'padding-inline': {
|
|
1949
|
+
alias: 'pi',
|
|
1950
|
+
type: 'd',
|
|
1951
|
+
compiler: length,
|
|
1952
|
+
values: ['', ...remUnits],
|
|
1953
|
+
},
|
|
1954
|
+
'padding-inline-end': {
|
|
1955
|
+
alias: 'pie',
|
|
1956
|
+
type: 'd',
|
|
1957
|
+
compiler: length,
|
|
1958
|
+
values: [...remUnits],
|
|
1959
|
+
},
|
|
1960
|
+
'padding-inline-start': {
|
|
1961
|
+
alias: 'pis',
|
|
1962
|
+
type: 'd',
|
|
1963
|
+
compiler: length,
|
|
1964
|
+
values: [...remUnits],
|
|
1965
|
+
},
|
|
1966
|
+
'padding-left': {
|
|
1967
|
+
alias: 'pl',
|
|
1968
|
+
type: 'd',
|
|
1969
|
+
compiler: length,
|
|
1970
|
+
values: [...remUnits],
|
|
1971
|
+
},
|
|
1972
|
+
'padding-right': {
|
|
1973
|
+
alias: 'pr',
|
|
1974
|
+
type: 'd',
|
|
1975
|
+
compiler: length,
|
|
1976
|
+
values: [...remUnits],
|
|
1977
|
+
},
|
|
1978
|
+
'padding-top': {
|
|
1979
|
+
alias: 'pt',
|
|
1980
|
+
type: 'd',
|
|
1981
|
+
compiler: length,
|
|
1982
|
+
values: [...remUnits],
|
|
1983
|
+
},
|
|
1984
|
+
'page': {
|
|
1985
|
+
alias: 'pg',
|
|
1986
|
+
type: 'd',
|
|
1987
|
+
compiler: (value) => value.replace(/^-/, ''),
|
|
1988
|
+
values: ['auto:a']
|
|
1989
|
+
},
|
|
1990
|
+
'page-break-after': {
|
|
1991
|
+
alias: 'pba',
|
|
1992
|
+
type: 's',
|
|
1993
|
+
// compiler:'',
|
|
1994
|
+
values: ['auto:a', 'always:al:a3', 'avoid:av:a2', 'left:l', 'right:r', 'recto:rc:r2', 'verso:v'],
|
|
1995
|
+
},
|
|
1996
|
+
'page-break-before': {
|
|
1997
|
+
alias: 'pbb',
|
|
1998
|
+
type: 's',
|
|
1999
|
+
// compiler:'',
|
|
2000
|
+
values: ['auto:a', 'always:al:a3', 'avoid:av:a2', 'left:l', 'right:r', 'recto:rc:r2', 'verso:v'],
|
|
2001
|
+
},
|
|
2002
|
+
'page-break-inside': {
|
|
2003
|
+
alias: 'pbi',
|
|
2004
|
+
type: 's',
|
|
2005
|
+
// compiler:'',
|
|
2006
|
+
values: ['auto:a', 'avoid:av:a2'],
|
|
2007
|
+
},
|
|
2008
|
+
'paint-order': {
|
|
2009
|
+
alias: 'po',
|
|
2010
|
+
type: 's',
|
|
2011
|
+
// compiler:'',
|
|
2012
|
+
values: ['fill:f', 'stroke:s', 'markers:m', 'normal:nl'],
|
|
2013
|
+
},
|
|
2014
|
+
'perspective': {
|
|
2015
|
+
alias: 'pers',
|
|
2016
|
+
type: 'd',
|
|
2017
|
+
compiler: length,
|
|
2018
|
+
values: ['none:n'],
|
|
2019
|
+
},
|
|
2020
|
+
'perspective-origin': {
|
|
2021
|
+
alias: 'perso',
|
|
2022
|
+
type: 's',
|
|
2023
|
+
compiler: length,
|
|
2024
|
+
values: [''],
|
|
2025
|
+
},
|
|
2026
|
+
'place-content': {
|
|
2027
|
+
alias: 'pc',
|
|
2028
|
+
type: 'd',
|
|
2029
|
+
compiler: (value) => {
|
|
2030
|
+
const m = /[-]?(start|end|flex-start|flex-end|center|left|right|space-between|baseline|first|last|space-evenly|space-around|stretch|safe|unsafe)/g;
|
|
2031
|
+
return value.replace(m, " $1");
|
|
2032
|
+
},
|
|
2033
|
+
values: [''],
|
|
2034
|
+
},
|
|
2035
|
+
'place-items': {
|
|
2036
|
+
alias: 'pli',
|
|
2037
|
+
type: 'd',
|
|
2038
|
+
compiler: (value) => {
|
|
2039
|
+
const m = /[-]?(start|end|flex-start|flex-end|self-start|self-end|normal|center|baseline|first|last|auto|right|left|legacy|stretch|safe|unsafe)/g;
|
|
2040
|
+
return value.replace(m, " $1");
|
|
2041
|
+
},
|
|
2042
|
+
values: [''],
|
|
2043
|
+
},
|
|
2044
|
+
'place-self': {
|
|
2045
|
+
alias: 'ps',
|
|
2046
|
+
type: 'd',
|
|
2047
|
+
compiler: (value) => {
|
|
2048
|
+
const m = /[-]?(start|end|flex-start|flex-end|self-start|self-end|normal|center|baseline|first|last|auto|right|left|legacy|stretch|safe|unsafe)/g;
|
|
2049
|
+
return value.replace(m, " $1");
|
|
2050
|
+
},
|
|
2051
|
+
values: [''],
|
|
2052
|
+
},
|
|
2053
|
+
'pointer-events': {
|
|
2054
|
+
alias: 'pe',
|
|
2055
|
+
type: 's',
|
|
2056
|
+
// compiler:'',
|
|
2057
|
+
values: ['auto:a', 'none:n', 'visiblePainted:vp', 'visibleFill:vf', 'visibleStroke:vs', 'visible:v', 'painted:p', 'fill:f', 'stroke:s', 'all']
|
|
2058
|
+
},
|
|
2059
|
+
'position': {
|
|
2060
|
+
alias: 'pos',
|
|
2061
|
+
type: 's',
|
|
2062
|
+
// compiler:'',
|
|
2063
|
+
values: ['static:st:s2', 'absolute:a', 'fixed:f', 'relative:r', 'sticky:s'],
|
|
2064
|
+
},
|
|
2065
|
+
'position-anchor': {
|
|
2066
|
+
alias: 'pa',
|
|
2067
|
+
type: 'd',
|
|
2068
|
+
compiler: (value) => "-" + value,
|
|
2069
|
+
values: ['none:n']
|
|
2070
|
+
},
|
|
2071
|
+
'position-area': {
|
|
2072
|
+
// alias:'pa',
|
|
2073
|
+
values: ['none:n', 'top left:top-left:tl', 'start end:start-end:se', 'block-start center:block-start-center:bsc',
|
|
2074
|
+
'inline-start block-end:inline-start-block-end:isbe', 'x-start y-end:x-start-y-end:xsye',
|
|
2075
|
+
'center y-self-end:center-y-self-end:cye', 'top span-left:top-span-left:tsl',
|
|
2076
|
+
'center span-start:center-span-start:css', 'inline-start span-block-end:inline-start-span-block-end:issbe',
|
|
2077
|
+
'y-start span-x-end:y-start-span-x-end:yssxe', 'top span-all:top-span-all:tsa', 'block-end span-all:block-end-span-all:besa',
|
|
2078
|
+
'x-self-start span-all:x-self-start-span-all:xsssa', 'top:t', 'inline-start:is', 'center:c', 'span-all:sa', 'end:e'
|
|
2079
|
+
],
|
|
2080
|
+
},
|
|
2081
|
+
'print-color-adjust': {
|
|
2082
|
+
alias: 'pca',
|
|
2083
|
+
type: 's',
|
|
2084
|
+
// compiler:'',
|
|
2085
|
+
values: ['economy:e', 'exact:ex'],
|
|
2086
|
+
},
|
|
2087
|
+
// ----------Q--------
|
|
2088
|
+
'quotes': {
|
|
2089
|
+
alias: 'q',
|
|
2090
|
+
type: '',
|
|
2091
|
+
// compiler:'',
|
|
2092
|
+
values: ['none:n', 'auto:a'],
|
|
2093
|
+
},
|
|
2094
|
+
// ----------R--------
|
|
2095
|
+
'resize': {
|
|
2096
|
+
alias: 'rs',
|
|
2097
|
+
type: 's',
|
|
2098
|
+
// compiler:'',
|
|
2099
|
+
values: ['none:n', 'both:b', 'horizontal:h', 'vertical:v'],
|
|
2100
|
+
},
|
|
2101
|
+
'right': {
|
|
2102
|
+
alias: 'r',
|
|
2103
|
+
type: 'd',
|
|
2104
|
+
compiler: length,
|
|
2105
|
+
values: ['auto:a'],
|
|
2106
|
+
},
|
|
2107
|
+
'rotate': {
|
|
2108
|
+
alias: 'rt',
|
|
2109
|
+
type: 'd',
|
|
2110
|
+
compiler: lenByNumPer,
|
|
2111
|
+
values: ['none:n'],
|
|
2112
|
+
},
|
|
2113
|
+
'row-gap': {
|
|
2114
|
+
alias: 'rg',
|
|
2115
|
+
type: 'd',
|
|
2116
|
+
compiler: length,
|
|
2117
|
+
values: ['none:n', ...remUnits],
|
|
2118
|
+
},
|
|
2119
|
+
// ----------S--------
|
|
2120
|
+
'scale': {
|
|
2121
|
+
alias: 's',
|
|
2122
|
+
type: 'd',
|
|
2123
|
+
compiler: length,
|
|
2124
|
+
values: ['none:n'],
|
|
2125
|
+
},
|
|
2126
|
+
'scroll-behavior': {
|
|
2127
|
+
alias: 'sb',
|
|
2128
|
+
type: 's',
|
|
2129
|
+
// compiler:'',
|
|
2130
|
+
values: ['auto:a', 'smooth:s'],
|
|
2131
|
+
},
|
|
2132
|
+
'scroll-margin': {
|
|
2133
|
+
alias: 'sm',
|
|
2134
|
+
type: 'd',
|
|
2135
|
+
compiler: length,
|
|
2136
|
+
values: [''],
|
|
2137
|
+
},
|
|
2138
|
+
'scroll-margin-block': {
|
|
2139
|
+
alias: '',
|
|
2140
|
+
type: 'd',
|
|
2141
|
+
compiler: length,
|
|
2142
|
+
values: [''],
|
|
2143
|
+
},
|
|
2144
|
+
'scroll-margin-block-end': {
|
|
2145
|
+
alias: 'smbe',
|
|
2146
|
+
type: 'd',
|
|
2147
|
+
compiler: length,
|
|
2148
|
+
values: [''],
|
|
2149
|
+
},
|
|
2150
|
+
'scroll-margin-block-start': {
|
|
2151
|
+
alias: 'smbs',
|
|
2152
|
+
type: 'd',
|
|
2153
|
+
compiler: length,
|
|
2154
|
+
values: [''],
|
|
2155
|
+
},
|
|
2156
|
+
'scroll-margin-bottom': {
|
|
2157
|
+
alias: 'smb',
|
|
2158
|
+
type: 'd',
|
|
2159
|
+
compiler: length,
|
|
2160
|
+
values: [''],
|
|
2161
|
+
},
|
|
2162
|
+
'scroll-margin-inline': {
|
|
2163
|
+
alias: 'smi',
|
|
2164
|
+
type: 'd',
|
|
2165
|
+
compiler: length,
|
|
2166
|
+
values: [''],
|
|
2167
|
+
},
|
|
2168
|
+
'scroll-margin-inline-end': {
|
|
2169
|
+
alias: 'smie',
|
|
2170
|
+
type: 'd',
|
|
2171
|
+
compiler: length,
|
|
2172
|
+
values: [''],
|
|
2173
|
+
},
|
|
2174
|
+
'scroll-margin-inline-start': {
|
|
2175
|
+
alias: 'smis',
|
|
2176
|
+
type: 'd',
|
|
2177
|
+
compiler: length,
|
|
2178
|
+
values: [''],
|
|
2179
|
+
},
|
|
2180
|
+
'scroll-margin-left': {
|
|
2181
|
+
alias: 'sml',
|
|
2182
|
+
type: 'd',
|
|
2183
|
+
compiler: length,
|
|
2184
|
+
values: [''],
|
|
2185
|
+
},
|
|
2186
|
+
'scroll-margin-right': {
|
|
2187
|
+
alias: 'smr',
|
|
2188
|
+
type: 'd',
|
|
2189
|
+
compiler: length,
|
|
2190
|
+
values: [''],
|
|
2191
|
+
},
|
|
2192
|
+
'scroll-margin-top': {
|
|
2193
|
+
alias: 'smt',
|
|
2194
|
+
type: 'd',
|
|
2195
|
+
compiler: length,
|
|
2196
|
+
values: [''],
|
|
2197
|
+
},
|
|
2198
|
+
'scroll-padding': {
|
|
2199
|
+
alias: 'sp',
|
|
2200
|
+
type: 'd',
|
|
2201
|
+
compiler: length,
|
|
2202
|
+
values: ['none:n', ...remUnits],
|
|
2203
|
+
},
|
|
2204
|
+
'scroll-padding-block': {
|
|
2205
|
+
alias: '',
|
|
2206
|
+
type: 'd',
|
|
2207
|
+
compiler: length,
|
|
2208
|
+
values: ['none:n', ...remUnits],
|
|
2209
|
+
},
|
|
2210
|
+
'scroll-padding-block-end': {
|
|
2211
|
+
alias: 'spbe',
|
|
2212
|
+
type: 'd',
|
|
2213
|
+
compiler: length,
|
|
2214
|
+
values: ['none:n', ...remUnits],
|
|
2215
|
+
},
|
|
2216
|
+
'scroll-padding-block-start': {
|
|
2217
|
+
alias: 'spbs',
|
|
2218
|
+
type: 'd',
|
|
2219
|
+
compiler: length,
|
|
2220
|
+
values: ['none:n', ...remUnits],
|
|
2221
|
+
},
|
|
2222
|
+
'scroll-padding-bottom': {
|
|
2223
|
+
alias: 'spb',
|
|
2224
|
+
type: 'd',
|
|
2225
|
+
compiler: length,
|
|
2226
|
+
values: ['none:n', ...remUnits],
|
|
2227
|
+
},
|
|
2228
|
+
'scroll-padding-inline': {
|
|
2229
|
+
alias: 'spi',
|
|
2230
|
+
type: 'd',
|
|
2231
|
+
compiler: length,
|
|
2232
|
+
values: ['none:n', ...remUnits],
|
|
2233
|
+
},
|
|
2234
|
+
'scroll-padding-inline-end': {
|
|
2235
|
+
alias: 'spie',
|
|
2236
|
+
type: 'd',
|
|
2237
|
+
compiler: length,
|
|
2238
|
+
values: ['none:n', ...remUnits],
|
|
2239
|
+
},
|
|
2240
|
+
'scroll-padding-inline-start': {
|
|
2241
|
+
alias: 'spis',
|
|
2242
|
+
type: 'd',
|
|
2243
|
+
compiler: length,
|
|
2244
|
+
values: ['none:n', ...remUnits],
|
|
2245
|
+
},
|
|
2246
|
+
'scroll-padding-left': {
|
|
2247
|
+
alias: 'spl',
|
|
2248
|
+
type: 'd',
|
|
2249
|
+
compiler: length,
|
|
2250
|
+
values: ['none:n', ...remUnits],
|
|
2251
|
+
},
|
|
2252
|
+
'scroll-padding-right': {
|
|
2253
|
+
alias: 'spr',
|
|
2254
|
+
type: 'd',
|
|
2255
|
+
compiler: length,
|
|
2256
|
+
values: ['none:n', ...remUnits],
|
|
2257
|
+
},
|
|
2258
|
+
'scroll-padding-top': {
|
|
2259
|
+
alias: 'spt',
|
|
2260
|
+
type: 'd',
|
|
2261
|
+
compiler: length,
|
|
2262
|
+
values: ['none:n', ...remUnits],
|
|
2263
|
+
},
|
|
2264
|
+
'scroll-snap-align': {
|
|
2265
|
+
alias: 'ssa',
|
|
2266
|
+
type: 's',
|
|
2267
|
+
// compiler:'',
|
|
2268
|
+
values: ['start:s', 'end:e', 'center:c'],
|
|
2269
|
+
},
|
|
2270
|
+
'scroll-snap-stop': {
|
|
2271
|
+
alias: 'sss',
|
|
2272
|
+
type: 's',
|
|
2273
|
+
// compiler:'',
|
|
2274
|
+
values: ['always:al:a', 'normal:nl'],
|
|
2275
|
+
},
|
|
2276
|
+
'scroll-snap-type': {
|
|
2277
|
+
alias: 'sst',
|
|
2278
|
+
type: 's',
|
|
2279
|
+
// compiler:'',
|
|
2280
|
+
values: ['x', 'y', 'block:b', 'inline:i', 'both:bo:b2',
|
|
2281
|
+
'x mandatory:x-mandatory:xm', 'y proximity:y-proximity:yp', 'both mandatory:both-mandatory:bm',
|
|
2282
|
+
'y mandatory:y-mandatory:ym', 'x proximity:x-proximity:xp', 'both proximity:both-proximity:bp',
|
|
2283
|
+
],
|
|
2284
|
+
},
|
|
2285
|
+
'scroll-timeline': {
|
|
2286
|
+
'alias': 'st',
|
|
2287
|
+
compiler: (value) => ('-' + value).replace(/-(block|inline|y|x)/, " $1").replace(/^--none[\s]/, 'none '),
|
|
2288
|
+
values: ['none:n']
|
|
2289
|
+
},
|
|
2290
|
+
'scroll-timeline-axis': {
|
|
2291
|
+
'alias': 'sta',
|
|
2292
|
+
// compiler:'',
|
|
2293
|
+
values: ['none:n', 'block:b', 'inline:i', 'y', 'x']
|
|
2294
|
+
},
|
|
2295
|
+
'scroll-timeline-name': {
|
|
2296
|
+
'alias': 'stn',
|
|
2297
|
+
compiler: (value) => '-' + value,
|
|
2298
|
+
values: ['none:n']
|
|
2299
|
+
},
|
|
2300
|
+
'scrollbar-color': {
|
|
2301
|
+
alias: 'sbc',
|
|
2302
|
+
type: 'd',
|
|
2303
|
+
compiler: color,
|
|
2304
|
+
values: [''],
|
|
2305
|
+
},
|
|
2306
|
+
'scrollbar-gutter': {
|
|
2307
|
+
alias: 'sbg',
|
|
2308
|
+
type: 'd',
|
|
2309
|
+
// compiler:'',
|
|
2310
|
+
values: ['auto:a', 'stable:s', 'stable both-edges:stable-both-edges:sbe'],
|
|
2311
|
+
},
|
|
2312
|
+
'scrollbar-width': {
|
|
2313
|
+
alias: 'sbw',
|
|
2314
|
+
type: 'd',
|
|
2315
|
+
compiler: length,
|
|
2316
|
+
values: ['none:n'],
|
|
2317
|
+
},
|
|
2318
|
+
'shape-image-threshold': {
|
|
2319
|
+
alias: 'sit',
|
|
2320
|
+
type: 'd',
|
|
2321
|
+
compiler: length,
|
|
2322
|
+
values: []
|
|
2323
|
+
}, // 0.7;'
|
|
2324
|
+
'shape-margin': {
|
|
2325
|
+
alias: '',
|
|
2326
|
+
type: 'd',
|
|
2327
|
+
compiler: length,
|
|
2328
|
+
values: [],
|
|
2329
|
+
},
|
|
2330
|
+
'shape-outside': {
|
|
2331
|
+
alias: '',
|
|
2332
|
+
type: 'd',
|
|
2333
|
+
compiler: clipPath,
|
|
2334
|
+
values: ['none:n', 'margin-box:mb', 'border-box:bb', 'padding-box:pb', 'content-box:cb'],
|
|
2335
|
+
},
|
|
2336
|
+
'stop-color': {
|
|
2337
|
+
alias: '',
|
|
2338
|
+
type: 'd',
|
|
2339
|
+
compiler: color,
|
|
2340
|
+
values: [''],
|
|
2341
|
+
},
|
|
2342
|
+
'stop-opacity': {
|
|
2343
|
+
alias: '',
|
|
2344
|
+
type: 'd',
|
|
2345
|
+
compiler: lenByNumPer,
|
|
2346
|
+
values: [''],
|
|
2347
|
+
},
|
|
2348
|
+
// ----------T--------
|
|
2349
|
+
'tab-size': {
|
|
2350
|
+
alias: 'ts',
|
|
2351
|
+
type: 'd',
|
|
2352
|
+
compiler: length,
|
|
2353
|
+
values: [''],
|
|
2354
|
+
},
|
|
2355
|
+
'table-layout': {
|
|
2356
|
+
alias: 'tl',
|
|
2357
|
+
type: 's',
|
|
2358
|
+
// compiler:'',
|
|
2359
|
+
values: ['auto:a', 'fixed:f'],
|
|
2360
|
+
},
|
|
2361
|
+
'text-align': {
|
|
2362
|
+
alias: 'ta',
|
|
2363
|
+
type: 's',
|
|
2364
|
+
// compiler:'',
|
|
2365
|
+
values: ['auto:a', 'left:l', 'right:r', 'center:c', 'justify:j', 'end:e', 'start:s'],
|
|
2366
|
+
},
|
|
2367
|
+
'text-align-last': {
|
|
2368
|
+
alias: 'tal',
|
|
2369
|
+
type: 's',
|
|
2370
|
+
// compiler:'',
|
|
2371
|
+
values: ['auto:a', 'left:l', 'right:r', 'center:c', 'justify:j', 'end:e', 'start:s'],
|
|
2372
|
+
},
|
|
2373
|
+
'text-anchor': {
|
|
2374
|
+
alias: '',
|
|
2375
|
+
type: 's',
|
|
2376
|
+
// compiler:'',
|
|
2377
|
+
values: ['start:s', 'middle:m', 'end:e'],
|
|
2378
|
+
},
|
|
2379
|
+
'text-combine-upright': {
|
|
2380
|
+
alias: '',
|
|
2381
|
+
type: '',
|
|
2382
|
+
// compiler:'',
|
|
2383
|
+
values: [''],
|
|
2384
|
+
},
|
|
2385
|
+
'text-decoration': {
|
|
2386
|
+
alias: 'td',
|
|
2387
|
+
type: 's',
|
|
2388
|
+
// compiler:'',
|
|
2389
|
+
values: [...style, 'underline:u', 'overline:ol:o2', 'line-through:lt'],
|
|
2390
|
+
},
|
|
2391
|
+
'text-decoration-color': {
|
|
2392
|
+
alias: 'tdc',
|
|
2393
|
+
type: 'd',
|
|
2394
|
+
compiler: color,
|
|
2395
|
+
values: [''],
|
|
2396
|
+
},
|
|
2397
|
+
'text-decoration-line': {
|
|
2398
|
+
alias: 'tdln',
|
|
2399
|
+
type: '',
|
|
2400
|
+
// compiler:'',
|
|
2401
|
+
values: ['none:n', 'underline:u', 'overline:o', 'line-through:lt'],
|
|
2402
|
+
},
|
|
2403
|
+
'text-decoration-style': {
|
|
2404
|
+
alias: 'tds',
|
|
2405
|
+
type: '',
|
|
2406
|
+
// compiler:'',
|
|
2407
|
+
values: [...style, 'wavy:w'],
|
|
2408
|
+
},
|
|
2409
|
+
'text-decoration-thickness': {
|
|
2410
|
+
alias: 'tdt',
|
|
2411
|
+
type: 'd',
|
|
2412
|
+
compiler: length,
|
|
2413
|
+
values: ['auto:a', 'from-font:ff'],
|
|
2414
|
+
},
|
|
2415
|
+
'text-emphasis': {
|
|
2416
|
+
alias: 'te',
|
|
2417
|
+
type: 's',
|
|
2418
|
+
// compiler:'',
|
|
2419
|
+
values: ['none:n', 'open:o', 'filled:f', 'dot:d', 'circle:c', 'double-circle:dc', 'triangle:t', 'sesame'],
|
|
2420
|
+
},
|
|
2421
|
+
'text-emphasis-color': {
|
|
2422
|
+
alias: 'tec',
|
|
2423
|
+
type: 's',
|
|
2424
|
+
compiler: color,
|
|
2425
|
+
values: [''],
|
|
2426
|
+
},
|
|
2427
|
+
'text-indent': {
|
|
2428
|
+
alias: 'ti',
|
|
2429
|
+
type: 'd',
|
|
2430
|
+
compiler: length,
|
|
2431
|
+
values: [''],
|
|
2432
|
+
},
|
|
2433
|
+
'text-justify': {
|
|
2434
|
+
alias: 'tj',
|
|
2435
|
+
type: 's',
|
|
2436
|
+
// compiler:'',
|
|
2437
|
+
values: ['none:n', 'inter-word:iw', 'inter-character:ic', 'distribute:d', 'auto:a'],
|
|
2438
|
+
},
|
|
2439
|
+
'text-orientation': {
|
|
2440
|
+
alias: '', // --
|
|
2441
|
+
type: '',
|
|
2442
|
+
// compiler:'',
|
|
2443
|
+
values: ['mixed:m', 'upright:u', 'sideways:s', 'sideways-right:sr', 'use-glyph-orientation:ugo'],
|
|
2444
|
+
},
|
|
2445
|
+
'text-overflow': {
|
|
2446
|
+
alias: 'to',
|
|
2447
|
+
type: 's',
|
|
2448
|
+
// compiler:'',
|
|
2449
|
+
values: ['clip:c', 'ellipsis:e'],
|
|
2450
|
+
},
|
|
2451
|
+
'text-rendering': {
|
|
2452
|
+
alias: '',
|
|
2453
|
+
type: 's',
|
|
2454
|
+
// compiler:'',
|
|
2455
|
+
values: ['auto:a', 'optimizeSpeed:os', 'optimizeLegibility:ol', 'geometricPrecision:gp'],
|
|
2456
|
+
},
|
|
2457
|
+
'text-shadow': {
|
|
2458
|
+
alias: 'txs',
|
|
2459
|
+
type: 'd',
|
|
2460
|
+
compiler: shadow,
|
|
2461
|
+
values: [''],
|
|
2462
|
+
},
|
|
2463
|
+
'text-transform': {
|
|
2464
|
+
alias: 'tt',
|
|
2465
|
+
type: 's',
|
|
2466
|
+
// compiler:'',
|
|
2467
|
+
values: ['none:n', 'capitalize:c', 'uppercase:u:uc', 'lowercase:l:lc', 'full-width:fw', 'full-size-kana:fsk'],
|
|
2468
|
+
},
|
|
2469
|
+
'timeline-scope': {
|
|
2470
|
+
'alias': 'tls',
|
|
2471
|
+
compiler: (value) => '-' + value,
|
|
2472
|
+
values: ['none:n']
|
|
2473
|
+
},
|
|
2474
|
+
'text-underline-offset': {
|
|
2475
|
+
alias: 'tuo',
|
|
2476
|
+
type: 'd',
|
|
2477
|
+
compiler: length,
|
|
2478
|
+
values: ['auto:a'],
|
|
2479
|
+
},
|
|
2480
|
+
'text-underline-position': {
|
|
2481
|
+
alias: 'tup',
|
|
2482
|
+
type: 's',
|
|
2483
|
+
// compiler:'',
|
|
2484
|
+
values: ['auto:a', 'under:u', 'left:l', 'right:r'],
|
|
2485
|
+
},
|
|
2486
|
+
'text-wrap': {
|
|
2487
|
+
alias: 'tw',
|
|
2488
|
+
type: 's',
|
|
2489
|
+
// compiler:'',
|
|
2490
|
+
values: ['wrap:w', 'nowrap:n:nw', 'balance:b', 'pretty:p', 'stable:s'],
|
|
2491
|
+
},
|
|
2492
|
+
'text-wrap-mode': {
|
|
2493
|
+
alias: 'twm',
|
|
2494
|
+
type: 's',
|
|
2495
|
+
// compiler:'',
|
|
2496
|
+
values: ['wrap:w', 'nowrap:n:nw'],
|
|
2497
|
+
},
|
|
2498
|
+
'text-wrap-style': {
|
|
2499
|
+
alias: 'tws',
|
|
2500
|
+
type: 's',
|
|
2501
|
+
// compiler:'',
|
|
2502
|
+
values: ['auto:a', 'balance:b', 'pretty:p', 'stable:s'],
|
|
2503
|
+
},
|
|
2504
|
+
'top': {
|
|
2505
|
+
alias: 't',
|
|
2506
|
+
type: 'd',
|
|
2507
|
+
compiler: length,
|
|
2508
|
+
values: ['auto:a'],
|
|
2509
|
+
},
|
|
2510
|
+
'touch-action': {
|
|
2511
|
+
alias: 'toa',
|
|
2512
|
+
values: ['auto:a', 'none:n', 'pan-x:px', 'pan-left:pl', 'pan-right:pr', 'pan-y:py', 'pan-up:pu', 'pan-down:pd', 'pinch-zoom:pz', 'manipulation:m']
|
|
2513
|
+
},
|
|
2514
|
+
'transform': {
|
|
2515
|
+
alias: 'tf',
|
|
2516
|
+
type: 'd',
|
|
2517
|
+
compiler: transform,
|
|
2518
|
+
values: ['none:n'],
|
|
2519
|
+
},
|
|
2520
|
+
'transform-box': {
|
|
2521
|
+
alias: 'tfb',
|
|
2522
|
+
type: 's',
|
|
2523
|
+
// compiler:'',
|
|
2524
|
+
values: ['content-box:cb', 'border-box:bb', 'fill-box:fb', 'stroke-box:sb', 'view-box:vb'],
|
|
2525
|
+
},
|
|
2526
|
+
'transform-origin': {
|
|
2527
|
+
alias: 'tfo',
|
|
2528
|
+
type: 'd',
|
|
2529
|
+
compiler: length,
|
|
2530
|
+
values: ['left:l', 'right:r', 'top:t', 'bottom:b', 'center:c'],
|
|
2531
|
+
},
|
|
2532
|
+
'transform-style': {
|
|
2533
|
+
alias: 'tfs',
|
|
2534
|
+
type: 's',
|
|
2535
|
+
// compiler:'',
|
|
2536
|
+
values: ['flat:f', 'preserve-3d:p:p3:p3d'],
|
|
2537
|
+
},
|
|
2538
|
+
'transition': {
|
|
2539
|
+
alias: 'tn',
|
|
2540
|
+
type: 'd',
|
|
2541
|
+
compiler: transition,
|
|
2542
|
+
values: [''],
|
|
2543
|
+
},
|
|
2544
|
+
'transition-behavior': {
|
|
2545
|
+
alias: 'tb',
|
|
2546
|
+
values: ['allow-discrete:ad', 'normal:nl'],
|
|
2547
|
+
},
|
|
2548
|
+
'transition-delay': {
|
|
2549
|
+
alias: 'tdl',
|
|
2550
|
+
type: 'd',
|
|
2551
|
+
compiler: length,
|
|
2552
|
+
values: [''],
|
|
2553
|
+
},
|
|
2554
|
+
'transition-duration': {
|
|
2555
|
+
alias: 'tdu',
|
|
2556
|
+
type: 'd',
|
|
2557
|
+
compiler: length,
|
|
2558
|
+
values: [''],
|
|
2559
|
+
},
|
|
2560
|
+
'transition-property': {
|
|
2561
|
+
alias: 'tp',
|
|
2562
|
+
type: 'd',
|
|
2563
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_[_]?/g, " , "),
|
|
2564
|
+
values: [''],
|
|
2565
|
+
},
|
|
2566
|
+
'transition-timing-function': {
|
|
2567
|
+
alias: 'ttf',
|
|
2568
|
+
type: 'd',
|
|
2569
|
+
compiler: timingFunction,
|
|
2570
|
+
values: [''],
|
|
2571
|
+
},
|
|
2572
|
+
'translate': {
|
|
2573
|
+
alias: '',
|
|
2574
|
+
type: 'd',
|
|
2575
|
+
compiler: length,
|
|
2576
|
+
values: ['none:n'],
|
|
2577
|
+
},
|
|
2578
|
+
// ----------U--------
|
|
2579
|
+
'unicode-bidi': {
|
|
2580
|
+
alias: 'ub',
|
|
2581
|
+
type: 's',
|
|
2582
|
+
// compiler:'',
|
|
2583
|
+
values: ['normal:nl', 'embed:e', 'isolate:i', 'bidi-override:bo', 'isolate-override:io', 'plaintext:p:pt'],
|
|
2584
|
+
},
|
|
2585
|
+
'user-select': {
|
|
2586
|
+
alias: 'us',
|
|
2587
|
+
type: 's',
|
|
2588
|
+
// compiler:'',
|
|
2589
|
+
values: ['none:n', 'auto:a', 'text:t', 'contain:c', 'all'],
|
|
2590
|
+
},
|
|
2591
|
+
// ----------V--------
|
|
2592
|
+
'vector-effect': {
|
|
2593
|
+
alias: 've',
|
|
2594
|
+
type: 's',
|
|
2595
|
+
// compiler:length,
|
|
2596
|
+
values: ['none:n', 'non-scaling-stroke:nss'],
|
|
2597
|
+
},
|
|
2598
|
+
'vertical-align': {
|
|
2599
|
+
alias: 'va',
|
|
2600
|
+
type: 'd',
|
|
2601
|
+
compiler: length,
|
|
2602
|
+
values: ['baseline:bl:b2', 'sub:s', 'super:su:s2', 'text-top:tt', 'text-bottom:tb', 'middle:m', 'top:t', 'bottom:b'],
|
|
2603
|
+
},
|
|
2604
|
+
'visibility': {
|
|
2605
|
+
alias: 'v',
|
|
2606
|
+
type: 's',
|
|
2607
|
+
// compiler:'',
|
|
2608
|
+
values: ['visible:v', 'hidden:h', 'collapse:c'],
|
|
2609
|
+
},
|
|
2610
|
+
'view-timeline': {
|
|
2611
|
+
alias: 'vt',
|
|
2612
|
+
compiler: (value) => "-" + value.replace(/-(block|inline|x|y)/, ' $1'),
|
|
2613
|
+
values: ['none block:none-block', 'none inline:none-inline', 'none x:none-x', 'none y:none-y']
|
|
2614
|
+
},
|
|
2615
|
+
'view-timeline-name': {
|
|
2616
|
+
alias: 'vtn',
|
|
2617
|
+
compiler: (value) => "-" + value,
|
|
2618
|
+
'values': ['none:n']
|
|
2619
|
+
},
|
|
2620
|
+
'view-timeline-axis': {
|
|
2621
|
+
alias: 'vta',
|
|
2622
|
+
// compiler:'',
|
|
2623
|
+
values: ['block:b', 'inline:i', 'y', 'x']
|
|
2624
|
+
},
|
|
2625
|
+
'view-timeline-inset': {
|
|
2626
|
+
alias: 'vti',
|
|
2627
|
+
compiler: length,
|
|
2628
|
+
values: ['auto:a']
|
|
2629
|
+
},
|
|
2630
|
+
'view-transition-name': {
|
|
2631
|
+
// 'alias':'vtn2',
|
|
2632
|
+
compiler: (value) => value.replace(/^-/, ''),
|
|
2633
|
+
'values': ['none:n']
|
|
2634
|
+
},
|
|
2635
|
+
// ----------W--------
|
|
2636
|
+
'white-space': {
|
|
2637
|
+
alias: 'ws',
|
|
2638
|
+
type: 's',
|
|
2639
|
+
// compiler:'',
|
|
2640
|
+
values: ['normal:nl', 'nowrap:nw', 'pre:p', 'pre-line:pl', 'pre-wrap:pw', 'break-spaces:bs'],
|
|
2641
|
+
},
|
|
2642
|
+
'white-space-collapse': {
|
|
2643
|
+
alias: 'wsc',
|
|
2644
|
+
values: ['collapse:c', 'preserve:p', 'preserve-breaks:pb', 'preserve-spaces:ps', 'break-spaces:bs']
|
|
2645
|
+
},
|
|
2646
|
+
'widows': {
|
|
2647
|
+
alias: 'wid',
|
|
2648
|
+
type: 'd',
|
|
2649
|
+
compiler: length,
|
|
2650
|
+
values: [''],
|
|
2651
|
+
},
|
|
2652
|
+
'width': {
|
|
2653
|
+
alias: 'w',
|
|
2654
|
+
type: 'd',
|
|
2655
|
+
compiler: length,
|
|
2656
|
+
values: ['max-content:xc', 'min-content:mc', 'auto:a', 'fit-content:fc', ...remUnits],
|
|
2657
|
+
},
|
|
2658
|
+
'will-change': {
|
|
2659
|
+
alias: 'wc', // --
|
|
2660
|
+
type: 's',
|
|
2661
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ', '),
|
|
2662
|
+
values: ['auto:a', 'scroll-position:sc', 'contents:c', 'transform:tf', 'opacity:o', 'left:l', 'top:t'],
|
|
2663
|
+
},
|
|
2664
|
+
'word-break': {
|
|
2665
|
+
alias: 'wb',
|
|
2666
|
+
type: '',
|
|
2667
|
+
// compiler:'',
|
|
2668
|
+
values: ['break-all:ba', 'keep-all:ka', 'break-word:bw', 'normal:nl'],
|
|
2669
|
+
},
|
|
2670
|
+
'word-spacing': {
|
|
2671
|
+
alias: 'wos',
|
|
2672
|
+
type: 'd',
|
|
2673
|
+
compiler: length,
|
|
2674
|
+
values: ['normal:nl'],
|
|
2675
|
+
},
|
|
2676
|
+
'word-wrap': {
|
|
2677
|
+
alias: 'ww',
|
|
2678
|
+
type: 's',
|
|
2679
|
+
// compiler:'',
|
|
2680
|
+
values: ['break-word:bw', 'normal:nl'],
|
|
2681
|
+
},
|
|
2682
|
+
'writing-mode': {
|
|
2683
|
+
alias: 'wm',
|
|
2684
|
+
type: 's',
|
|
2685
|
+
// compiler:'',
|
|
2686
|
+
values: ['horizontal-tb:ht', 'vertical-rl:vrl', 'vertical-lr:vlr'],
|
|
2687
|
+
},
|
|
2688
|
+
'x': {
|
|
2689
|
+
alias: 'x',
|
|
2690
|
+
type: 'd',
|
|
2691
|
+
compiler: length,
|
|
2692
|
+
values: [''],
|
|
2693
|
+
},
|
|
2694
|
+
'y': {
|
|
2695
|
+
alias: 'y',
|
|
2696
|
+
type: 'd',
|
|
2697
|
+
compiler: length,
|
|
2698
|
+
values: [''],
|
|
2699
|
+
},
|
|
2700
|
+
// ----------Z--------
|
|
2701
|
+
'z-index': {
|
|
2702
|
+
alias: 'zi',
|
|
2703
|
+
type: 'd',
|
|
2704
|
+
compiler: (value) => value.replace(/[-]([-]?)/, '$1'),
|
|
2705
|
+
values: ['auto:a'],
|
|
2706
|
+
},
|
|
2707
|
+
'zoom': {
|
|
2708
|
+
alias: 'zo',
|
|
2709
|
+
type: 'd',
|
|
2710
|
+
compiler: length,
|
|
2711
|
+
values: ['reset:re', 'normal:nl']
|
|
2712
|
+
},
|
|
2713
|
+
// ----------------SVG-----------------------------
|
|
2714
|
+
// 'alignment-baseline':{
|
|
2715
|
+
// alias:'',
|
|
2716
|
+
// type:'',
|
|
2717
|
+
// // compiler:'',
|
|
2718
|
+
// value:['']
|
|
2719
|
+
// },
|
|
2720
|
+
'stroke': {
|
|
2721
|
+
alias: 'str',
|
|
2722
|
+
type: 'd',
|
|
2723
|
+
compiler: color,
|
|
2724
|
+
values: [],
|
|
2725
|
+
},
|
|
2726
|
+
'fill': {
|
|
2727
|
+
alias: '',
|
|
2728
|
+
type: 'd',
|
|
2729
|
+
compiler: color,
|
|
2730
|
+
values: ['none:n', 'context-fill:cf', 'context-stroke:cs'],
|
|
2731
|
+
},
|
|
2732
|
+
'fill-opacity': {
|
|
2733
|
+
alias: 'fo',
|
|
2734
|
+
type: 'd',
|
|
2735
|
+
compiler: (value) => value.replace(/^-/, '').replace(/(\d)d(\d)/, '$1.$2').replace(/([\d])p$/, '$1%'),
|
|
2736
|
+
values: [],
|
|
2737
|
+
},
|
|
2738
|
+
'fill-rule': {
|
|
2739
|
+
alias: 'fr',
|
|
2740
|
+
type: 'd',
|
|
2741
|
+
// compiler:'',
|
|
2742
|
+
values: ['nonzero:nz', 'evenodd:eo'],
|
|
2743
|
+
},
|
|
2744
|
+
'stroke-dasharray': {
|
|
2745
|
+
alias: 'sda',
|
|
2746
|
+
type: 'd',
|
|
2747
|
+
compiler: length,
|
|
2748
|
+
values: [],
|
|
2749
|
+
},
|
|
2750
|
+
'stroke-dashoffset': {
|
|
2751
|
+
alias: 'sdo',
|
|
2752
|
+
type: 'd',
|
|
2753
|
+
compiler: length,
|
|
2754
|
+
values: [],
|
|
2755
|
+
},
|
|
2756
|
+
'stroke-width': {
|
|
2757
|
+
alias: 'sw',
|
|
2758
|
+
type: 'd',
|
|
2759
|
+
compiler: length,
|
|
2760
|
+
values: [],
|
|
2761
|
+
},
|
|
2762
|
+
'stroke-opacity': {
|
|
2763
|
+
alias: 'so',
|
|
2764
|
+
type: 'd',
|
|
2765
|
+
compiler: length,
|
|
2766
|
+
values: [],
|
|
2767
|
+
},
|
|
2768
|
+
'stroke-linecap': {
|
|
2769
|
+
alias: 'slc',
|
|
2770
|
+
type: 's',
|
|
2771
|
+
// compiler:'',
|
|
2772
|
+
values: ['butt', 'round', 'square'],
|
|
2773
|
+
},
|
|
2774
|
+
'stroke-linejoin': {
|
|
2775
|
+
alias: 'slj',
|
|
2776
|
+
type: 's',
|
|
2777
|
+
// compiler:'',
|
|
2778
|
+
values: ['arcs', 'bevel', 'miter', 'miter-clip', 'round'],
|
|
2779
|
+
},
|
|
2780
|
+
// -------------webkit---
|
|
2781
|
+
'webkit-line-clamp': {
|
|
2782
|
+
alias: '',
|
|
2783
|
+
property: '-webkit-line-clamp',
|
|
2784
|
+
type: 'd',
|
|
2785
|
+
compiler: (value) => value.replace(/^-/, ''),
|
|
2786
|
+
values: ['none:n'],
|
|
2787
|
+
},
|
|
2788
|
+
'webkit-box-orient': {
|
|
2789
|
+
alias: '',
|
|
2790
|
+
property: '-webkit-box-orient',
|
|
2791
|
+
type: 's',
|
|
2792
|
+
// compiler:(value:string)=>value.replace(/^-/,''),
|
|
2793
|
+
values: ['horizontal:h', 'vertical:v', 'inline-axis:ia', 'block-axis:ba'],
|
|
2794
|
+
},
|
|
2795
|
+
'webkit-tap-highlight-color': {
|
|
2796
|
+
alias: '',
|
|
2797
|
+
property: '-webkit-tap-highlight-color',
|
|
2798
|
+
type: 's',
|
|
2799
|
+
compiler: color,
|
|
2800
|
+
values: ['transparent:t'],
|
|
2801
|
+
},
|
|
2802
|
+
// ---------------- New properties ----------------
|
|
2803
|
+
// Paste inside the cssProps object. Uses the same imports already in the file
|
|
2804
|
+
// (length, color, border, url). Aliases are left empty on purpose: these are
|
|
2805
|
+
// less common properties, so the full semantic name is the intended form.
|
|
2806
|
+
// ---------- Fonts & text rendering ----------
|
|
2807
|
+
'webkit-font-smoothing': {
|
|
2808
|
+
alias: '',
|
|
2809
|
+
property: '-webkit-font-smoothing',
|
|
2810
|
+
type: 's',
|
|
2811
|
+
values: ['auto:a', 'none:n', 'antialiased:aa', 'subpixel-antialiased:sa'],
|
|
2812
|
+
},
|
|
2813
|
+
'moz-osx-font-smoothing': {
|
|
2814
|
+
alias: '',
|
|
2815
|
+
property: '-moz-osx-font-smoothing',
|
|
2816
|
+
type: 's',
|
|
2817
|
+
values: ['auto:a', 'grayscale:gs'],
|
|
2818
|
+
},
|
|
2819
|
+
'text-size-adjust': {
|
|
2820
|
+
alias: '',
|
|
2821
|
+
type: 'd',
|
|
2822
|
+
compiler: length,
|
|
2823
|
+
values: ['none:n', 'auto:a'],
|
|
2824
|
+
},
|
|
2825
|
+
'webkit-text-size-adjust': {
|
|
2826
|
+
alias: '',
|
|
2827
|
+
property: '-webkit-text-size-adjust',
|
|
2828
|
+
type: 'd',
|
|
2829
|
+
compiler: length,
|
|
2830
|
+
values: ['none:n', 'auto:a'],
|
|
2831
|
+
},
|
|
2832
|
+
'webkit-text-fill-color': {
|
|
2833
|
+
alias: '',
|
|
2834
|
+
property: '-webkit-text-fill-color',
|
|
2835
|
+
type: 'd',
|
|
2836
|
+
compiler: color,
|
|
2837
|
+
values: ['transparent:t', 'currentcolor:cc'],
|
|
2838
|
+
},
|
|
2839
|
+
'webkit-text-stroke': {
|
|
2840
|
+
// webkit-text-stroke-1px-red -> -webkit-text-stroke: 1px red
|
|
2841
|
+
alias: '',
|
|
2842
|
+
property: '-webkit-text-stroke',
|
|
2843
|
+
type: 'd',
|
|
2844
|
+
compiler: (value, custom) => {
|
|
2845
|
+
const m = value.match(/^-([^-]+)-(.+)$/);
|
|
2846
|
+
if (!m)
|
|
2847
|
+
return length(value);
|
|
2848
|
+
return `${m[1].replace(/(\d)d(\d)/, '$1.$2')} ${color('-' + m[2], custom)}`;
|
|
2849
|
+
},
|
|
2850
|
+
values: [],
|
|
2851
|
+
},
|
|
2852
|
+
'webkit-text-stroke-width': {
|
|
2853
|
+
alias: '',
|
|
2854
|
+
property: '-webkit-text-stroke-width',
|
|
2855
|
+
type: 'd',
|
|
2856
|
+
compiler: length,
|
|
2857
|
+
values: ['thin:t', 'medium:m', 'thick:th'],
|
|
2858
|
+
},
|
|
2859
|
+
'webkit-text-stroke-color': {
|
|
2860
|
+
alias: '',
|
|
2861
|
+
property: '-webkit-text-stroke-color',
|
|
2862
|
+
type: 'd',
|
|
2863
|
+
compiler: color,
|
|
2864
|
+
values: [],
|
|
2865
|
+
},
|
|
2866
|
+
'text-decoration-skip-ink': {
|
|
2867
|
+
alias: '',
|
|
2868
|
+
type: 's',
|
|
2869
|
+
values: ['auto:a', 'none:n', 'all'],
|
|
2870
|
+
},
|
|
2871
|
+
'text-emphasis-style': {
|
|
2872
|
+
alias: '',
|
|
2873
|
+
type: 's',
|
|
2874
|
+
values: ['none:n', 'filled:f', 'open:o', 'dot:d', 'circle:c', 'double-circle:dc', 'triangle:t', 'sesame:s',
|
|
2875
|
+
'filled dot:filled-dot:fd', 'open dot:open-dot:od', 'filled circle:filled-circle:fc', 'open circle:open-circle:oc'],
|
|
2876
|
+
},
|
|
2877
|
+
'text-emphasis-position': {
|
|
2878
|
+
alias: '',
|
|
2879
|
+
type: 's',
|
|
2880
|
+
values: ['over:o', 'under:u', 'over right:over-right:or', 'over left:over-left:ol',
|
|
2881
|
+
'under right:under-right:ur', 'under left:under-left:ul'],
|
|
2882
|
+
},
|
|
2883
|
+
'font-optical-sizing': {
|
|
2884
|
+
alias: '',
|
|
2885
|
+
type: 's',
|
|
2886
|
+
values: ['auto:a', 'none:n'],
|
|
2887
|
+
},
|
|
2888
|
+
'font-palette': {
|
|
2889
|
+
// font-palette---my-palette -> font-palette: --my-palette
|
|
2890
|
+
alias: '',
|
|
2891
|
+
type: 'd',
|
|
2892
|
+
compiler: (value) => value.replace(/^-/, ''),
|
|
2893
|
+
values: ['normal:nl', 'light:l', 'dark:d'],
|
|
2894
|
+
},
|
|
2895
|
+
'font-synthesis-weight': {
|
|
2896
|
+
alias: '',
|
|
2897
|
+
type: 's',
|
|
2898
|
+
values: ['auto:a', 'none:n'],
|
|
2899
|
+
},
|
|
2900
|
+
'font-synthesis-style': {
|
|
2901
|
+
alias: '',
|
|
2902
|
+
type: 's',
|
|
2903
|
+
values: ['auto:a', 'none:n', 'oblique-only:oo'],
|
|
2904
|
+
},
|
|
2905
|
+
'font-synthesis-small-caps': {
|
|
2906
|
+
alias: '',
|
|
2907
|
+
type: 's',
|
|
2908
|
+
values: ['auto:a', 'none:n'],
|
|
2909
|
+
},
|
|
2910
|
+
'hyphenate-character': {
|
|
2911
|
+
// hyphenate-character-auto, or a string: hyphenate-character-~ -> "~"
|
|
2912
|
+
alias: '',
|
|
2913
|
+
type: 'd',
|
|
2914
|
+
compiler: (value) => `"${value.replace(/^-/, '').replace(/\\_/g, '\u0000').replace(/_/g, ' ').replace(/\u0000/g, '_')}"`,
|
|
2915
|
+
values: ['auto:a'],
|
|
2916
|
+
},
|
|
2917
|
+
'hyphenate-limit-chars': {
|
|
2918
|
+
// hyphenate-limit-chars-6-3-2 -> 6 3 2
|
|
2919
|
+
alias: '',
|
|
2920
|
+
type: 'd',
|
|
2921
|
+
compiler: (value) => value.replace(/^-/, '').replace(/-/g, ' '),
|
|
2922
|
+
values: ['auto:a'],
|
|
2923
|
+
},
|
|
2924
|
+
'text-box': {
|
|
2925
|
+
// text-box-trim-both_cap_alphabetic -> trim-both cap alphabetic
|
|
2926
|
+
alias: '',
|
|
2927
|
+
type: 'd',
|
|
2928
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_/g, ' '),
|
|
2929
|
+
values: ['normal:nl'],
|
|
2930
|
+
},
|
|
2931
|
+
'text-box-trim': {
|
|
2932
|
+
alias: '',
|
|
2933
|
+
type: 's',
|
|
2934
|
+
values: ['none:n', 'trim-start:ts', 'trim-end:te', 'trim-both:tb'],
|
|
2935
|
+
},
|
|
2936
|
+
'text-box-edge': {
|
|
2937
|
+
// text-box-edge-cap_alphabetic -> cap alphabetic
|
|
2938
|
+
alias: '',
|
|
2939
|
+
type: 'd',
|
|
2940
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_/g, ' '),
|
|
2941
|
+
values: ['auto:a'],
|
|
2942
|
+
},
|
|
2943
|
+
// ---------- Logical border shorthands ----------
|
|
2944
|
+
'border-block-start': {
|
|
2945
|
+
alias: '',
|
|
2946
|
+
type: 'd',
|
|
2947
|
+
compiler: border,
|
|
2948
|
+
values: ['none:n'],
|
|
2949
|
+
},
|
|
2950
|
+
'border-block-end': {
|
|
2951
|
+
alias: '',
|
|
2952
|
+
type: 'd',
|
|
2953
|
+
compiler: border,
|
|
2954
|
+
values: ['none:n'],
|
|
2955
|
+
},
|
|
2956
|
+
'border-inline-start': {
|
|
2957
|
+
alias: '',
|
|
2958
|
+
type: 'd',
|
|
2959
|
+
compiler: border,
|
|
2960
|
+
values: ['none:n'],
|
|
2961
|
+
},
|
|
2962
|
+
'border-inline-end': {
|
|
2963
|
+
alias: '',
|
|
2964
|
+
type: 'd',
|
|
2965
|
+
compiler: border,
|
|
2966
|
+
values: ['none:n'],
|
|
2967
|
+
},
|
|
2968
|
+
// ---------- Overflow (logical) ----------
|
|
2969
|
+
'overflow-block': {
|
|
2970
|
+
alias: '',
|
|
2971
|
+
type: 's',
|
|
2972
|
+
values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a'],
|
|
2973
|
+
},
|
|
2974
|
+
'overflow-inline': {
|
|
2975
|
+
alias: '',
|
|
2976
|
+
type: 's',
|
|
2977
|
+
values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a'],
|
|
2978
|
+
},
|
|
2979
|
+
// ---------- Anchor positioning ----------
|
|
2980
|
+
'position-try': {
|
|
2981
|
+
alias: '',
|
|
2982
|
+
type: 'd',
|
|
2983
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ', ').replace(/_/g, ' '),
|
|
2984
|
+
// values:['none:n','flip-block:fb','flip-inline:fi','flip-start:fs'],
|
|
2985
|
+
},
|
|
2986
|
+
'position-try-fallbacks': {
|
|
2987
|
+
// position-try-fallbacks-flip-block__flip-inline -> flip-block, flip-inline
|
|
2988
|
+
// position-try-fallbacks-flip-block_flip-inline -> flip-block flip-inline
|
|
2989
|
+
// position-try-fallbacks---my-try -> --my-try
|
|
2990
|
+
alias: '',
|
|
2991
|
+
type: 'd',
|
|
2992
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ', ').replace(/_/g, ' '),
|
|
2993
|
+
values: ['none:n', 'flip-block:fb', 'flip-inline:fi', 'flip-start:fs'],
|
|
2994
|
+
},
|
|
2995
|
+
'position-try-order': {
|
|
2996
|
+
alias: '',
|
|
2997
|
+
type: 's',
|
|
2998
|
+
values: ['normal:nl', 'most-width:mw', 'most-height:mh', 'most-block-size:mbs', 'most-inline-size:mis'],
|
|
2999
|
+
},
|
|
3000
|
+
'position-visibility': {
|
|
3001
|
+
alias: '',
|
|
3002
|
+
type: 's',
|
|
3003
|
+
values: ['always:a', 'anchors-visible:av', 'no-overflow:no'],
|
|
3004
|
+
},
|
|
3005
|
+
'anchor-scope': {
|
|
3006
|
+
// same convention as anchor-name: anchor-scope-card -> --card
|
|
3007
|
+
alias: '',
|
|
3008
|
+
type: 'd',
|
|
3009
|
+
compiler: (value) => "-" + value.replace(/__/g, ', --'),
|
|
3010
|
+
values: ['none:n', 'all'],
|
|
3011
|
+
},
|
|
3012
|
+
// ---------- Animation & view transitions ----------
|
|
3013
|
+
'interpolate-size': {
|
|
3014
|
+
alias: '',
|
|
3015
|
+
type: 's',
|
|
3016
|
+
values: ['numeric-only:no', 'allow-keywords:ak'],
|
|
3017
|
+
},
|
|
3018
|
+
'view-transition-class': {
|
|
3019
|
+
// view-transition-class-card_slide -> card slide
|
|
3020
|
+
alias: '',
|
|
3021
|
+
type: 'd',
|
|
3022
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_/g, ' '),
|
|
3023
|
+
values: ['none:n'],
|
|
3024
|
+
},
|
|
3025
|
+
// ---------- SVG ----------
|
|
3026
|
+
// `r` is intentionally not added: it is already the alias for `right`.
|
|
3027
|
+
'cx': {
|
|
3028
|
+
alias: '',
|
|
3029
|
+
type: 'd',
|
|
3030
|
+
compiler: length,
|
|
3031
|
+
values: [],
|
|
3032
|
+
},
|
|
3033
|
+
'cy': {
|
|
3034
|
+
alias: '',
|
|
3035
|
+
type: 'd',
|
|
3036
|
+
compiler: length,
|
|
3037
|
+
values: [],
|
|
3038
|
+
},
|
|
3039
|
+
'rx': {
|
|
3040
|
+
alias: '',
|
|
3041
|
+
type: 'd',
|
|
3042
|
+
compiler: length,
|
|
3043
|
+
values: ['auto:a'],
|
|
3044
|
+
},
|
|
3045
|
+
'ry': {
|
|
3046
|
+
alias: '',
|
|
3047
|
+
type: 'd',
|
|
3048
|
+
compiler: length,
|
|
3049
|
+
values: ['auto:a'],
|
|
3050
|
+
},
|
|
3051
|
+
'stroke-miterlimit': {
|
|
3052
|
+
alias: '',
|
|
3053
|
+
type: 'd',
|
|
3054
|
+
compiler: (value) => value.replace(/^-/, '').replace(/(\d)d(\d)/, '$1.$2'),
|
|
3055
|
+
values: [],
|
|
3056
|
+
},
|
|
3057
|
+
'clip-rule': {
|
|
3058
|
+
alias: '',
|
|
3059
|
+
type: 's',
|
|
3060
|
+
values: ['nonzero:nz', 'evenodd:eo'],
|
|
3061
|
+
},
|
|
3062
|
+
'shape-rendering': {
|
|
3063
|
+
alias: '',
|
|
3064
|
+
type: 's',
|
|
3065
|
+
values: ['auto:a', 'optimizeSpeed:os', 'crispEdges:ce', 'geometricPrecision:gp'],
|
|
3066
|
+
},
|
|
3067
|
+
'dominant-baseline': {
|
|
3068
|
+
alias: '',
|
|
3069
|
+
type: 's',
|
|
3070
|
+
values: ['auto:a', 'alphabetic', 'ideographic', 'middle:m', 'central:c', 'mathematical', 'hanging', 'text-top', 'text-bottom'],
|
|
3071
|
+
},
|
|
3072
|
+
'marker': {
|
|
3073
|
+
alias: '',
|
|
3074
|
+
type: 'd',
|
|
3075
|
+
compiler: (value) => url(value),
|
|
3076
|
+
values: ['none:n'],
|
|
3077
|
+
},
|
|
3078
|
+
'marker-start': {
|
|
3079
|
+
alias: '',
|
|
3080
|
+
type: 'd',
|
|
3081
|
+
compiler: (value) => url(value),
|
|
3082
|
+
values: ['none:n'],
|
|
3083
|
+
},
|
|
3084
|
+
'marker-mid': {
|
|
3085
|
+
alias: '',
|
|
3086
|
+
type: 'd',
|
|
3087
|
+
compiler: (value) => url(value),
|
|
3088
|
+
values: ['none:n'],
|
|
3089
|
+
},
|
|
3090
|
+
'marker-end': {
|
|
3091
|
+
alias: '',
|
|
3092
|
+
type: 'd',
|
|
3093
|
+
compiler: (value) => url(value),
|
|
3094
|
+
values: ['none:n'],
|
|
3095
|
+
},
|
|
3096
|
+
// ---------------some Custom Aliases compiler----------------
|
|
3097
|
+
'max-h': {
|
|
3098
|
+
property: 'max-height',
|
|
3099
|
+
type: 'd',
|
|
3100
|
+
compiler: length,
|
|
3101
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
3102
|
+
},
|
|
3103
|
+
'min-h': {
|
|
3104
|
+
property: 'min-height',
|
|
3105
|
+
type: 'd',
|
|
3106
|
+
compiler: length,
|
|
3107
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
3108
|
+
},
|
|
3109
|
+
'max-w': {
|
|
3110
|
+
property: 'max-width',
|
|
3111
|
+
type: 'd',
|
|
3112
|
+
compiler: length,
|
|
3113
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
3114
|
+
},
|
|
3115
|
+
'min-w': {
|
|
3116
|
+
property: 'min-width',
|
|
3117
|
+
type: 'd',
|
|
3118
|
+
compiler: length,
|
|
3119
|
+
values: ['max-content:xc', 'min-content:mc', 'none:n', 'fit-content:fc'],
|
|
3120
|
+
},
|
|
3121
|
+
};
|
|
3122
|
+
export default cssProps;
|