polished_css/property/appearance/
mod.rs1pub mod animation;
2pub mod background;
3pub mod border;
4
5pub use animation::*;
6pub use background::*;
7pub use border::*;
8
9crate::create_property!(
10 Appearance,
11 display = "",
12 atomic = "appearance",
13 custom = false,
14 data_type = "",
15 initial_value = None,
16 keywords = "none,auto",
17);
18
19crate::create_property!(
20 Opacity,
21 display = "",
22 atomic = "op",
23 custom = false,
24 data_type = "<alpha>",
25 initial_value = Initial,
26 keywords = "",
27);
28
29#[cfg(test)]
30mod test {
31 #[test]
32 fn appearance() {
33 let name = "appearance";
34 crate::test_property_initial_value!(Appearance, None);
35 crate::test_global_keywords!(Appearance, name);
36 crate::test_function_var!(Appearance, name);
37 #[cfg(feature = "atomic")]
38 crate::test_atomic_property!(Appearance, "appearance");
39 }
40
41 #[test]
42 fn opacity() {
43 let name = "opacity";
44 crate::test_property_initial_value!(Opacity, Initial);
45 crate::test_global_keywords!(Opacity, name);
46 crate::test_function_var!(Opacity, name);
47 #[cfg(feature = "atomic")]
48 crate::test_atomic_property!(Opacity, "op");
49 }
50}