aboutsummaryrefslogtreecommitdiff
path: root/js/panels/CSSPanel/css-value-completion-map.js
blob: 44d7332ffc3976f84371b84aff42978daebe2533 (plain)
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
/* <copyright>
This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
(c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
</copyright> */

var colorKeywords = [
    "aqua", "black", "blue", "fuchsia", "gray", "green", "lime", "maroon", "navy", "olive", "orange", "purple", "red",
    "silver", "teal", "white", "yellow", "transparent", "currentcolor", "grey", "aliceblue", "antiquewhite",
    "aquamarine", "azure", "beige", "bisque", "blanchedalmond", "blueviolet", "brown", "burlywood", "cadetblue",
    "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan",
    "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange",
    "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey",
    "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
    "floralwhite", "forestgreen", "gainsboro", "ghostwhite", "gold", "goldenrod", "greenyellow", "honeydew", "hotpink",
    "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue",
    "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
    "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow",
    "limegreen", "linen", "magenta", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen",
    "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream",
    "mistyrose", "moccasin", "navajowhite", "oldlace", "olivedrab", "orangered", "orchid", "palegoldenrod", "palegreen",
    "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "rosybrown",
    "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "skyblue", "slateblue",
    "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "thistle", "tomato", "turquoise", "violet",
    "wheat", "whitesmoke", "yellowgreen"
];

exports.cssValueCompletionMap = {
    "table-layout": [
    "auto", "fixed"
    ],
    "visibility": [
    "hidden", "visible", "collapse"
    ],
    "background-repeat": [
    "repeat", "repeat-x", "repeat-y", "no-repeat", "space", "round"
    ],
    "text-underline": [
    "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
    ],
    "content": [
    "list-item", "close-quote", "no-close-quote", "no-open-quote", "open-quote"
    ],
    "list-style-image": [
    "none"
    ],
    "clear": [
    "none", "left", "right", "both"
    ],
    "text-underline-mode": [
    "continuous", "skip-white-space"
    ],
    "overflow-x": [
    "hidden", "auto", "visible", "overlay", "scroll"
    ],
    "stroke-linejoin": [
    "round", "miter", "bevel"
    ],
    "baseline-shift": [
    "baseline", "sub", "super"
    ],
    "border-bottom-width": [
    "medium", "thick", "thin"
    ],
    "marquee-speed": [
    "normal", "slow", "fast"
    ],
    "margin-top-collapse": [
    "collapse", "separate", "discard"
    ],
    "max-height": [
    "none"
    ],
    "box-orient": [
    "horizontal", "vertical", "inline-axis", "block-axis"
    ],
    "font-stretch": [
    "normal", "wider", "narrower", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed",
    "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"
    ],
    "-webkit-color-correction": [
    "default", "srgb"
    ],
    "text-underline-style": [
    "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
    ],
    "text-overline-mode": [
    "continuous", "skip-white-space"
    ],
    "-webkit-background-composite": [
    "highlight", "clear", "copy", "source-over", "source-in", "source-out", "source-atop", "destination-over",
    "destination-in", "destination-out", "destination-atop", "xor", "plus-darker", "plus-lighter"
    ],
    "border-left-width": [
    "medium", "thick", "thin"
    ],
    "-webkit-writing-mode": [
    "lr", "rl", "tb", "lr-tb", "rl-tb", "tb-rl", "horizontal-tb", "vertical-rl", "vertical-lr", "horizontal-bt"
    ],
    "text-line-through-mode": [
    "continuous", "skip-white-space"
    ],
    "border-collapse": [
    "collapse", "separate"
    ],
    "page-break-inside": [
    "auto", "avoid"
    ],
    "border-top-width": [
    "medium", "thick", "thin"
    ],
    "text-line-through-style": [
    "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
    ],
    "outline-style": [
    "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
    ],
    "cursor": [
    "none", "copy", "auto", "crosshair", "default", "pointer", "move", "vertical-text", "cell", "context-menu",
    "alias", "progress", "no-drop", "not-allowed", "-webkit-zoom-in", "-webkit-zoom-out", "e-resize", "ne-resize",
    "nw-resize", "n-resize", "se-resize", "sw-resize", "s-resize", "w-resize", "ew-resize", "ns-resize",
    "nesw-resize", "nwse-resize", "col-resize", "row-resize", "text", "wait", "help", "all-scroll", "-webkit-grab",
    "-webkit-grabbing"
    ],
    "border-width": [
    "medium", "thick", "thin"
    ],
    "size": [
    "a3", "a4", "a5", "b4", "b5", "landscape", "ledger", "legal", "letter", "portrait"
    ],
    "background-size": [
    "contain", "cover"
    ],
    "direction": [
    "ltr", "rtl"
    ],
    "marquee-direction": [
    "left", "right", "auto", "reverse", "forwards", "backwards", "ahead", "up", "down"
    ],
    "enable-background": [
    "accumulate", "new"
    ],
    "float": [
    "none", "left", "right"
    ],
    "overflow-y": [
    "hidden", "auto", "visible", "overlay", "scroll"
    ],
    "margin-bottom-collapse": [
    "collapse", "separate", "discard"
    ],
    "box-reflect": [
    "left", "right", "above", "below"
    ],
    "overflow": [
    "hidden", "auto", "visible", "overlay", "scroll"
    ],
    "text-rendering": [
    "auto", "optimizespeed", "optimizelegibility", "geometricprecision"
    ],
    "text-align": [
    "-webkit-auto", "left", "right", "center", "justify", "-webkit-left", "-webkit-right", "-webkit-center"
    ],
    "list-style-position": [
    "outside", "inside"
    ],
    "margin-bottom": [
    "auto"
    ],
    "color-interpolation": [
    "linearrgb"
    ],
    "background-origin": [
    "border-box", "content-box", "padding-box"
    ],
    "word-wrap": [
    "normal", "break-word"
    ],
    "font-weight": [
    "normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"
    ],
    "margin-before-collapse": [
    "collapse", "separate", "discard"
    ],
    "text-overline-width": [
    "normal", "medium", "auto", "thick", "thin"
    ],
    "text-transform": [
    "none", "capitalize", "uppercase", "lowercase"
    ],
    "border-right-style": [
    "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
    ],
    "border-left-style": [
    "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
    ],
    "-webkit-text-emphasis": [
    "circle", "filled", "open", "dot", "double-circle", "triangle", "sesame"
    ],
    "font-style": [
    "italic", "oblique", "normal"
    ],
    "speak": [
    "none", "normal", "spell-out", "digits", "literal-punctuation", "no-punctuation"
    ],
    "text-line-through": [
    "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave", "continuous",
    "skip-white-space"
    ],
    "border-top-color" : colorKeywords,
    "border-right-color" : colorKeywords,
    "border-bottom-color" : colorKeywords,
    "border-left-color" : colorKeywords,
    "border-color" : colorKeywords,
    "text-overline-color" : colorKeywords,
    "background-color" : colorKeywords,
    "-webkit-text-emphasis-color" : colorKeywords,
    "outline-color" : colorKeywords.concat(["invert"]),
    "text-underline-color" : colorKeywords,
    "color" : colorKeywords,
    "color-rendering": [
    "auto", "optimizespeed", "optimizequality"
    ],
    "list-style-type": [
    "none", "disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-indic", "binary", "bengali",
    "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "kannada", "lower-hexadecimal", "lao", "malayalam",
    "mongolian", "myanmar", "octal", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "upper-hexadecimal",
    "lower-roman", "upper-roman", "lower-greek", "lower-alpha", "lower-latin", "upper-alpha", "upper-latin", "afar",
    "ethiopic-halehame-aa-et", "ethiopic-halehame-aa-er", "amharic", "ethiopic-halehame-am-et", "amharic-abegede",
    "ethiopic-abegede-am-et", "cjk-earthly-branch", "cjk-heavenly-stem", "ethiopic", "ethiopic-halehame-gez",
    "ethiopic-abegede", "ethiopic-abegede-gez", "hangul-consonant", "hangul", "lower-norwegian", "oromo",
    "ethiopic-halehame-om-et", "sidama", "ethiopic-halehame-sid-et", "somali", "ethiopic-halehame-so-et", "tigre",
    "ethiopic-halehame-tig", "tigrinya-er", "ethiopic-halehame-ti-er", "tigrinya-er-abegede",
    "ethiopic-abegede-ti-er", "tigrinya-et", "ethiopic-halehame-ti-et", "tigrinya-et-abegede",
    "ethiopic-abegede-ti-et", "upper-greek", "upper-norwegian", "asterisks", "footnotes", "hebrew", "armenian",
    "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "hiragana", "katakana", "hiragana-iroha",
    "katakana-iroha"
    ],
    "-webkit-text-combine": [
    "none", "horizontal"
    ],
    "outline": [
    "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
    ],
    "font": [
    "caption", "icon", "menu", "message-box", "small-caption", "-webkit-mini-control", "-webkit-small-control",
    "-webkit-control", "status-bar", "italic", "oblique", "small-caps", "normal", "bold", "bolder", "lighter",
    "100", "200", "300", "400", "500", "600", "700", "800", "900", "xx-small", "x-small", "small", "medium",
    "large", "x-large", "xx-large", "-webkit-xxx-large", "smaller", "larger", "serif", "sans-serif", "cursive",
    "fantasy", "monospace", "-webkit-body"
    ],
    "dominant-baseline": [
    "middle", "auto", "central", "text-before-edge", "text-after-edge", "ideographic", "alphabetic", "hanging",
    "mathematical", "use-script", "no-change", "reset-size"
    ],
    "display": [
    "none", "inline", "block", "list-item", "run-in", "compact", "inline-block", "table", "inline-table",
    "table-row-group", "table-header-group", "table-footer-group", "table-row", "table-column-group",
    "table-column", "table-cell", "table-caption", "-webkit-box", "-webkit-inline-box", "-wap-marquee"
    ],
    "-webkit-text-emphasis-position": [
    "over", "under"
    ],
    "image-rendering": [
    "auto", "optimizespeed", "optimizequality"
    ],
    "alignment-baseline": [
    "baseline", "middle", "auto", "before-edge", "after-edge", "central", "text-before-edge", "text-after-edge",
    "ideographic", "alphabetic", "hanging", "mathematical"
    ],
    "outline-width": [
    "medium", "thick", "thin"
    ],
    "text-line-through-width": [
    "normal", "medium", "auto", "thick", "thin"
    ],
    "box-align": [
    "baseline", "center", "stretch", "start", "end"
    ],
    "border-right-width": [
    "medium", "thick", "thin"
    ],
    "border-top-style": [
    "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
    ],
    "line-height": [
    "normal"
    ],
    "text-overflow": [
    "clip", "ellipsis"
    ],
    "box-direction": [
    "normal", "reverse"
    ],
    "margin-after-collapse": [
    "collapse", "separate", "discard"
    ],
    "page-break-before": [
    "left", "right", "auto", "always", "avoid"
    ],
    "-webkit-hyphens": [
    "none", "auto", "manual"
    ],
    "border-image": [
    "repeat", "stretch"
    ],
    "text-decoration": [
    "blink", "line-through", "overline", "underline"
    ],
    "position": [
    "absolute", "fixed", "relative", "static"
    ],
    "font-family": [
    "serif", "sans-serif", "cursive", "fantasy", "monospace", "-webkit-body"
    ],
    "text-overflow-mode": [
    "clip", "ellipsis"
    ],
    "border-bottom-style": [
    "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
    ],
    "unicode-bidi": [
    "normal", "bidi-override", "embed"
    ],
    "clip-rule": [
    "nonzero", "evenodd"
    ],
    "margin-left": [
    "auto"
    ],
    "margin-top": [
    "auto"
    ],
    "zoom": [
    "document", "reset"
    ],
    "text-overline-style": [
    "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
    ],
    "max-width": [
    "none"
    ],
    "empty-cells": [
    "hide", "show"
    ],
    "pointer-events": [
    "none", "all", "auto", "visible", "visiblepainted", "visiblefill", "visiblestroke", "painted", "fill", "stroke"
    ],
    "letter-spacing": [
    "normal"
    ],
    "background-clip": [
    "border-box", "content-box", "padding-box"
    ],
    "-webkit-font-smoothing": [
    "none", "auto", "antialiased", "subpixel-antialiased"
    ],
    "border": [
    "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
    ],
    "font-size": [
    "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "-webkit-xxx-large", "smaller",
    "larger"
    ],
    "font-variant": [
    "small-caps", "normal"
    ],
    "vertical-align": [
    "baseline", "middle", "sub", "super", "text-top", "text-bottom", "top", "bottom", "-webkit-baseline-middle"
    ],
    "marquee-style": [
    "none", "scroll", "slide", "alternate"
    ],
    "white-space": [
    "normal", "nowrap", "pre", "pre-line", "pre-wrap"
    ],
    "text-underline-width": [
    "normal", "medium", "auto", "thick", "thin"
    ],
    "box-lines": [
    "single", "multiple"
    ],
    "page-break-after": [
    "left", "right", "auto", "always", "avoid"
    ],
    "clip-path": [
    "none"
    ],
    "margin": [
    "auto"
    ],
    "marquee-repetition": [
    "infinite"
    ],
    "margin-right": [
    "auto"
    ],
    "-webkit-text-emphasis-style": [
    "circle", "filled", "open", "dot", "double-circle", "triangle", "sesame"
    ]
};