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