-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathstyledic.js
237 lines (234 loc) · 13.8 KB
/
styledic.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/*
* Author: demi6od <[email protected]>
* Date: 2013 Oct 21st
*
* Note: the fuzzer is designed to run using Grinder Framework, if you want to run it without using Grinder:
* - remove all dependencies of logger element
*/
demicm.styleBlackList = [ ];
demicm.styleDic = {
//parentRule: [ ],
//length: [ ],
//cssText: [ ],
//alignContent: [ ],
//alignItems: [ ],
//alignSelf: [ ],
//alignmentBaseline: [ ],
//background: [ ],
backgroundAttachment: ['scroll', 'fixed', 'inherit'],
backgroundClip: ['border-box', 'padding-box', 'content-box'],
backgroundColor: [demicm.color, 'transparent', 'inherit'],
backgroundImage: ['url(' + demicm.URL + 'demicmImg.gif)', 'none', 'inherit'],
backgroundOrigin: ['padding-box', 'border-box', 'content-box'],
backgroundPosition: [demicm.lengthUnitDouble, demicm.pctDouble, demicm.posDouble, 'inherit'],
backgroundPositionX: [demicm.lengthUnit, demicm.pct, demicm.pos, 'inherit'],
backgroundPositionY: [demicm.lengthUnit, demicm.pct, demicm.pos, 'inherit'],
backgroundRepeat: ['repeat', 'repeat-x', 'repeat-y', 'no-repeat', 'inherit'],
backgroundRepeatX: ['repeat', 'no-repeat', 'inherit'],
backgroundRepeatY: ['repeat', 'no-repeat', 'inherit'],
backgroundSize: [demicm.lengthUnit, demicm.lengthUnitDouble, demicm.pct, demicm.pctDouble, 'cover', 'contain' ],
baselineShift: ['baseline', 'sub', 'super', demicm.pct, demicm.lengthUnit],
//border: [],
//borderBottom: [],
borderBottomColor: [demicm.color, 'transparent', 'inherit'],
borderBottomLeftRadius: [demicm.lengthUnit, demicm.pct],
borderBottomRightRadius: [demicm.lengthUnit, demicm.pct],
borderBottomStyle: ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'inherit'],
borderBottomWidth: ['thin', 'medium', 'thick', demicm.lengthUnit, 'inherit'],
borderCollapse: ['collapse', 'separate', 'inherit'],
//borderColor: [],
//borderImage: [],
borderImageOutset: [demicm.lengthUnitDouble, demicm.intNum],
borderImageRepeat: ['stretch', 'repeat', 'round'],
borderImageSlice: [demicm.intNumDouble, demicm.pctDouble, 'fill'],
borderImageSource: ['url(' + demicm.URL + 'demicmImg.gif)', 'none'],
borderImageWidth: [demicm.intNumDouble, demicm.pctDouble, 'auto'],
//borderLeft: [],
borderLeftColor: [demicm.color, 'transparent', 'inherit'],
borderLeftStyle: ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'inherit'],
borderLeftWidth: ['thin', 'medium', 'thick', demicm.lengthUnit, 'inherit'],
//borderRadius: [],
//borderRight: [],
borderRightColor: [demicm.color, 'transparent', 'inherit'],
borderRightStyle: ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'inherit'],
borderRightWidth: ['thin', 'medium', 'thick', demicm.lengthUnit, 'inherit'],
borderSpacing: [demicm.lengthUnit, demicm.lengthUnitDouble, 'inherit'],
borderStyle: ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'inherit'],
//borderTop: [],
borderTopColor: [demicm.color, 'transparent', 'inherit'],
borderTopLeftRadius: [demicm.lengthUnit, demicm.pct],
borderTopRightRadius: [demicm.lengthUnit, demicm.pct],
borderTopStyle: ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'inherit'],
borderTopWidth: ['thin', 'medium', 'thick', demicm.lengthUnit, 'inherit'],
//borderWidth: [],
bottom: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
boxShadow: [demicm.boxShadowVal],
boxSizing: ['content-box', 'border-box', 'inherit'],
bufferedRendering: ['auto', 'static', 'dynamic'],
captionSide: ['top', 'bottom'],
clear: ['left', 'right', 'both', 'none', 'inherit'],
clip: [demicm.clipVal, 'auto', 'inherit'],
//clipPath: [ ],
clipRule: ['nonzero', 'evenodd', 'inherit'],
color: [demicm.color, 'inherit'],
colorInterpolation: ['auto', 'sRGB', 'linearRGB'],
colorInterpolationFilters: ['auto', 'sRGB', 'linearRGB'],
colorProfile: ['auto', 'sRGB', 'inherit'],
colorRendering: ['auto', 'optimizeSpeed', 'optimizeQuality', 'inherit'],
content: ['normal', 'inherit',
[demicm.str, 'url(' + demicm.URL + 'demicmImg.gif)', demicm.normalNum, 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote']],
counterIncrement: [demicm.normalNum, 'none', 'inherit'],
counterReset: [demicm.normalNum, 'none', 'inherit'],
cursor: ['url(' + demicm.URL + 'demicmImg.gif)', 'auto', 'default', 'pointer', 'crosshair', 'move', 'e-resize', 'ne-resize',
'nw-resize', 'n-resize', 'se-resize', 'sw-resize', 's-resize', 'w-resize', 'text', 'wait', 'help', 'progress', 'inherit'],
direction: ['ltr', 'rtl', 'inherit'],
display: ['none', 'inline', 'block', 'inline-block', 'list-item', 'run-in', 'table', 'inline-table', 'table-row-group', 'table-header-group',
'table-footer-group', 'table-row', 'table-column-group', 'table-column', 'table-cell', 'table-caption', 'inheri'],
dominantBaseline: ['auto', 'use-script', 'no-change', 'reset-size', 'ideographic', 'alphabetic', 'hanging',
'mathematical', 'central', 'middle', 'text-after-edge', 'text-before-edge', 'inherit'],
emptyCells: ['show', 'hide', 'inherit'],
enableBackground: [demicm.enableBackgroundVal, 'accumulate', 'inherit' ],
fill: [demicm.color],
fillOpacity: [demicm.opacityVal],
fillRule: ['nonzero', 'evenodd', 'inherit'],
//filter: [ ],
//flex: [],
flexBasis: [demicm.pct, demicm.lengthUnit, 'initial', 'auto' ],
flexDirection: ['row', 'row-reverse', 'column', 'column-reverse'],
//flexFlow: [],
flexGrow: [demicm.normalNum, 'inherit'],
flexShrink: [demicm.normalNum, 'inherit'],
flexWrap: ['nowrap', 'wrap', 'wrap-reverse'],
float: ['left', 'right', 'none', 'inherit'],
floodColor: ['currentColor', demicm.color, 'inherit'],
floodOpacity: [demicm.opacityVal],
//font: [],
fontFamily: [demicm.fontFamilyVal, 'inherit'],
fontSize: ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', 'smaller', 'larger', demicm.lengthUnit, demicm.pct, 'inherit'],
fontStretch: ['normal', 'wider', 'narrower', 'ultra-condensed', 'extra-condensed', 'condensed',
'semi-condensed', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded', 'inherit'],
fontStyle: ['italic', 'oblique', 'normal', 'inherit'],
fontVariant: ['small-caps', 'normal', 'inherit'],
fontWeight: ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'inherit'],
glyphOrientationHorizontal: [demicm.angle, 'auto', 'upright', 'inline'],
glyphOrientationVertical: [demicm.angle, 'auto', 'upright', 'inline'],
//gridTemplate: [ ],
height: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
imageRendering: ['auto', 'crisp-edges', 'pixelated', 'inherit'],
justifyContent: ['flex-start', 'flex-end', 'center', 'space-between', 'space-around'],
kerning: ['auto', demicm.lengthUnit, 'inherit' ],
left: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
letterSpacing: [demicm.lengthUnit, 'normal', 'inherit'],
lightingColor: ['currentColor', demicm.color, 'inherit'],
lineHeight: [demicm.lengthUnit, demicm.pct, 'normal', 'inherit'],
//listStyle: [],
listStyleImage: ['url(' + demicm.URL + 'demicmImg.gif)', 'none', 'inherit'],
listStylePosition: ['inside', 'outside', 'inherit'],
listStyleType: ['disc', 'circle', 'square', 'decimal', 'decimal-leading-zero', 'lower-roman', 'upper-roman',
'lower-greek', 'lower-latin', 'upper-latin', 'armenian', 'georgian', 'none', 'inherit'],
//margin: [],
marginBottom: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
marginLeft: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
marginRight: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
marginTop: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
//marker: [ ],
//markerEnd: [ ],
//markerMid: [ ],
//markerStart: [ ],
mask: ['url(' + demicm.URL + 'demicmImg.gif) no-repeat fixed 20px 20px padding padding'],
//maskType: [ ],
maxHeight: [demicm.lengthUnit, demicm.pct, 'none', 'inherit'],
maxWidth: [demicm.lengthUnit, demicm.pct, 'none', 'inherit'],
maxZoom: [demicm.lengthUnit, demicm.pct, 'auto'],
minHeight: [demicm.lengthUnit, demicm.pct, 'inherit'],
minWidth: [demicm.lengthUnit, demicm.pct, 'inherit'],
minZoom: [demicm.lengthUnit, demicm.pct, 'auto'],
opacity: [demicm.opacityVal],
order: [demicm.normalNum, 'inherit'],
orientation: ['from-image', demicm.orientationVal, 'flip'],
orphans: [demicm.intNum, 'inherit'],
//outline: [],
outlineColor: [demicm.color, 'invert', 'inherit'],
outlineOffset: [demicm.lengthUnit, 'inherit'],
outlineStyle: ['none', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'inherit'],
outlineWidth: ['thin', 'medium', 'thick', demicm.lengthUnit, 'inherit'],
overflow: ['visible', 'hidden', 'scroll', 'auto', 'inherit'],
overflowWrap: ['visible', 'hidden', 'scroll', 'auto', 'inherit'],
overflowX: ['visible', 'hidden', 'scroll', 'auto', 'no-display', 'no-content'],
overflowY: ['visible', 'hidden', 'scroll', 'auto', 'no-display', 'no-content'],
//padding: [],
paddingBottom: [demicm.lengthUnit, demicm.pct, 'inherit'],
paddingLeft: [demicm.lengthUnit, demicm.pct, 'inherit'],
paddingRight: [demicm.lengthUnit, demicm.pct, 'inherit'],
paddingTop: [demicm.lengthUnit, demicm.pct, 'inherit'],
page: ['auto', 'inherit'],
pageBreakAfter: ['auto', 'always', 'avoid', 'left', 'right', 'inherit'],
pageBreakBefore: ['auto', 'always', 'avoid', 'left', 'right', 'inherit'],
pageBreakInside: ['auto', 'avoid', 'inherit'],
pointerEvents: ['auto', 'none', 'visiblePainted', 'visibleFill', 'visibleStroke', 'visible', 'painted', 'fill', 'stroke', 'all', 'inherit'],
position: ['static', 'relative', 'absolute', 'fixed', 'inherit'],
quotes: ['\'<\' \'>\'', '\'`\' \'`\''],
resize: ['none', 'both', 'horizontal', 'vertical'],
right: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
shapeRendering: ['auto', 'optimizeSpeed', 'crispEdges', 'geometricPrecision', 'inherit'],
size: [demicm.lengthUnit, demicm.lengthUnitDouble, 'auto', 'portrait', 'landscape', 'inherit'],
speak: ['normal', 'none', 'spell-out', 'inherit'],
src: ['url(' + demicm.URL + 'demicmImg.gif)'],
stopColor: [demicm.color, 'transparent', 'inherit'],
stopOpacity: [demicm.opacityVal],
stroke: ['none', 'currentColor', demicm.color, 'inherit'],
strokeDasharray: ['none', 'dasharray', 'inherit'],
strokeDashoffset: [demicm.lengthUnit, demicm.pct, 'inherit'],
strokeLinecap: ['butt', 'round', 'bevel'],
strokeLinejoin: ['miter', 'round', 'bevel', 'inherit'],
strokeMiterlimit: ['inherit'],
strokeOpacity: [demicm.opacityVal, 'inherit'],
strokeWidth: [demicm.lengthUnit, demicm.pct, 'inherit'],
tabSize: [demicm.lengthUnit, demicm.normalNum],
tableLayout: ['auto', 'fixed', 'inherit'],
textAlign: ['left', 'center', 'right', 'justify', 'match-parent', 'start end', 'start', 'end'],
textAnchor: ['start', 'middle', 'end', 'inherit'],
textDecoration: ['none', 'underline', 'overline', 'line-through', 'blink', 'inherit'],
textIndent: [demicm.lengthUnit, demicm.pct, 'inherit'],
textLineThroughColor: ['currentColor', demicm.color, 'inherit'],
textLineThroughMode: ['continuous', 'skip-white-space'],
textLineThroughStyle: ['none', 'solid', 'double', 'dotted', 'dashed', 'dot-dash', 'dot-dot-dash', 'wave'],
textLineThroughWidth: [demicm.lengthUnit, demicm.pct, 'inherit'],
textOverflow: ['clip', 'ellipsis', demicm.str],
textOverlineColor: ['currentColor', demicm.color, 'inherit'],
textOverlineMode: ['continuous', 'skip-white-space'],
textOverlineStyle: ['none', 'solid', 'double', 'dotted', 'dashed', 'dot-dash', 'dot-dot-dash', 'wave'],
textOverlineWidth: [demicm.lengthUnit, demicm.pct, 'inherit'],
textRendering: ['auto', 'optimizeSpeed', 'optimizeLegibility', 'geometricPrecision'],
textShadow: [demicm.boxShadowVal],
textTransform: ['uppercase', 'lowercase', 'capitalize', 'none', 'inherit'],
textUnderlineColor: ['currentColor', demicm.color, 'inherit'],
textUnderlineMode: ['continuous', 'skip-white-space'],
textUnderlineStyle: ['none', 'solid', 'double', 'dotted', 'dashed', 'dot-dash', 'dot-dot-dash', 'wave'],
textUnderlineWidth: [demicm.lengthUnit, demicm.pct, 'inherit'],
top: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
//transition: [],
transitionDelay: ['1ms'],
transitionDuration: ['1ms'],
//transitionProperty: [ ],
transitionTimingFunction: ['linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out'],
unicodeBidi: ['normal', 'embed', 'bidi-override', 'inherit'],
unicodeRange: ['U+26', 'U+0025-00FF', 'U+4??', 'U+0025-00FF, U+4??'],
userZoom: [demicm.lengthUnit, demicm.pct, 'auto'],
//vectorEffect: [ ],
verticalAlign: ['baseline', 'sub', 'super', 'top', 'text-top', 'middle', 'bottom', 'text-bottom', demicm.pct, demicm.lengthUnit, 'inherit'],
visibility: ['visible', 'hidden', 'collapse', 'inherit'],
whiteSpace: ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'inherit'],
widows: [demicm.intNum, 'inherit'],
width: [demicm.lengthUnit, demicm.pct, 'auto', 'inherit'],
wordBreak: ['normal', 'break-all', 'keep-all'],
wordSpacing: [demicm.lengthUnit, 'normal', 'inherit'],
wordWrap: ['normal', 'break-word'],
writingMode: ['horizontal-tb', 'rl-tb', 'vertical-lr', 'vertical-rl', 'bt-rl', 'bt-lr', 'lr-bt', 'rl-bt', 'lr', 'lr-tb', 'rl', 'tb', 'tb-lr', 'tb-rl'],
zIndex: [demicm.intNum, 'auto', 'inherit'],
zoom: [demicm.lengthUnit, demicm.pct, 'auto'],
}
demicm.styles = [];
for(var style in demicm.styleDic) {
demicm.styles.push(style);
}