polished_css/property/misc/
list.rs

1// TODO: Implement once <image> data type is ready
2crate::create_property!(
3    ListStyleImage,
4    display = "",
5    atomic = "list-s-i",
6    custom = false,
7    data_type = "",
8    initial_value = None,
9    keywords = "none",
10);
11
12crate::create_property!(
13    ListStylePosition,
14    display = "",
15    atomic = "list-s-p",
16    custom = false,
17    data_type = "",
18    initial_value = Inside,
19    keywords = "inside,outside",
20);
21
22crate::create_property!(
23    ListStyleType,
24    display = "",
25    atomic = "list-s-t",
26    custom = false,
27    data_type = "<custom-ident>",
28    initial_value = Disc,
29    keywords = "disc,circle,square,decimal,georgian,trad-chinese-informal,kannada,cyclic,numeric,\
30                alphabtic,symbolic,fixed,custom-counter-style,none",
31);
32
33#[cfg(test)]
34mod test {
35    #[test]
36    fn list_style_image() {
37        let name = "list-style-image";
38        crate::test_property_initial_value!(ListStyleImage, None);
39        crate::test_global_keywords!(ListStyleImage, name);
40        crate::test_function_var!(ListStyleImage, name);
41        #[cfg(feature = "atomic")]
42        crate::test_atomic_property!(ListStyleImage, "list-s-i");
43    }
44
45    #[test]
46    fn list_style_position() {
47        let name = "list-style-position";
48        crate::test_property_initial_value!(ListStylePosition, Inside);
49        crate::test_global_keywords!(ListStylePosition, name);
50        crate::test_function_var!(ListStylePosition, name);
51        #[cfg(feature = "atomic")]
52        crate::test_atomic_property!(ListStylePosition, "list-s-p");
53    }
54
55    #[test]
56    fn list_style_type() {
57        let name = "list-style-type";
58        crate::test_property_initial_value!(ListStyleType, Disc);
59        crate::test_global_keywords!(ListStyleType, name);
60        crate::test_function_var!(ListStyleType, name);
61        #[cfg(feature = "atomic")]
62        crate::test_atomic_property!(ListStyleType, "list-s-t");
63    }
64}