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