Skip to main content

stylex_constants/constants/
long_hand_logical.rs

1use phf::phf_set;
2
3// Using MDN data as a source of truth to populate the above sets
4// by group in alphabetical order:
5
6pub static LONG_HAND_LOGICAL: phf::Set<&'static str> = phf_set! {
7    // Composition and Blending
8  "background-blend-mode",
9  "isolation",
10  "mix-blend-mode",
11
12  // CSS Animations
13  "animation-composition",
14  "animation-delay",
15  "animation-direction",
16  "animation-duration",
17  "animation-fill-mode",
18  "animation-iteration-count",
19  "animation-name",
20  "animation-play-state",
21  "animation-range-end",
22  "animation-range-start",
23  "animation-timing-function",
24  "animation-timeline",
25
26  "scroll-timeline-axis",
27  "scroll-timeline-name",
28
29  "timeline-scope",
30
31  "view-timeline-axis",
32  "view-timeline-inset",
33  "view-timeline-name",
34
35  // CSS Backgrounds and Borders
36  "background-attachment",
37  "background-clip",
38  "background-color",
39  "background-image",
40  "background-origin",
41  "background-repeat",
42  "background-size",
43  "background-position-x",
44  "background-position-y",
45
46  "border-block-color", // Logical Properties
47  "border-block-stylex", // Logical Properties
48  "border-block-width", // Logical Properties
49  "border-block-start-color", // Logical Properties
50  "border-block-start-style", // Logical Properties
51  "border-block-start-width", // Logical Properties
52  "border-block-end-color", // Logical Properties
53  "border-block-end-style", // Logical Properties
54  "border-block-end-width", // Logical Properties
55  "border-inline-start-color", // Logical Properties
56  "border-inline-start-style", // Logical Properties
57  "border-inline-start-width", // Logical Properties
58  "border-inline-end-color", // Logical Properties
59  "border-inline-end-style", // Logical Properties
60  "border-inline-end-width", // Logical Properties
61
62  "border-image-outset",
63  "border-image-repeat",
64  "border-image-slice",
65  "border-image-source",
66  "border-image-width",
67
68  "border-start-end-radius", // Logical Properties
69  "border-start-start-radius", // Logical Properties
70  "border-end-end-radius", // Logical Properties
71  "border-end-start-radius", // Logical Properties
72
73  "corner-start-start-shape", // Logical Properties
74  "corner-start-end-shape", // Logical Properties
75  "corner-end-start-shape", // Logical Properties
76  "corner-end-end-shape", // Logical Properties
77
78  "box-shadow",
79
80  // CSS Basic User Interface
81  "accent-color",
82  "appearance",
83  "aspect-ratio",
84
85  "caret-color",
86  "caret-shape",
87
88  "cursor",
89  "ime-mode",
90  "input-security",
91
92  "outline-color",
93  "outline-offset",
94  "outline-style",
95  "outline-width",
96
97  "pointer-events",
98  "resize", // horizontal, vertical, block, inline, both
99  "text-overflow",
100  "user-select",
101
102  // CSS Box Alignment
103  "grid-row-gap", // alias for `row-gap`
104  "row-gap",
105  "grid-column-gap", // alias for `column-gap`
106  "column-gap",
107
108  "align-content",
109  "justify-content",
110
111  "align-items",
112  "justify-items",
113
114  "align-self",
115  "justify-self",
116
117  // CSS Box Model
118  "box-sizing",
119
120  "block-size", // Logical Properties
121  "inline-size", // Logical Properties
122
123  "max-block-size", // Logical Properties
124  "max-inline-size", // Logical Properties
125  "min-block-size", // Logical Properties
126  "min-inline-size", // Logical Properties
127
128  "margin-block-start", // Logical Properties
129  "margin-block-end", // Logical Properties
130  "margin-inline-start", // Logical Properties
131  "margin-inline-end", // Logical Properties
132
133  "margin-trim",
134
135  "overscroll-behavior-block",
136  "overscroll-behavior-inline",
137
138  "padding-block-start", // Logical Properties
139  "padding-block-end", // Logical Properties
140  "padding-inline-start", // Logical Properties
141  "padding-inline-end", // Logical Properties
142
143  "visibility",
144
145  // CSS Color
146  "color",
147  "color-scheme",
148  "forced-color-adjust",
149  "opacity",
150  "print-color-adjust",
151
152  // CSS Columns
153  "column-count",
154  "column-width",
155
156  "column-fill",
157  "column-span",
158
159  "column-rule-color",
160  "column-rule-style",
161  "column-rule-width",
162
163  // CSS Containment
164  "contain",
165
166  "contain-intrinsic-block-size",
167  "contain-intrinsic-width",
168  "contain-intrinsic-height",
169  "contain-intrinsic-inline-size",
170
171  "container-name",
172  "container-type",
173
174  "content-visibility",
175
176  // CSS Counter Styles
177  "counter-increment",
178  "counter-reset",
179  "counter-set",
180
181  // CSS Display
182  "display",
183
184  // CSS Flexible Box Layout
185  "flex-basis",
186  "flex-grow",
187  "flex-shrink",
188
189  "flex-direction",
190  "flex-wrap",
191
192  "order",
193
194  // CSS Fonts
195  "font-family",
196  "font-size",
197  "font-stretch",
198  "font-style",
199  "font-weight",
200  "line-height",
201  "font-variant-alternates",
202  "font-variant-caps",
203  "font-variant-east-asian",
204  "font-variant-emoji",
205  "font-variant-ligatures",
206  "font-variant-numeric",
207  "font-variant-position",
208
209  "font-feature-settings",
210  "font-kerning",
211  "font-language-override",
212  "font-optical-sizing",
213  "font-palette",
214  "font-variation-settings",
215  "font-size-adjust",
216  "font-smooth", // Non-standard
217  "font-synthesis-position",
218  "font-synthesis-small-caps",
219  "font-synthesis-style",
220  "font-synthesis-weight",
221
222  "line-height-step",
223
224  // CSS Fragmentation
225  "box-decoration-break",
226  "break-after",
227  "break-before",
228  "break-inside",
229  "orphans",
230  "widows",
231
232  // CSS Generated Content
233  "content",
234  "quotes",
235
236  // CSS Grid Layout
237  "grid-auto-flow",
238  "grid-auto-rows",
239  "grid-auto-columns",
240  "grid-template-columns",
241  "grid-template-rows",
242
243  "grid-row-start",
244  "grid-row-end",
245  "grid-column-start",
246  "grid-column-end",
247
248  "align-tracks",
249  "justify-tracks",
250  "masonry-auto-flow",
251
252  // CSS Images
253  "image-orientation",
254  "image-rendering",
255  "image-resolution",
256  "object-fit",
257  "object-position",
258
259  // CSS Inline
260  "initial-letter",
261  "initial-letter-align",
262
263  // CSS Lists and Counters
264  "list-style-image",
265  "list-style-position",
266  "list-style-type",
267
268  // CSS Masking
269  "clip", // @deprecated
270  "clip-path",
271
272  "mask-clip",
273  "mask-composite",
274  "mask-image",
275  "mask-mode",
276  "mask-origin",
277  "mask-position",
278  "mask-repeat",
279  "mask-size",
280
281  "mask-type",
282
283  "mask-border-mode",
284  "mask-border-outset",
285  "mask-border-repeat",
286  "mask-border-slice",
287  "mask-border-source",
288  "mask-border-width",
289
290  // CSS Miscellaneous
291  "text-rendering",
292
293  // CSS Motion Path
294  "offset-anchor",
295  "offset-distance",
296  "offset-path",
297  "offset-position",
298  "offset-rotate",
299
300  // CSS Overflow
301  "-webkit-box-orient",
302  "-webkit-line-clamp",
303  // "block-overflow",
304
305  "overflow-block",
306  "overflow-inline",
307
308  "overflow-clip-margin", // partial support
309
310  "scroll-gutter",
311  "scroll-behavior",
312
313  // CSS Pages
314  "page",
315  "page-break-after",
316  "page-break-before",
317  "page-break-inside",
318
319  // CSS Positioning
320  "inset-block-start", // Logical Properties
321  "inset-block-end", // Logical Properties
322  "inset-inline-start", // Logical Properties
323  "inset-inline-end", // Logical Properties
324
325  "clear",
326  "float",
327  // "overlay",
328  "position",
329  "z-index",
330
331  // CSS Ruby
332  "ruby-align",
333  "ruby-merge",
334  "ruby-position",
335
336  // CSS Scroll Anchoring
337  "overflow-anchor",
338
339  // CSS Scroll Snap
340  "scroll-margin-block-start",
341  "scroll-margin-block-end",
342  "scroll-margin-inline-start",
343  "scroll-margin-inline-end",
344
345  "scroll-padding-block-start",
346  "scroll-padding-block-end",
347  "scroll-padding-inline-start",
348  "scroll-padding-inline-end",
349
350  "scroll-snap-align",
351  // "scroll-snap-coordinate",
352  // "scroll-snap-destination",
353  // "scroll-snap-points-x",
354  // "scroll-snap-points-y",
355  "scroll-snap-stop",
356  // "scroll-snap-type-x",
357  // "scroll-snap-type-y",
358
359  // CSS Scrollbars
360  "scrollbar-color",
361  "scrollbar-width",
362
363  // CSS Shapes
364  "shape-image-threshold",
365  "shape-margin",
366  "shape-outside",
367
368  // CSS Speech
369  "azimuth",
370
371  // CSS Table
372  "border-collapse",
373  "border-spacing",
374  "caption-side",
375  "empty-cells",
376  "table-layout",
377  "vertical-align",
378
379  // CSS Text Decoration
380  "text-decoration-color",
381  "text-decoration-line",
382  "text-decoration-skip",
383  "text-decoration-skip-ink",
384  "text-decoration-style",
385  "text-decoration-thickness",
386
387  "text-emphasis-color",
388  "text-emphasis-position",
389  "text-emphasis-style",
390  "text-shadow",
391  "text-underline-offset",
392  "text-underline-position",
393
394  // CSS Text
395  "hanging-punctuation",
396  "hyphenate-character",
397  "hyphenate-limit-chars",
398  "hyphens",
399  "letter-spacing",
400  "line-break",
401  "overflow-wrap",
402  "paint-order",
403  "tab-size",
404  "text-align",
405  "text-align-last",
406  "text-indent",
407  "text-justify",
408  "text-size-adjust",
409  "text-transform",
410  "text-wrap",
411  "white-space",
412  "white-space-collapse",
413  // "white-space-trim",
414  "word-break",
415  "word-spacing",
416  "word-wrap",
417
418  // CSS Transforms
419  "backface-visibility",
420  "perspective",
421  "perspective-origin",
422  "rotate",
423  "scale",
424  "transform",
425  "transform-box",
426  "transform-origin",
427  "transform-style",
428  "translate",
429
430  // CSS Transitions
431  // "transition-behavior",
432  "transition-delay",
433  "transition-duration",
434  "transition-property",
435  "transition-timing-function",
436
437  // CSS View Transitions
438  "view-transition-name",
439
440  // CSS Will Change
441  "will-change",
442
443  // CSS Writing Modes
444  "direction",
445  "text-combine-upright",
446  "text-orientation",
447  "unicode-bidi",
448  "writing-mode",
449
450  // CSS Filter Effects
451  "backdrop-filter",
452  "filter",
453
454  // MathML
455  "math-depth",
456  "math-shift",
457  "math-style",
458
459  // CSS Pointer Events
460  "touch-action"
461};