css_dataset/
autoprefixable.rs

1//! Properties, property values, pseudo classes and pseudo elements that can be
2//! prefixed by [Autoprefixer](https://github.com/postcss/autoprefixer).
3//!
4//! Copied from [Stylelint](https://github.com/stylelint/stylelint/blob/main/lib/utils/isAutoprefixable.js).
5
6/// Autoprefixable properties.
7pub static PROPERTIES: [&str; 142] = [
8    "align-content",
9    "align-items",
10    "align-self",
11    "animation",
12    "animation-delay",
13    "animation-direction",
14    "animation-duration",
15    "animation-fill-mode",
16    "animation-iteration-count",
17    "animation-name",
18    "animation-play-state",
19    "animation-timing-function",
20    "appearance",
21    "backdrop-filter",
22    "backface-visibility",
23    "background-clip",
24    "background-origin",
25    "background-size",
26    "border-block-end",
27    "border-block-start",
28    "border-bottom-left-radius",
29    "border-bottom-right-radius",
30    "border-image",
31    "border-inline-end",
32    "border-inline-start",
33    "border-radius",
34    "border-top-left-radius",
35    "border-top-right-radius",
36    "box-decoration-break",
37    "box-shadow",
38    "box-sizing",
39    "break-after",
40    "break-before",
41    "break-inside",
42    "clip-path",
43    "color-adjust",
44    "column-count",
45    "column-fill",
46    "column-gap",
47    "column-rule",
48    "column-rule-color",
49    "column-rule-style",
50    "column-rule-width",
51    "column-span",
52    "column-width",
53    "columns",
54    "filter",
55    "flex",
56    "flex-basis",
57    "flex-direction",
58    "flex-flow",
59    "flex-grow",
60    "flex-shrink",
61    "flex-wrap",
62    "flow-from",
63    "flow-into",
64    "font-feature-settings",
65    "font-kerning",
66    "font-language-override",
67    "font-variant-ligatures",
68    "grid-area",
69    "grid-column",
70    "grid-column-align",
71    "grid-column-end",
72    "grid-column-start",
73    "grid-row",
74    "grid-row-align",
75    "grid-row-end",
76    "grid-row-start",
77    "grid-template",
78    "grid-template-areas",
79    "grid-template-columns",
80    "grid-template-rows",
81    "hyphens",
82    "image-rendering",
83    "justify-content",
84    "margin-block-end",
85    "margin-block-start",
86    "margin-inline-end",
87    "margin-inline-start",
88    "mask",
89    "mask-border",
90    "mask-border-outset",
91    "mask-border-repeat",
92    "mask-border-slice",
93    "mask-border-source",
94    "mask-border-width",
95    "mask-clip",
96    "mask-composite",
97    "mask-image",
98    "mask-origin",
99    "mask-position",
100    "mask-repeat",
101    "mask-size",
102    "object-fit",
103    "object-position",
104    "order",
105    "overscroll-behavior",
106    "padding-block-end",
107    "padding-block-start",
108    "padding-inline-end",
109    "padding-inline-start",
110    "perspective",
111    "perspective-origin",
112    "place-self",
113    "region-fragment",
114    "scroll-snap-coordinate",
115    "scroll-snap-destination",
116    "scroll-snap-points-x",
117    "scroll-snap-points-y",
118    "scroll-snap-type",
119    "shape-image-threshold",
120    "shape-margin",
121    "shape-outside",
122    "tab-size",
123    "text-align-last",
124    "text-decoration",
125    "text-decoration-color",
126    "text-decoration-line",
127    "text-decoration-skip",
128    "text-decoration-skip-ink",
129    "text-decoration-style",
130    "text-emphasis",
131    "text-emphasis-color",
132    "text-emphasis-position",
133    "text-emphasis-style",
134    "text-orientation",
135    "text-overflow",
136    "text-size-adjust",
137    "text-spacing",
138    "touch-action",
139    "transform",
140    "transform-origin",
141    "transform-style",
142    "transition",
143    "transition-delay",
144    "transition-duration",
145    "transition-property",
146    "transition-timing-function",
147    "user-select",
148    "writing-mode",
149    // Not a standard property, just from `-ms-interpolation-mode`.
150    "interpolation-mode",
151];
152
153/// Autoprefixable pseudo classes. All items are starting with vendor prefix.
154pub static PSEUDO_CLASSES: [&str; 10] = [
155    ":-moz-any-link",
156    ":-moz-full-screen",
157    ":-moz-placeholder",
158    ":-moz-placeholder-shown",
159    ":-moz-read-only",
160    ":-moz-read-write",
161    ":-ms-fullscreen",
162    ":-ms-input-placeholder",
163    ":-webkit-any-link",
164    ":-webkit-full-screen",
165];
166
167/// Autoprefixable pseudo elements. All items are starting with vendor prefix.
168pub static PSEUDO_ELEMENTS: [&str; 5] = [
169    "::-moz-placeholder",
170    "::-moz-selection",
171    "::-ms-input-placeholder",
172    "::-webkit-backdrop",
173    "::-webkit-input-placeholder",
174];
175
176/// Autoprefixable at-rules. All items are starting with `@` and vendor prefix, except `@resolution`.
177pub static AT_RULES: [&str; 8] = [
178    "@-khtml-keyframes",
179    "@-moz-keyframes",
180    "@-ms-keyframes",
181    "@-ms-viewport",
182    "@-o-keyframes",
183    "@-o-viewport",
184    "@-webkit-keyframes",
185    "@resolution",
186];
187
188/// Autoprefixable property values. All items are starting with vendor prefix.
189pub static PROPERTY_VALUES: [&str; 56] = [
190    "-moz-available",
191    "-moz-box",
192    "-moz-calc",
193    "-moz-crisp-edges",
194    "-moz-element",
195    "-moz-fit-content",
196    "-moz-grab",
197    "-moz-grabbing",
198    "-moz-inline-box",
199    "-moz-isolate",
200    "-moz-isolate-override",
201    "-moz-linear-gradient",
202    "-moz-max-content",
203    "-moz-min-content",
204    "-moz-plaintext",
205    "-moz-radial-gradient",
206    "-moz-repeating-linear-gradient",
207    "-moz-repeating-radial-gradient",
208    "-moz-zoom-in",
209    "-moz-zoom-out",
210    "-ms-flexbox",
211    "-ms-grid",
212    "-ms-inline-flexbox",
213    "-ms-inline-grid",
214    "-ms-linear-gradient",
215    "-ms-radial-gradient",
216    "-ms-repeating-linear-gradient",
217    "-ms-repeating-radial-gradient",
218    "-o-linear-gradient",
219    "-o-pixelated",
220    "-o-radial-gradient",
221    "-o-repeating-linear-gradient",
222    "-o-repeating-radial-gradient",
223    "-webkit-box",
224    "-webkit-calc",
225    "-webkit-cross-fade",
226    "-webkit-fill-available",
227    "-webkit-filter",
228    "-webkit-fit-content",
229    "-webkit-flex",
230    "-webkit-grab",
231    "-webkit-grabbing",
232    "-webkit-image-set",
233    "-webkit-inline-box",
234    "-webkit-inline-flex",
235    "-webkit-isolate",
236    "-webkit-linear-gradient",
237    "-webkit-max-content",
238    "-webkit-min-content",
239    "-webkit-optimize-contrast",
240    "-webkit-radial-gradient",
241    "-webkit-repeating-linear-gradient",
242    "-webkit-repeating-radial-gradient",
243    "-webkit-sticky",
244    "-webkit-zoom-in",
245    "-webkit-zoom-out",
246];