Skip to content

Commit 002fe6e

Browse files
committed
Add new prop positioning
1 parent b47693f commit 002fe6e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

libs/css/src/constant.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,39 @@ pub(super) static GLOBAL_STYLE_PROPERTY: phf::Map<&str, &[&str]> = phf_map! {
7373
"maskPos" => &["mask-position"],
7474
"maskImg" => &["mask-image"],
7575
};
76+
77+
pub(super) static GLOBAL_ENUM_STYLE_PROPERTY: phf::Map<&str, phf::Map<&str, phf::Map<&str, &str>>> = phf_map! {
78+
"positioning " => phf_map! {
79+
"top" => phf_map! {
80+
"top" => "0",
81+
},
82+
"right" => phf_map! {
83+
"right" => "0",
84+
},
85+
"bottom" => phf_map! {
86+
"bottom" => "0",
87+
},
88+
"left" => phf_map! {
89+
"left" => "0",
90+
},
91+
"top-right" => phf_map! {
92+
"top" => "0",
93+
"right" => "0",
94+
},
95+
"top-left" => phf_map! {
96+
"top" => "0",
97+
"left" => "0",
98+
},
99+
"bottom-left" => phf_map! {
100+
"bottom" => "0",
101+
"left" => "0",
102+
},
103+
"bottom-right" => phf_map! {
104+
"bottom" => "0",
105+
"right" => "0",
106+
},
107+
}
108+
};
76109
pub(super) static OPTIMIZE_MULTI_CSS_VALUE_PROPERTY: phf::Set<&str> = phf_set! {
77110
"font-family",
78111
"src",

0 commit comments

Comments
 (0)