Unprefix -webkit-font-feature-settings
[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) && 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-weight",
96     "glyph-orientation-horizontal", "glyph-orientation-vertical", "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     "overflow-x": [
287         "hidden", "auto", "visible", "overlay", "scroll", "marquee"
288     ],
289     "overflow-y": [
290         "hidden", "auto", "visible", "overlay", "scroll", "marquee", "-webkit-paged-x", "-webkit-paged-y"
291     ],
292     "overflow": [
293         "hidden", "auto", "visible", "overlay", "scroll", "marquee", "-webkit-paged-x", "-webkit-paged-y"
294     ],
295     "margin-bottom-collapse": [
296         "collapse",  "separate", "discard"
297     ],
298     "-webkit-box-reflect": [
299         "none", "left", "right", "above", "below"
300     ],
301     "text-rendering": [
302         "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision"
303     ],
304     "text-align": [
305         "-webkit-auto", "left", "right", "center", "justify", "-webkit-left", "-webkit-right", "-webkit-center", "-webkit-match-parent", "start", "end"
306     ],
307     "list-style-position": [
308         "outside", "inside"
309     ],
310     "margin-bottom": [
311         "auto"
312     ],
313     "color-interpolation": [
314         "linearrgb"
315     ],
316     "word-wrap": [
317         "normal", "break-word"
318     ],
319     "font-weight": [
320         "normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"
321     ],
322     "font-synthesis": [
323         "none", "weight", "style"
324     ],
325     "margin-before-collapse": [
326         "collapse", "separate", "discard"
327     ],
328     "text-overline-width": [
329         "normal", "medium", "auto", "thick", "thin", "calc()", "-webkit-calc()"
330     ],
331     "text-transform": [
332         "none", "capitalize", "uppercase", "lowercase"
333     ],
334     "border-right-style": [
335         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
336     ],
337     "border-left-style": [
338         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
339     ],
340     "font-style": [
341         "italic", "oblique", "normal"
342     ],
343     "speak": [
344         "none", "normal", "spell-out", "digits", "literal-punctuation", "no-punctuation"
345     ],
346     "text-line-through": [
347         "none", "dotted", "dashed", "solid", "double", "dot-dash", "dot-dot-dash", "wave", "continuous", "skip-white-space"
348     ],
349     "color-rendering": [
350         "auto", "optimizeSpeed", "optimizeQuality"
351     ],
352     "list-style-type": [
353         "none", "disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-indic", "binary", "bengali",
354         "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "kannada", "lower-hexadecimal", "lao", "malayalam",
355         "mongolian", "myanmar", "octal", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "upper-hexadecimal",
356         "lower-roman", "upper-roman", "lower-greek", "lower-alpha", "lower-latin", "upper-alpha", "upper-latin", "afar",
357         "ethiopic-halehame-aa-et", "ethiopic-halehame-aa-er", "amharic", "ethiopic-halehame-am-et", "amharic-abegede",
358         "ethiopic-abegede-am-et", "cjk-earthly-branch", "cjk-heavenly-stem", "ethiopic", "ethiopic-halehame-gez",
359         "ethiopic-abegede", "ethiopic-abegede-gez", "hangul-consonant", "hangul", "lower-norwegian", "oromo",
360         "ethiopic-halehame-om-et", "sidama", "ethiopic-halehame-sid-et", "somali", "ethiopic-halehame-so-et", "tigre",
361         "ethiopic-halehame-tig", "tigrinya-er", "ethiopic-halehame-ti-er", "tigrinya-er-abegede",
362         "ethiopic-abegede-ti-er", "tigrinya-et", "ethiopic-halehame-ti-et", "tigrinya-et-abegede",
363         "ethiopic-abegede-ti-et", "upper-greek", "upper-norwegian", "asterisks", "footnotes", "hebrew", "armenian",
364         "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "hiragana", "katakana", "hiragana-iroha",
365         "katakana-iroha"
366     ],
367     "-webkit-text-combine": [
368         "none", "horizontal"
369     ],
370     "outline": [
371         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
372     ],
373     "font": [
374         "caption", "icon", "menu", "message-box", "small-caption", "-webkit-mini-control", "-webkit-small-control",
375         "-webkit-control", "status-bar", "italic", "oblique", "small-caps", "normal", "bold", "bolder", "lighter",
376         "100", "200", "300", "400", "500", "600", "700", "800", "900", "xx-small", "x-small", "small", "medium",
377         "large", "x-large", "xx-large", "-webkit-xxx-large", "smaller", "larger", "serif", "sans-serif", "cursive",
378         "fantasy", "monospace", "-webkit-body", "-webkit-pictograph", "-apple-system", "-apple-system-monospaced-numbers",
379         "-apple-system-headline", "-apple-system-body", "-apple-system-subheadline", "-apple-system-footnote",
380         "-apple-system-caption1", "-apple-system-caption2", "-apple-system-short-headline", "-apple-system-short-body",
381         "-apple-system-short-subheadline", "-apple-system-short-footnote", "-apple-system-short-caption1",
382         "-apple-system-tall-body", "-apple-system-title1", "-apple-system-title2", "-apple-system-title3"
383     ],
384     "dominant-baseline": [
385         "middle", "auto", "central", "text-before-edge", "text-after-edge", "ideographic", "alphabetic", "hanging",
386         "mathematical", "use-script", "no-change", "reset-size"
387     ],
388     "display": [
389         "none", "inline", "block", "list-item", "compact", "inline-block", "table", "inline-table",
390         "table-row-group", "table-header-group", "table-footer-group", "table-row", "table-column-group",
391         "table-column", "table-cell", "table-caption", "-webkit-box", "-webkit-inline-box", "-wap-marquee",
392         "flex", "inline-flex", "-webkit-grid", "-webkit-inline-grid"
393     ],
394     "image-rendering": [
395         "auto", "optimizeSpeed", "optimizeQuality", "-webkit-crisp-edges", "-webkit-optimize-contrast"
396     ],
397     "alignment-baseline": [
398         "baseline", "middle", "auto", "before-edge", "after-edge", "central", "text-before-edge", "text-after-edge",
399         "ideographic", "alphabetic", "hanging", "mathematical"
400     ],
401     "outline-width": [
402         "medium", "thick", "thin", "calc()", "-webkit-calc()"
403     ],
404     "text-line-through-width": [
405         "normal", "medium", "auto", "thick", "thin"
406     ],
407     "box-align": [
408         "baseline", "center", "stretch", "start", "end"
409     ],
410     "box-shadow": [
411         "none"
412     ],
413     "text-shadow": [
414         "none"
415     ],
416     "-webkit-box-shadow": [
417         "none"
418     ],
419     "border-right-width": [
420         "medium", "thick", "thin"
421     ],
422     "border-top-style": [
423         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
424     ],
425     "line-height": [
426         "normal"
427     ],
428     "counter-increment": [
429         "none"
430     ],
431     "counter-reset": [
432         "none"
433     ],
434     "text-overflow": [
435         "clip", "ellipsis"
436     ],
437     "-webkit-box-direction": [
438         "normal", "reverse"
439     ],
440     "margin-after-collapse": [
441         "collapse", "separate", "discard"
442     ],
443     "page-break-after": [
444         "left", "right", "auto", "always", "avoid"
445     ],
446     "page-break-before": [
447         "left", "right", "auto", "always", "avoid"
448     ],
449     "page-break-inside": [
450         "auto", "avoid"
451     ],
452     "-webkit-column-break-after": [
453         "left", "right", "auto", "always", "avoid"
454     ],
455     "-webkit-column-break-before": [
456         "left", "right", "auto", "always", "avoid"
457     ],
458     "-webkit-column-break-inside": [
459         "auto", "avoid"
460     ],
461     "-webkit-hyphens": [
462         "none", "auto", "manual"
463     ],
464     "border-image": [
465         "repeat", "stretch", "url()", "linear-gradient()", "radial-gradient()", "repeating-linear-gradient()", "repeating-radial-gradient()", "-webkit-canvas()", "-webkit-cross-fade()", "-webkit-image-set()"
466     ],
467     "border-image-repeat": [
468         "repeat", "stretch", "space", "round"
469     ],
470     "-webkit-mask-box-image-repeat": [
471         "repeat", "stretch", "space", "round"
472     ],
473     "position": [
474         "absolute", "fixed", "relative", "static", "-webkit-sticky"
475     ],
476     "font-family": [
477         "serif", "sans-serif", "cursive", "fantasy", "monospace", "-webkit-body", "-webkit-pictograph",
478         "-apple-system", "-apple-system-monospaced-numbers", "-apple-system-headline", "-apple-system-body",
479         "-apple-system-subheadline", "-apple-system-footnote", "-apple-system-caption1", "-apple-system-caption2",
480         "-apple-system-short-headline", "-apple-system-short-body", "-apple-system-short-subheadline",
481         "-apple-system-short-footnote", "-apple-system-short-caption1", "-apple-system-tall-body",
482         "-apple-system-title1", "-apple-system-title2", "-apple-system-title3"
483     ],
484     "text-overflow-mode": [
485         "clip", "ellipsis"
486     ],
487     "border-bottom-style": [
488         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
489     ],
490     "unicode-bidi": [
491         "normal", "bidi-override", "embed", "-webkit-plaintext", "-webkit-isolate", "-webkit-isolate-override"
492     ],
493     "clip-rule": [
494         "nonzero", "evenodd"
495     ],
496     "margin-left": [
497         "auto"
498     ],
499     "margin-top": [
500         "auto"
501     ],
502     "zoom": [
503         "normal", "document", "reset"
504     ],
505     "z-index": [
506         "auto"
507     ],
508     "width": [
509         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
510     ],
511     "height": [
512         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
513     ],
514     "max-width": [
515         "none", "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
516     ],
517     "min-width": [
518         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
519     ],
520     "max-height": [
521         "none", "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
522     ],
523     "min-height": [
524         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
525     ],
526     "-webkit-logical-width": [
527         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
528     ],
529     "-webkit-logical-height": [
530         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
531     ],
532     "-webkit-max-logical-width": [
533         "none", "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
534     ],
535     "-webkit-min-logical-width": [
536         "intrinsic", "min-intrinsic", "-webkit-min-content", "-webkit-max-content", "-webkit-fill-available", "-webkit-fit-content", "calc()", "-webkit-calc()"
537     ],
538     "-webkit-max-logical-height": [
539         "none", "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
540     ],
541     "-webkit-min-logical-height": [
542         "intrinsic", "min-intrinsic", "calc()", "-webkit-calc()"
543     ],
544     "empty-cells": [
545         "hide", "show"
546     ],
547     "pointer-events": [
548         "none", "all", "auto", "visible", "visiblepainted", "visiblefill", "visiblestroke", "painted", "fill", "stroke"
549     ],
550     "letter-spacing": [
551         "normal", "calc()", "-webkit-calc()"
552     ],
553     "word-spacing": [
554         "normal", "calc()", "-webkit-calc()"
555     ],
556     "-webkit-font-kerning": [
557         "auto", "normal", "none"
558     ],
559     "-webkit-font-smoothing": [
560         "none", "auto", "antialiased", "subpixel-antialiased"
561     ],
562     "border": [
563         "none", "hidden", "inset", "groove", "ridge", "outset", "dotted", "dashed", "solid", "double"
564     ],
565     "font-size": [
566         "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "-webkit-xxx-large", "smaller", "larger"
567     ],
568     "font-variant": [
569         "small-caps", "normal"
570     ],
571     "vertical-align": [
572         "baseline", "middle", "sub", "super", "text-top", "text-bottom", "top", "bottom", "-webkit-baseline-middle"
573     ],
574     "white-space": [
575         "normal", "nowrap", "pre", "pre-line", "pre-wrap"
576     ],
577     "word-break": [
578         "normal", "break-all", "break-word"
579     ],
580     "text-underline-width": [
581         "normal", "medium", "auto", "thick", "thin", "calc()", "-webkit-calc()"
582     ],
583     "text-indent": [
584         "-webkit-each-line", "-webkit-hanging"
585     ],
586     "-webkit-box-lines": [
587         "single", "multiple"
588     ],
589     "clip": [
590         "auto", "rect()"
591     ],
592     "clip-path": [
593         "none", "url()", "circle()", "ellipse()", "inset()", "polygon()", "margin-box", "border-box", "padding-box", "content-box"
594     ],
595     "-webkit-shape-outside": [
596         "none", "url()", "circle()", "ellipse()", "inset()", "polygon()", "margin-box", "border-box", "padding-box", "content-box"
597     ],
598     "orphans": [
599         "auto"
600     ],
601     "widows": [
602         "auto"
603     ],
604     "margin": [
605         "auto"
606     ],
607     "page": [
608         "auto"
609     ],
610     "perspective": [
611         "none"
612     ],
613     "perspective-origin": [
614         "none", "left", "right", "bottom", "top", "center"
615     ],
616     "-webkit-marquee-increment": [
617         "small", "large", "medium"
618     ],
619     "-webkit-marquee-direction": [
620         "left", "right", "auto", "reverse", "forwards", "backwards", "ahead", "up", "down"
621     ],
622     "-webkit-marquee-style": [
623         "none", "scroll", "slide", "alternate"
624     ],
625     "-webkit-marquee-repetition": [
626         "infinite"
627     ],
628     "-webkit-marquee-speed": [
629         "normal", "slow", "fast"
630     ],
631     "margin-right": [
632         "auto"
633     ],
634     "marquee-speed": [
635         "normal", "slow", "fast"
636     ],
637     "-webkit-text-emphasis": [
638         "circle", "filled", "open", "dot", "double-circle", "triangle", "sesame"
639     ],
640     "-webkit-text-emphasis-style": [
641         "circle", "filled", "open", "dot", "double-circle", "triangle", "sesame"
642     ],
643     "-webkit-text-emphasis-position": [
644         "over", "under", "left", "right"
645     ],
646     "transform": [
647         "none",
648         "scale()", "scaleX()", "scaleY()", "scale3d()", "rotate()", "rotateX()", "rotateY()", "rotateZ()", "rotate3d()", "skew()", "skewX()", "skewY()",
649         "translate()", "translateX()", "translateY()", "translateZ()", "translate3d()", "matrix()", "matrix3d()", "perspective()"
650     ],
651     "transform-style": [
652         "flat", "preserve-3d"
653     ],
654     "-webkit-cursor-visibility": [
655         "auto", "auto-hide"
656     ],
657     "text-decoration": [
658         "none", "underline", "overline", "line-through", "blink"
659     ],
660     "-webkit-text-decorations-in-effect": [
661         "none", "underline", "overline", "line-through", "blink"
662     ],
663     "-webkit-text-decoration-line": [
664         "none", "underline", "overline", "line-through", "blink"
665     ],
666     "-webkit-text-decoration-style": [
667         "solid", "double", "dotted", "dashed", "wavy"
668     ],
669     "-webkit-text-decoration-skip": [
670         "auto", "none", "objects", "ink"
671     ],
672     "-webkit-text-underline-position": [
673         "auto", "alphabetic", "under"
674     ],
675     "image-resolution": [
676         "from-image", "snap"
677     ],
678     "-webkit-blend-mode": [
679         "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "plus-darker", "plus-lighter", "hue", "saturation", "color", "luminosity",
680     ],
681     "mix-blend-mode": [
682         "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "plus-darker", "plus-lighter", "hue", "saturation", "color", "luminosity",
683     ],
684     "mix": [
685         "auto",
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         "clear", "copy", "destination", "source-over", "destination-over", "source-in", "destination-in", "source-out", "destination-out", "source-atop", "destination-atop", "xor"
688     ],
689     "geometry": [
690         "detached", "attached", "grid()"
691     ],
692     "overflow-wrap": [
693         "normal", "break-word"
694     ],
695     "transition": [
696         "none", "ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end", "steps()", "cubic-bezier()", "all", WebInspector.CSSKeywordCompletions.AllPropertyNamesPlaceholder
697     ],
698     "transition-timing-function": [
699         "ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end", "steps()", "cubic-bezier()"
700     ],
701     "transition-property": [
702         "all", "none", WebInspector.CSSKeywordCompletions.AllPropertyNamesPlaceholder
703     ],
704     "-webkit-column-progression": [
705         "normal", "reverse"
706     ],
707     "-webkit-box-decoration-break": [
708         "slice", "clone"
709     ],
710     "align-content": [
711         "auto",
712         "baseline", "last-baseline",
713         "space-between", "space-around", "space-evenly", "stretch",
714         "center", "start", "end", "flex-start", "flex-end", "left", "right",
715         "true", "safe"
716     ],
717     "justify-content": [
718         "auto",
719         "baseline", "last-baseline", "space-between", "space-around", "space-evenly", "stretch",
720         "center", "start", "end", "flex-start", "flex-end", "left", "right",
721         "true", "safe"
722     ],
723     "align-items": [
724         "auto", "stretch",
725         "baseline", "last-baseline",
726         "center", "start", "end", "self-start", "self-end", "flex-start", "flex-end", "left", "right",
727         "true", "safe"
728     ],
729     "align-self": [
730         "auto", "stretch",
731         "baseline", "last-baseline",
732         "center", "start", "end", "self-start", "self-end", "flex-start", "flex-end", "left", "right",
733         "true", "safe"
734     ],
735     "justify-items": [
736         "auto", "stretch",
737         "baseline", "last-baseline",
738         "center", "start", "end", "self-start", "self-end", "flex-start", "flex-end", "left", "right",
739         "true", "safe"
740     ],
741     "justify-self": [
742         "auto", "stretch",
743         "baseline", "last-baseline",
744         "center", "start", "end", "self-start", "self-end", "flex-start", "flex-end", "left", "right",
745         "true", "safe"
746     ],
747     "flex-direction": [
748         "row", "row-reverse", "column", "column-reverse"
749     ],
750     "flex-wrap": [
751         "nowrap", "wrap", "wrap-reverse"
752     ],
753     "flex-flow": [
754         "row", "row-reverse", "column", "column-reverse",
755         "nowrap", "wrap", "wrap-reverse"
756     ],
757     "flex": [
758         "none"
759     ],
760     "flex-basis": [
761         "auto"
762     ],
763     "-webkit-grid-after": [
764         "auto"
765     ],
766     "-webkit-grid-before": [
767         "auto"
768     ],
769     "-webkit-grid-end": [
770         "auto"
771     ],
772     "-webkit-grid-start": [
773         "auto"
774     ],
775     "-webkit-grid-auto-flow": [
776         "row", "column", "dense"
777     ],
778     "-webkit-grid-column": [
779         "auto"
780     ],
781     "-webkit-grid-row": [
782         "auto"
783     ],
784     "-webkit-grid-columns": [
785         "auto", "-webkit-max-content", "-webkit-min-content"
786     ],
787     "-webkit-grid-rows": [
788         "auto", "-webkit-max-content", "-webkit-min-content"
789     ],
790     "-webkit-ruby-position": [
791         "after", "before", "inter-character"
792     ],
793     "-webkit-text-align-last": [
794         "auto", "start", "end", "left", "right", "center", "justify"
795     ],
796     "-webkit-text-justify": [
797         "auto", "none", "inter-word", "inter-ideograph", "inter-cluster", "distribute", "kashida"
798     ],
799     "max-zoom": [
800         "auto"
801     ],
802     "min-zoom": [
803         "auto"
804     ],
805     "orientation": [
806         "auto", "portait", "landscape"
807     ],
808     "user-zoom": [
809         "zoom", "fixed"
810     ],
811     "-webkit-app-region": [
812         "drag", "no-drag"
813     ],
814     "-webkit-line-break": [
815         "auto", "loose", "normal", "strict", "after-white-space"
816     ],
817     "-webkit-background-composite": [
818         "clear", "copy", "source-over", "source-in", "source-out", "source-atop", "destination-over", "destination-in", "destination-out", "destination-atop", "xor", "plus-darker", "plus-lighter"
819     ],
820     "-webkit-mask-composite": [
821         "clear", "copy", "source-over", "source-in", "source-out", "source-atop", "destination-over", "destination-in", "destination-out", "destination-atop", "xor", "plus-darker", "plus-lighter"
822     ],
823     "-webkit-animation-direction": [
824         "normal", "alternate", "reverse", "alternate-reverse"
825     ],
826     "-webkit-animation-fill-mode": [
827         "none", "forwards", "backwards", "both"
828     ],
829     "-webkit-animation-iteration-count": [
830         "infinite"
831     ],
832     "-webkit-animation-play-state": [
833         "paused", "running"
834     ],
835     "-webkit-animation-timing-function": [
836         "ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end", "steps()", "cubic-bezier()"
837     ],
838     "-webkit-column-span": [
839         "all", "none", "calc()", "-webkit-calc()"
840     ],
841     "-webkit-region-break-after": [
842         "auto", "always", "avoid", "left", "right"
843     ],
844     "-webkit-region-break-before": [
845         "auto", "always", "avoid", "left", "right"
846     ],
847     "-webkit-region-break-inside": [
848         "auto", "avoid"
849     ],
850     "-webkit-region-overflow": [
851         "auto", "break"
852     ],
853     "-webkit-backface-visibility": [
854         "visible", "hidden"
855     ],
856     "resize": [
857         "none", "both", "horizontal", "vertical", "auto"
858     ],
859     "caption-side": [
860         "top", "bottom", "left", "right"
861     ],
862     "box-sizing": [
863         "border-box", "content-box"
864     ],
865     "-webkit-alt": [
866         "attr()"
867     ],
868     "-webkit-border-fit": [
869         "border", "lines"
870     ],
871     "-webkit-line-align": [
872         "none", "edges"
873     ],
874     "-webkit-line-snap": [
875         "none", "baseline", "contain"
876     ],
877     "-webkit-nbsp-mode": [
878         "normal", "space"
879     ],
880     "-webkit-print-color-adjust": [
881         "exact", "economy"
882     ],
883     "-webkit-rtl-ordering": [
884         "logical", "visual"
885     ],
886     "-webkit-text-security": [
887         "disc", "circle", "square", "none"
888     ],
889     "-webkit-user-drag": [
890         "auto", "none", "element"
891     ],
892     "-webkit-user-modify": [
893         "read-only", "read-write", "read-write-plaintext-only"
894     ],
895     "-webkit-text-stroke-width": [
896         "medium", "thick", "thin", "calc()", "-webkit-calc()"
897     ],
898     "-webkit-border-start-width": [
899         "medium", "thick", "thin", "calc()", "-webkit-calc()"
900     ],
901     "-webkit-border-end-width": [
902         "medium", "thick", "thin", "calc()", "-webkit-calc()"
903     ],
904     "-webkit-border-before-width": [
905         "medium", "thick", "thin", "calc()", "-webkit-calc()"
906     ],
907     "-webkit-border-after-width": [
908         "medium", "thick", "thin", "calc()", "-webkit-calc()"
909     ],
910     "-webkit-column-rule-width": [
911         "medium", "thick", "thin", "calc()", "-webkit-calc()"
912     ],
913     "-webkit-aspect-ratio": [
914         "auto", "from-dimensions", "from-intrinsic", "/"
915     ],
916     "filter": [
917         "none", "grayscale()", "sepia()", "saturate()", "hue-rotate()", "invert()", "opacity()", "brightness()", "contrast()", "blur()", "drop-shadow()", "custom()"
918     ],
919     "-webkit-backdrop-filter": [
920         "none", "grayscale()", "sepia()", "saturate()", "hue-rotate()", "invert()", "opacity()", "brightness()", "contrast()", "blur()", "drop-shadow()", "custom()"
921     ],
922     "-webkit-column-count": [
923         "auto", "calc()", "-webkit-calc()"
924     ],
925     "-webkit-column-gap": [
926         "normal", "calc()", "-webkit-calc()"
927     ],
928     "-webkit-column-axis": [
929         "horizontal", "vertical", "auto"
930     ],
931     "-webkit-column-width": [
932         "auto", "calc()", "-webkit-calc()"
933     ],
934     "-webkit-column-fill": [
935         "auto", "balance"
936     ],
937     "-webkit-hyphenate-character": [
938         "none"
939     ],
940     "-webkit-hyphenate-limit-after": [
941         "auto"
942     ],
943     "-webkit-hyphenate-limit-before": [
944         "auto"
945     ],
946     "-webkit-hyphenate-limit-lines": [
947         "no-limit"
948     ],
949     "-webkit-line-grid": [
950         "none"
951     ],
952     "-webkit-locale": [
953         "auto"
954     ],
955     "-webkit-text-orientation": [
956         "sideways", "sideways-right", "vertical-right", "upright"
957     ],
958     "-webkit-line-box-contain": [
959         "block", "inline", "font", "glyphs", "replaced", "inline-box", "none", "initial"
960     ],
961     "font-feature-settings": [
962         "normal"
963     ],
964     "-webkit-font-variant-ligatures": [
965         "normal", "common-ligatures", "no-common-ligatures", "discretionary-ligatures", "no-discretionary-ligatures", "historical-ligatures", "no-historical-ligatures"
966     ],
967     /*
968     "-webkit-appearance": [
969         "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"
970     ],
971     */
972     "-webkit-animation-trigger": [
973         "auto", "container-scroll()"
974     ],
975     "-webkit-scroll-snap-type": [
976         "none", "mandatory", "proximity"
977     ],
978     "-webkit-scroll-snap-points-x": [
979         "elements", "repeat()"
980     ],
981     "-webkit-scroll-snap-points-y": [
982         "elements", "repeat()"
983     ],
984     "-webkit-scroll-snap-destination": [
985         "none", "left", "right", "bottom", "top", "center"
986     ],
987     "-webkit-scroll-snap-coordinate": [
988         "none", "left", "right", "bottom", "top", "center"
989     ],
990
991     // iOS Properties
992     "-webkit-text-size-adjust": [
993         "none", "auto"
994     ],
995     "-webkit-touch-callout": [
996         "default", "none"
997     ],
998     "-webkit-overflow-scrolling": [
999         "auto", "touch"
1000     ]
1001 };