polished_css/property/layout/placement/
justify.rs1crate::create_property!(
2 JustifyContent,
3 display = "",
4 atomic = "justify-c",
5 custom = false,
6 data_type = "",
7 initial_value = Normal,
8 keywords = "normal,left,right,space-around,space-between,space-evenly,stretch,safe,unsafe,\
9 center,start,end,flex-start,flex-end",
10);
11
12crate::create_property!(
13 JustifyItems,
14 display = "",
15 atomic = "justify-i",
16 custom = false,
17 data_type = "",
18 initial_value = Normal,
19 keywords = "legacy,normal,stretch,left,right,first,last,baseline,safe,unsafe,center,start,end,\
20 self-start,self-end,flex-start,flex-end",
21);
22
23crate::create_property!(
24 JustifySelf,
25 display = "",
26 atomic = "justify-s",
27 custom = false,
28 data_type = "",
29 initial_value = Normal,
30 keywords = "auto,normal,stretch,left,right,first,last,baseline,safe,unsafe,center,start,end,\
31 self-start,self-end,flex-start,flex-end",
32);
33
34#[cfg(test)]
35mod test {
36 #[test]
37 fn justify_content() {
38 let name = "justify-content";
39 crate::test_property_initial_value!(JustifyContent, Normal);
40 crate::test_global_keywords!(JustifyContent, name);
41 crate::test_function_var!(JustifyContent, name);
42 #[cfg(feature = "atomic")]
43 crate::test_atomic_property!(JustifyContent, "justify-c");
44 }
45
46 #[test]
47 fn justify_items() {
48 let name = "justify-items";
49 crate::test_property_initial_value!(JustifyItems, Normal);
50 crate::test_global_keywords!(JustifyItems, name);
51 crate::test_function_var!(JustifyItems, name);
52 #[cfg(feature = "atomic")]
53 crate::test_atomic_property!(JustifyItems, "justify-i");
54 }
55
56 #[test]
57 fn justify_self() {
58 let name = "justify-self";
59 crate::test_property_initial_value!(JustifySelf, Normal);
60 crate::test_global_keywords!(JustifySelf, name);
61 crate::test_function_var!(JustifySelf, name);
62 #[cfg(feature = "atomic")]
63 crate::test_atomic_property!(JustifySelf, "justify-s");
64 }
65}