Skip to main content

stylex_constants/constants/
shorthands_of_shorthands.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 SHORTHANDS_OF_SHORTHANDS: phf::Set<&'static str> = phf_set! {
7// CSS Animations
8"animation",
9
10// CSS Backgrounds and Borders
11"background",
12
13"border", // OF SHORTHANDS!
14"border-block", // Logical Properties
15"border-inline", // Logical Properties
16
17// CSS Box Model
18"margin",
19
20"padding",
21
22// CSS Fonts
23"font",
24
25// CSS Grid Layout
26"grid",
27"grid-template",
28"grid-area",
29
30// CSS Miscellaneous
31"all", // avoid!
32
33// CSS Positioning
34"inset", // Logical Properties
35
36// CSS Scroll Snap
37"scroll-margin",
38
39"scroll-padding",
40};