25f10d1e9ee04f64bb1b6846c222143177611ac3
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Models / CSSKeywordCompletions.js
1 /*
2  * Copyright (C) 2011 Google Inc. All rights reserved.
3  * Copyright (C) 2013 Apple Inc. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *     * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *     * Redistributions in binary form must reproduce the above
12  * copyright notice, this list of conditions and the following disclaimer
13  * in the documentation and/or other materials provided with the
14  * distribution.
15  *     * Neither the name of Google Inc. nor the names of its
16  * contributors may be used to endorse or promote products derived from
17  * this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30  */
31
32 WebInspector.CSSKeywordCompletions = {};
33
34 WebInspector.CSSKeywordCompletions.forProperty = function(propertyName)
35 {
36     var acceptedKeywords = ["initial"];
37     var isNotPrefixed = propertyName.charAt(0) !== "-";
38
39     if (propertyName in WebInspector.CSSKeywordCompletions._propertyKeywordMap)
40         acceptedKeywords = acceptedKeywords.concat(WebInspector.CSSKeywordCompletions._propertyKeywordMap[propertyName]);
41     else if (isNotPrefixed && ("-webkit-" + propertyName) in WebInspector.CSSKeywordCompletions._propertyKeywordMap)
42         acceptedKeywords = acceptedKeywords.concat(WebInspector.CSSKeywordCompletions._propertyKeywordMap["-webkit-" + propertyName]);
43
44     if (propertyName in WebInspector.CSSKeywordCompletions._colorAwareProperties)
45         acceptedKeywords = acceptedKeywords.concat(WebInspector.CSSKeywordCompletions._colors);
46     else if (isNotPrefixed && ("-webkit-" + propertyName) in WebInspector.CSSKeywordCompletions._colorAwareProperties)
47         acceptedKeywords = acceptedKeywords.concat(WebInspector.CSSKeywordCompletions._colors);
48
49     // Only suggest "inherit" on inheritable properties even though it is valid on all properties.
50     if (propertyName in WebInspector.CSSKeywordCompletions.InheritedProperties)
51         acceptedKeywords.push("inherit");
52     else if (isNotPrefixed && ("-webkit-" + propertyName) in WebInspector.CSSKeywordCompletions.InheritedProperties)
53         acceptedKeywords.push("inherit");
54
55     if (acceptedKeywords.contains(WebInspector.CSSKeywordCompletions.AllPropertyNamesPlaceholder)) {
56         acceptedKeywords.remove(WebInspector.CSSKeywordCompletions.AllPropertyNamesPlaceholder);
57         acceptedKeywords = acceptedKeywords.concat(WebInspector.CSSCompletions.cssNameCompletions.values);
58     }
59
60     return new WebInspector.CSSCompletions(acceptedKeywords, true);
61 }
62
63 WebInspector.CSSKeywordCompletions.isColorAwareProperty = function(propertyName)
64 {
65     return WebInspector.CSSKeywordCompletions._colorAwareProperties[propertyName] === true;
66 }
67
68 WebInspector.CSSKeywordCompletions.AllPropertyNamesPlaceholder = "__all-properties__";
69
70 WebInspector.CSSKeywordCompletions.InheritedProperties = [
71     "azimuth", "border-collapse", "border-spacing", "caption-side", "clip-rule", "color", "color-interpolation",
72     "color-interpolation-filters", "color-rendering", "cursor", "direction", "elevation", "empty-cells", "fill",
73     "fill-opacity", "fill-rule", "font", "font-family", "font-size", "font-style", "font-variant", "font-weight",
74     "glyph-orientation-horizontal", "glyph-orientation-vertical", "image-rendering", "kerning", "letter-spacing",
75     "line-height", "list-style", "list-style-image", "list-style-position", "list-style-type", "marker", "marker-end",
76     "marker-mid", "marker-start", "orphans", "pitch", "pitch-range", "pointer-events", "quotes", "resize", "richness",
77     "shape-rendering", "speak", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "stroke",
78     "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity",
79     "stroke-width", "tab-size", "text-align", "text-anchor", "text-decoration", "text-indent", "text-rendering",
80     "text-shadow", "text-transform", "visibility", "voice-family", "volume", "white-space", "widows", "word-break",
81     "word-spacing", "word-wrap", "writing-mode", "-webkit-aspect-ratio", "-webkit-border-horizontal-spacing",
82     "-webkit-border-vertical-spacing", "-webkit-box-direction", "-webkit-color-correction", "-webkit-font-feature-settings",
83     "-webkit-font-kerning", "-webkit-font-smoothing", "-webkit-font-variant-ligatures",
84     "-webkit-hyphenate-character", "-webkit-hyphenate-limit-after", "-webkit-hyphenate-limit-before",
85     "-webkit-hyphenate-limit-lines", "-webkit-hyphens", "-webkit-line-align", "-webkit-line-box-contain",
86     "-webkit-line-break", "-webkit-line-grid", "-webkit-line-snap", "-webkit-locale", "-webkit-nbsp-mode",
87     "-webkit-print-color-adjust", "-webkit-rtl-ordering", "-webkit-text-combine", "-webkit-text-decorations-in-effect",
88     "-webkit-text-emphasis", "-webkit-text-emphasis-color", "-webkit-text-emphasis-position", "-webkit-text-emphasis-style",
89     "-webkit-text-fill-color", "-webkit-text-orientation", "-webkit-text-security", "-webkit-text-size-adjust",
90     "-webkit-text-stroke", "-webkit-text-stroke-color", "-webkit-text-stroke-width", "-webkit-user-modify",
91     "-webkit-user-select", "-webkit-writing-mode", "-webkit-cursor-visibility", "image-orientation", "image-resolution",
92     "overflow-wrap", "-webkit-text-align-last", "-webkit-text-justify", "-webkit-ruby-position", "-webkit-text-decoration-line",
93
94     // iOS Properties
95     "-webkit-overflow-scrolling", "-webkit-touch-callout", "-webkit-tap-highlight-color"
96 ].keySet();
97
98 WebInspector.CSSKeywordCompletions._colors = [
99     "aqua", "black", "blue", "fuchsia", "gray", "green", "lime", "maroon", "navy", "olive", "orange", "purple", "red",
100     "silver", "teal", "white", "yellow", "transparent", "currentcolor", "grey", "aliceblue", "antiquewhite",
101     "aquamarine", "azure", "beige", "bisque", "blanchedalmond", "blueviolet", "brown", "burlywood", "cadetblue",
102     "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan",
103     "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange",
104     "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey",
105     "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
106     "floralwhite", "forestgreen", "gainsboro", "ghostwhite", "gold", "goldenrod", "greenyellow", "honeydew", "hotpink",
107     "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue",
108     "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
109     "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow",
110     "limegreen", "linen", "magenta", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen",
111     "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream",
112     "mistyrose", "moccasin", "navajowhite", "oldlace", "olivedrab", "orangered", "orchid", "palegoldenrod", "palegreen",
113     "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "rebeccapurple", "rosybrown",
114     "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "skyblue", "slateblue",
115     "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "thistle", "tomato", "turquoise", "violet",
116     "wheat", "whitesmoke", "yellowgreen", "rgb()", "rgba()", "hsl()", "hsla()"
117 ];
118
119 WebInspector.CSSKeywordCompletions._colorAwareProperties = [
120     "background", "background-color", "background-image", "border", "border-color", "border-top", "border-right", "border-bottom",
121     "border-left", "border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "box-shadow", "color",
122     "fill", "outline", "outline-color", "stroke", "text-line-through", "text-line-through-color", "text-overline", "text-overline-color",
123     "text-shadow", "text-underline", "text-underline-color", "-webkit-box-shadow", "-webkit-column-rule", "-webkit-column-rule-color",
124     "-webkit-text-emphasis", "-webkit-text-emphasis-color", "-webkit-text-fill-color", "-webkit-text-stroke", "-webkit-text-stroke-color",
125     "-webkit-text-decoration-color",
126
127     // iOS Properties
128     "-webkit-tap-highlight-color"
129 ].keySet();
130
131 WebInspector.CSSKeywordCompletions._propertyKeywordMap = {
132     "table-layout": [
133         "auto", "fixed"
134     ],
135     "visibility": [
136         "hidden", "visible", "collapse"
137     ],
138     "background-repeat": [
139         "repeat", "repeat-x", "repeat-y", "no-repeat", "space", "round"
140     ],
141     "background-blend-mode": [
142         "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity",
143     ],
144     "text-underline": [
145         "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
146     ],
147     "content": [
148         "list-item", "close-quote", "no-close-quote", "no-open-quote", "open-quote", "attr()", "counter()", "counters()", "url()", "linear-gradient()", "radial-gradient()", "repeating-linear-gradient()", "repeating-radial-gradient()", "-webkit-canvas()", "-webkit-cross-fade()", "-webkit-image-set()"
149     ],
150     "list-style-image": [
151         "none", "url()", "linear-gradient()", "radial-gradient()", "repeating-linear-gradient()", "repeating-radial-gradient()", "-webkit-canvas()", "-webkit-cross-fade()", "-webkit-image-set()"
152     ],
153     "clear": [
154         "none", "left", "right", "both"
155     ],
156     "stroke-linejoin": [
157         "round", "miter", "bevel"
158     ],
159     "baseline-shift": [
160         "baseline", "sub", "super"
161     ],
162     "border-bottom-width": [
163         "medium", "thick", "thin", "calc()", "-webkit-calc()"
164     ],
165     "margin-top-collapse": [
166         "collapse", "separate", "discard"
167     ],
168     "-webkit-box-orient": [
169         "horizontal", "vertical", "inline-axis", "block-axis"
170     ],
171     "font-stretch": [
172         "normal", "wider", "narrower", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed",
173         "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"
174     ],
175     "-webkit-color-correction": [
176         "default", "srgb"
177     ],
178     "border-left-width": [
179         "medium", "thick", "thin", "calc()", "-webkit-calc()"
180     ],
181     "-webkit-writing-mode": [
182         "lr", "rl", "tb", "lr-tb", "rl-tb", "tb-rl", "horizontal-tb", "vertical-rl", "vertical-lr", "horizontal-bt"
183     ],
184     "text-line-through-mode": [
185         "continuous", "skip-white-space"
186     ],
187     "text-overline-mode": [
188         "continuous", "skip-white-space"
189     ],
190     "text-underline-mode": [
191         "continuous", "skip-white-space"
192     ],
193     "text-line-through-style": [
194         "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
195     ],
196     "text-overline-style": [
197         "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
198     ],
199     "text-underline-style": [
200         "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave"
201     ],
202     "border-collapse": [
203         "collapse", "separate"
204     ],
205     "border-top-width": [
206         "medium", "thick", "thin", "calc()", "-webkit-calc()"
207     ],
208     "outline-color": [
209         "invert", "-webkit-focus-ring-color"
210     ],
211     "outline-style": [
212         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double", "auto"
213     ],
214     "cursor": [
215         "none", "copy", "auto", "crosshair", "default", "pointer", "move", "vertical-text", "cell", "context-menu",
216         "alias", "progress", "no-drop", "not-allowed", "-webkit-zoom-in", "-webkit-zoom-out", "e-resize", "ne-resize",
217         "nw-resize", "n-resize", "se-resize", "sw-resize", "s-resize", "w-resize", "ew-resize", "ns-resize",
218         "nesw-resize", "nwse-resize", "col-resize", "row-resize", "text", "wait", "help", "all-scroll", "-webkit-grab",
219         "-webkit-grabbing", "url()", "-webkit-image-set()"
220     ],
221     "border-width": [
222         "medium", "thick", "thin", "calc()", "-webkit-calc()"
223     ],
224     "size": [
225         "a3", "a4", "a5", "b4", "b5", "landscape", "ledger", "legal", "letter", "portrait"
226     ],
227     "background-image": [
228         "url()", "linear-gradient()", "radial-gradient()", "repeating-linear-gradient()", "repeating-radial-gradient()", "-webkit-canvas()", "-webkit-cross-fade()", "-webkit-image-set()"
229     ],
230     "background-size": [
231         "contain", "cover"
232     ],
233     "direction": [
234         "ltr", "rtl"
235     ],
236     "enable-background": [
237         "accumulate", "new"
238     ],
239     "float": [
240         "none", "left", "right"
241     ],
242     "overflow-x": [
243         "hidden", "auto", "visible", "overlay", "scroll", "marquee"
244     ],
245     "overflow-y": [
246         "hidden", "auto", "visible", "overlay", "scroll", "marquee", "-webkit-paged-x", "-webkit-paged-y"
247     ],
248     "overflow": [
249         "hidden", "auto", "visible", "overlay", "scroll", "marquee", "-webkit-paged-x", "-webkit-paged-y"
250     ],
251     "margin-bottom-collapse": [
252         "collapse",  "separate", "discard"
253     ],
254     "-webkit-box-reflect": [
255         "none", "left", "right", "above", "below"
256     ],
257     "text-rendering": [
258         "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision"
259     ],
260     "text-align": [
261         "-webkit-auto", "left", "right", "center", "justify", "-webkit-left", "-webkit-right", "-webkit-center", "-webkit-match-parent", "start", "end"
262     ],
263     "list-style-position": [
264         "outside", "inside"
265     ],
266     "margin-bottom": [
267         "auto"
268     ],
269     "color-interpolation": [
270         "linearrgb"
271     ],
272     "background-origin": [
273         "border-box", "content-box", "padding-box"
274     ],
275     "word-wrap": [
276         "normal", "break-word"
277     ],
278     "font-weight": [
279         "normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"
280     ],
281     "margin-before-collapse": [
282         "collapse", "separate", "discard"
283     ],
284     "text-overline-width": [
285         "normal", "medium", "auto", "thick", "thin", "calc()", "-webkit-calc()"
286     ],
287     "text-transform": [
288         "none", "capitalize", "uppercase", "lowercase"
289     ],
290     "border-right-style": [
291         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
292     ],
293     "border-left-style": [
294         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
295     ],
296     "font-style": [
297         "italic", "oblique", "normal"
298     ],
299     "speak": [
300         "none", "normal", "spell-out", "digits", "literal-punctuation", "no-punctuation"
301     ],
302     "text-line-through": [
303         "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave", "continuous",
304         "skip-white-space"
305     ],
306     "color-rendering": [
307         "auto", "optimizeSpeed", "optimizeQuality"
308     ],
309     "list-style-type": [
310         "none", "disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-indic", "binary", "bengali",
311         "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "kannada", "lower-hexadecimal", "lao", "malayalam",
312         "mongolian", "myanmar", "octal", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "upper-hexadecimal",
313         "lower-roman", "upper-roman", "lower-greek", "lower-alpha", "lower-latin", "upper-alpha", "upper-latin", "afar",
314         "ethiopic-halehame-aa-et", "ethiopic-halehame-aa-er", "amharic", "ethiopic-halehame-am-et", "amharic-abegede",
315         "ethiopic-abegede-am-et", "cjk-earthly-branch", "cjk-heavenly-stem", "ethiopic", "ethiopic-halehame-gez",
316         "ethiopic-abegede", "ethiopic-abegede-gez", "hangul-consonant", "hangul", "lower-norwegian", "oromo",
317         "ethiopic-halehame-om-et", "sidama", "ethiopic-halehame-sid-et", "somali", "ethiopic-halehame-so-et", "tigre",
318         "ethiopic-halehame-tig", "tigrinya-er", "ethiopic-halehame-ti-er", "tigrinya-er-abegede",
319         "ethiopic-abegede-ti-er", "tigrinya-et", "ethiopic-halehame-ti-et", "tigrinya-et-abegede",
320         "ethiopic-abegede-ti-et", "upper-greek", "upper-norwegian", "asterisks", "footnotes", "hebrew", "armenian",
321         "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "hiragana", "katakana", "hiragana-iroha",
322         "katakana-iroha"
323     ],
324     "-webkit-text-combine": [
325         "none", "horizontal"
326     ],
327     "outline": [
328         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
329     ],
330     "font": [
331         "caption", "icon", "menu", "message-box", "small-caption", "-webkit-mini-control", "-webkit-small-control",
332         "-webkit-control", "status-bar", "italic", "oblique", "small-caps", "normal", "bold", "bolder", "lighter",
333         "100", "200", "300", "400", "500", "600", "700", "800", "900", "xx-small", "x-small", "small", "medium",
334         "large", "x-large", "xx-large", "-webkit-xxx-large", "smaller", "larger", "serif", "sans-serif", "cursive",
335         "fantasy", "monospace", "-webkit-body", "-webkit-pictograph", "-webkit-system-font", "-apple-system-headline",
336         "-apple-system-body", "-apple-system-subheadline", "-apple-system-footnote", "-apple-system-caption1",
337         "-apple-system-caption2", "-apple-system-short-headline", "-apple-system-short-body",
338         "-apple-system-short-subheadline", "-apple-system-short-footnote", "-apple-system-short-caption1",
339         "-apple-system-tall-body"
340     ],
341     "dominant-baseline": [
342         "middle", "auto", "central", "text-before-edge", "text-after-edge", "ideographic", "alphabetic", "hanging",
343         "mathematical", "use-script", "no-change", "reset-size"
344     ],
345     "display": [
346         "none", "inline", "block", "list-item", "compact", "inline-block", "table", "inline-table",
347         "table-row-group", "table-header-group", "table-footer-group", "table-row", "table-column-group",
348         "table-column", "table-cell", "table-caption", "-webkit-box", "-webkit-inline-box", "-wap-marquee",
349         "-webkit-flex", "-webkit-inline-flex", "-webkit-grid", "-webkit-inline-grid"
350     ],
351     "image-rendering": [
352         "auto", "optimizeSpeed", "optimizeQuality", "-webkit-crisp-edges", "-webkit-optimize-contrast"
353     ],
354     "alignment-baseline": [
355         "baseline", "middle", "auto", "before-edge", "after-edge", "central", "text-before-edge", "text-after-edge",
356         "ideographic", "alphabetic", "hanging", "mathematical"
357     ],
358     "outline-width": [
359         "medium", "thick", "thin", "calc()", "-webkit-calc()"
360     ],
361     "text-line-through-width": [
362         "normal", "medium", "auto", "thick", "thin"
363     ],
364     "box-align": [
365         "baseline", "center", "stretch", "start", "end"
366     ],
367     "box-shadow": [
368         "none"
369     ],
370     "text-shadow": [
371         "none"
372     ],
373     "-webkit-box-shadow": [
374         "none"
375     ],
376     "border-right-width": [
377         "medium", "thick", "thin"
378     ],
379     "border-top-style": [
380         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
381     ],
382     "line-height": [
383         "normal"
384     ],
385     "counter-increment": [
386         "none"
387     ],
388     "counter-reset": [
389         "none"
390     ],
391     "text-overflow": [
392         "clip", "ellipsis"
393     ],
394     "-webkit-box-direction": [
395         "normal", "reverse"
396     ],
397     "margin-after-collapse": [
398         "collapse", "separate", "discard"
399     ],
400     "page-break-after": [
401         "left", "right", "auto", "always", "avoid"
402     ],
403     "page-break-before": [
404         "left", "right", "auto", "always", "avoid"
405     ],
406     "page-break-inside": [
407         "auto", "avoid"
408     ],
409     "-webkit-column-break-after": [
410         "left", "right", "auto", "always", "avoid"
411     ],
412     "-webkit-column-break-before": [
413         "left", "right", "auto", "always", "avoid"
414     ],
415     "-webkit-column-break-inside": [
416         "auto", "avoid"
417     ],
418     "-webkit-hyphens": [
419         "none", "auto", "manual"
420     ],
421     "border-image": [
422         "repeat", "stretch", "url()", "linear-gradient()", "radial-gradient()", "repeating-linear-gradient()", "repeating-radial-gradient()", "-webkit-canvas()", "-webkit-cross-fade()", "-webkit-image-set()"
423     ],
424     "border-image-repeat": [
425         "repeat", "stretch", "space", "round"
426     ],
427     "-webkit-mask-box-image-repeat": [
428         "repeat", "stretch", "space", "round"
429     ],
430     "position": [
431         "absolute", "fixed", "relative", "static", "-webkit-sticky"
432     ],
433     "font-family": [
434         "serif", "sans-serif", "cursive", "fantasy", "monospace", "-webkit-body", "-webkit-pictograph", "-webkit-system-font"
435     ],
436     "text-overflow-mode": [
437         "clip", "ellipsis"
438     ],
439     "border-bottom-style": [
440         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
441     ],
442     "unicode-bidi": [
443         "normal", "bidi-override", "embed", "-webkit-plaintext", "-webkit-isolate", "-webkit-isolate-override"
444     ],
445     "clip-rule": [
446         "nonzero", "evenodd"
447     ],
448     "margin-left": [
449         "auto"
450     ],
451     "margin-top": [
452         "auto"
453     ],
454     "zoom": [
455         "normal", "document", "reset"
456     ],
457     "z-index": [
458         "auto"
459     ],
460     "width": [
461         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
462     ],
463     "height": [
464         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
465     ],
466     "max-width": [
467         "none", "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
468     ],
469     "min-width": [
470         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
471     ],
472     "max-height": [
473         "none", "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
474     ],
475     "min-height": [
476         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
477     ],
478     "-webkit-logical-width": [
479         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
480     ],
481     "-webkit-logical-height": [
482         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
483     ],
484     "-webkit-max-logical-width": [
485         "none", "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
486     ],
487     "-webkit-min-logical-width": [
488         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
489     ],
490     "-webkit-max-logical-height": [
491         "none", "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
492     ],
493     "-webkit-min-logical-height": [
494         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
495     ],
496     "empty-cells": [
497         "hide", "show"
498     ],
499     "pointer-events": [
500         "none", "all", "auto", "visible", "visiblepainted", "visiblefill", "visiblestroke", "painted", "fill", "stroke"
501     ],
502     "letter-spacing": [
503         "normal", "calc()", "-webkit-calc()"
504     ],
505     "word-spacing": [
506         "normal", "calc()", "-webkit-calc()"
507     ],
508     "background-clip": [
509         "border-box", "content-box", "padding-box"
510     ],
511     "-webkit-font-kerning": [
512         "auto", "normal", "none"
513     ],
514     "-webkit-font-smoothing": [
515         "none", "auto", "antialiased", "subpixel-antialiased"
516     ],
517     "border": [
518         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
519     ],
520     "font-size": [
521         "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "-webkit-xxx-large", "smaller",
522         "larger"
523     ],
524     "font-variant": [
525         "small-caps", "normal"
526     ],
527     "vertical-align": [
528         "baseline", "middle", "sub", "super", "text-top", "text-bottom", "top", "bottom", "-webkit-baseline-middle"
529     ],
530     "white-space": [
531         "normal", "nowrap", "pre", "pre-line", "pre-wrap"
532     ],
533     "word-break": [
534         "normal", "break-all", "break-word"
535     ],
536     "text-underline-width": [
537         "normal", "medium", "auto", "thick", "thin", "calc()", "-webkit-calc()"
538     ],
539     "text-indent": [
540         "-webkit-each-line", "-webkit-hanging"
541     ],
542     "-webkit-box-lines": [
543         "single", "multiple"
544     ],
545     "clip": [
546         "auto", "rect()"
547     ],
548     "clip-path": [
549         "none", "url()", "circle()", "ellipse()", "inset()", "polygon()", "margin-box", "border-box", "padding-box", "content-box"
550     ],
551     "-webkit-shape-outside": [
552         "none", "url()", "circle()", "ellipse()", "inset()", "polygon()", "margin-box", "border-box", "padding-box", "content-box"
553     ],
554     "orphans": [
555         "auto"
556     ],
557     "widows": [
558         "auto"
559     ],
560     "margin": [
561         "auto"
562     ],
563     "page": [
564         "auto"
565     ],
566     "-webkit-marquee-increment": [
567         "small", "large", "medium"
568     ],
569     "-webkit-marquee-direction": [
570         "left", "right", "auto", "reverse", "forwards", "backwards", "ahead", "up", "down"
571     ],
572     "-webkit-marquee-style": [
573         "none", "scroll", "slide", "alternate"
574     ],
575     "-webkit-marquee-repetition": [
576         "infinite"
577     ],
578     "-webkit-marquee-speed": [
579         "normal", "slow", "fast"
580     ],
581     "margin-right": [
582         "auto"
583     ],
584     "marquee-speed": [
585         "normal", "slow", "fast"
586     ],
587     "-webkit-text-emphasis": [
588         "circle", "filled", "open", "dot", "double-circle", "triangle", "sesame"
589     ],
590     "-webkit-text-emphasis-style": [
591         "circle", "filled", "open", "dot", "double-circle", "triangle", "sesame"
592     ],
593     "-webkit-text-emphasis-position": [
594         "over", "under"
595     ],
596     "-webkit-transform": [
597         "none",
598         "scale()", "scaleX()", "scaleY()", "scale3d()", "rotate()", "rotateX()", "rotateY()", "rotateZ()", "rotate3d()", "skew()", "skewX()", "skewY()",
599         "translate()", "translateX()", "translateY()", "translateZ()", "translate3d()", "matrix()", "matrix3d()", "perspective()"
600     ],
601     "-webkit-cursor-visibility": [
602         "auto", "auto-hide"
603     ],
604     "text-decoration": [
605         "none", "underline", "overline", "line-through", "blink"
606     ],
607     "-webkit-text-decorations-in-effect": [
608         "none", "underline", "overline", "line-through", "blink",
609     ],
610     "-webkit-text-decoration-line": [
611         "none", "underline", "overline", "line-through", "blink",
612     ],
613     "-webkit-text-decoration-style": [
614         "solid", "double", "dotted", "dashed", "wavy"
615     ],
616     "-webkit-text-underline-position": [
617         "auto", "alphabetic", "under"
618     ],
619     "image-resolution": [
620         "from-image", "snap"
621     ],
622     "-webkit-blend-mode": [
623         "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity",
624     ],
625     "mix": [
626         "auto",
627         "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity",
628         "clear", "copy", "destination", "source-over", "destination-over", "source-in", "destination-in", "source-out", "destination-out", "source-atop", "destination-atop", "xor"
629     ],
630     "geometry": [
631         "detached", "attached", "grid()"
632     ],
633     "overflow-wrap": [
634         "normal", "break-word"
635     ],
636     "transition": [
637         "none", "ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end", "steps()", "cubic-bezier()", "all", WebInspector.CSSKeywordCompletions.AllPropertyNamesPlaceholder
638     ],
639     "transition-timing-function": [
640         "ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end", "steps()", "cubic-bezier()"
641     ],
642     "transition-property": [
643         "all", "none", WebInspector.CSSKeywordCompletions.AllPropertyNamesPlaceholder
644     ],
645     "-webkit-column-progression": [
646         "normal", "reverse"
647     ],
648     "-webkit-box-decoration-break": [
649         "slice", "clone"
650     ],
651     "-webkit-align-content": [
652         "flex-start", "flex-end", "center", "space-between", "space-around", "stretch"
653     ],
654     "-webkit-align-items": [
655         "flex-start", "flex-end", "center", "baseline", "stretch"
656     ],
657     "-webkit-align-self": [
658         "auto", "flex-start", "flex-end", "center", "baseline", "stretch"
659     ],
660     "-webkit-justify-content": [
661         "flex-start", "flex-end", "center", "space-between", "space-around"
662     ],
663     "-webkit-flex-direction": [
664         "row", "row-reverse", "column", "column-reverse"
665     ],
666     "-webkit-flex-wrap": [
667         "nowrap", "wrap", "wrap-reverse"
668     ],
669     "-webkit-flex-flow": [
670         "row", "row-reverse", "column", "column-reverse",
671         "nowrap", "wrap", "wrap-reverse"
672     ],
673     "-webkit-flex": [
674         "none"
675     ],
676     "-webkit-flex-basis": [
677         "auto"
678     ],
679     "-webkit-grid-after": [
680         "auto"
681     ],
682     "-webkit-grid-before": [
683         "auto"
684     ],
685     "-webkit-grid-end": [
686         "auto"
687     ],
688     "-webkit-grid-start": [
689         "auto"
690     ],
691     "-webkit-grid-auto-flow": [
692         "none", "rows", "columns"
693     ],
694     "-webkit-grid-column": [
695         "auto"
696     ],
697     "-webkit-grid-row": [
698         "auto"
699     ],
700     "-webkit-grid-columns": [
701         "auto", "-webkit-max-content", "-webkit-min-content"
702     ],
703     "-webkit-grid-rows": [
704         "auto", "-webkit-max-content", "-webkit-min-content"
705     ],
706     "-webkit-ruby-position": [
707         "after", "before"
708     ],
709     "-webkit-text-align-last": [
710         "auto", "start", "end", "left", "right", "center", "justify"
711     ],
712     "-webkit-text-justify": [
713         "auto", "none", "inter-word", "inter-ideograph", "inter-cluster", "distribute", "kashida"
714     ],
715     "max-zoom": [
716         "auto"
717     ],
718     "min-zoom": [
719         "auto"
720     ],
721     "orientation": [
722         "auto", "portait", "landscape"
723     ],
724     "user-zoom": [
725         "zoom", "fixed"
726     ],
727     "-webkit-app-region": [
728         "drag", "no-drag"
729     ],
730     "-webkit-line-break": [
731         "auto", "loose", "normal", "strict", "after-white-space"
732     ],
733     "-webkit-background-composite": [
734         "clear", "copy", "source-over", "source-in", "source-out", "source-atop", "destination-over", "destination-in", "destination-out", "destination-atop", "xor", "plus-darker", "plus-lighter"
735     ],
736     "-webkit-mask-composite": [
737         "clear", "copy", "source-over", "source-in", "source-out", "source-atop", "destination-over", "destination-in", "destination-out", "destination-atop", "xor", "plus-darker", "plus-lighter"
738     ],
739     "-webkit-animation-direction": [
740         "normal", "alternate", "reverse", "alternate-reverse"
741     ],
742     "-webkit-animation-fill-mode": [
743         "none", "forwards", "backwards", "both"
744     ],
745     "-webkit-animation-iteration-count": [
746         "infinite"
747     ],
748     "-webkit-animation-play-state": [
749         "paused", "running"
750     ],
751     "-webkit-animation-timing-function": [
752         "ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end", "steps()", "cubic-bezier()"
753     ],
754     "-webkit-column-span": [
755         "all", "none", "calc()", "-webkit-calc()"
756     ],
757     "-webkit-region-break-after": [
758         "auto", "always", "avoid", "left", "right"
759     ],
760     "-webkit-region-break-before": [
761         "auto", "always", "avoid", "left", "right"
762     ],
763     "-webkit-region-break-inside": [
764         "auto", "avoid"
765     ],
766     "-webkit-region-overflow": [
767         "auto", "break"
768     ],
769     "-webkit-backface-visibility": [
770         "visible", "hidden"
771     ],
772     "resize": [
773         "none", "both", "horizontal", "vertical", "auto"
774     ],
775     "caption-side": [
776         "top", "bottom", "left", "right"
777     ],
778     "box-sizing": [
779         "border-box", "content-box"
780     ],
781     "-webkit-border-fit": [
782         "border", "lines"
783     ],
784     "-webkit-line-align": [
785         "none", "edges"
786     ],
787     "-webkit-line-snap": [
788         "none", "baseline", "contain"
789     ],
790     "-webkit-nbsp-mode": [
791         "normal", "space"
792     ],
793     "-webkit-print-color-adjust": [
794         "exact", "economy"
795     ],
796     "-webkit-rtl-ordering": [
797         "logical", "visual"
798     ],
799     "-webkit-text-security": [
800         "disc", "circle", "square", "none"
801     ],
802     "-webkit-transform-style": [
803         "flat", "preserve-3d"
804     ],
805     "-webkit-user-drag": [
806         "auto", "none", "element"
807     ],
808     "-webkit-user-modify": [
809         "read-only", "read-write", "read-write-plaintext-only"
810     ],
811     "-webkit-text-stroke-width": [
812         "medium", "thick", "thin", "calc()", "-webkit-calc()"
813     ],
814     "-webkit-border-start-width": [
815         "medium", "thick", "thin", "calc()", "-webkit-calc()"
816     ],
817     "-webkit-border-end-width": [
818         "medium", "thick", "thin", "calc()", "-webkit-calc()"
819     ],
820     "-webkit-border-before-width": [
821         "medium", "thick", "thin", "calc()", "-webkit-calc()"
822     ],
823     "-webkit-border-after-width": [
824         "medium", "thick", "thin", "calc()", "-webkit-calc()"
825     ],
826     "-webkit-column-rule-width": [
827         "medium", "thick", "thin", "calc()", "-webkit-calc()"
828     ],
829     "-webkit-aspect-ratio": [
830         "none"
831     ],
832     "-webkit-filter": [
833         "none", "grayscale()", "sepia()", "saturate()", "hue-rotate()", "invert()", "opacity()", "brightness()", "contrast()", "blur()", "drop-shadow()", "custom()"
834     ],
835     "-webkit-perspective": [
836         "none"
837     ],
838     "-webkit-column-count": [
839         "auto", "calc()", "-webkit-calc()"
840     ],
841     "-webkit-column-gap": [
842         "normal", "calc()", "-webkit-calc()"
843     ],
844     "-webkit-column-axis": [
845         "horizontal", "vertical", "auto"
846     ],
847     "-webkit-column-width": [
848         "auto", "calc()", "-webkit-calc()"
849     ],
850     "-webkit-hyphenate-character": [
851         "none"
852     ],
853     "-webkit-hyphenate-limit-after": [
854         "auto"
855     ],
856     "-webkit-hyphenate-limit-before": [
857         "auto"
858     ],
859     "-webkit-hyphenate-limit-lines": [
860         "no-limit"
861     ],
862     "-webkit-line-grid": [
863         "none"
864     ],
865     "-webkit-locale": [
866         "auto"
867     ],
868     "-webkit-text-orientation": [
869         "sideways", "sideways-right", "vertical-right", "upright"
870     ],
871     "-webkit-line-box-contain": [
872         "block", "inline", "font", "glyphs", "replaced", "inline-box", "none", "initial"
873     ],
874     "-webkit-font-feature-settings": [
875         "normal"
876     ],
877     "-webkit-font-variant-ligatures": [
878         "normal", "common-ligatures", "no-common-ligatures", "discretionary-ligatures", "no-discretionary-ligatures", "historical-ligatures", "no-historical-ligatures"
879     ],
880     /*
881     "-webkit-appearance": [
882         "none", "checkbox", "radio", "push-button", "square-button", "button", "button-bevel", "default-button", "inner-spin-button", "-webkit-input-speech-button", "listbox", "listitem", "media-enter-fullscreen-button", "media-exit-fullscreen-button", "media-fullscreen-volume-slider", "media-fullscreen-volume-slider-thumb", "media-mute-button", "media-play-button", "media-overlay-play-button", "media-seek-back-button", "media-seek-forward-button", "media-rewind-button", "media-return-to-realtime-button", "media-toggle-closed-captions-button", "media-slider", "media-sliderthumb", "media-volume-slider-container", "media-volume-slider", "media-volume-sliderthumb", "media-volume-slider-mute-button", "media-controls-background", "media-controls-fullscreen-background", "media-current-time-display", "media-time-remaining-display", "menulist", "menulist-button", "menulist-text", "menulist-textfield", "meter", "progress-bar", "progress-bar-value", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "caret", "searchfield", "searchfield-decoration", "searchfield-results-decoration", "searchfield-results-button", "searchfield-cancel-button", "snapshotted-plugin-overlay", "textfield", "relevancy-level-indicator", "continuous-capacity-level-indicator", "discrete-capacity-level-indicator", "rating-level-indicator", "textarea"
883     ],
884     */
885
886     // iOS Properties
887     "-webkit-text-size-adjust": [
888         "none", "auto"
889     ],
890     "-webkit-touch-callout": [
891         "default", "none"
892     ],
893     "-webkit-overflow-scrolling": [
894         "auto", "touch"
895     ]
896 };