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