polished_css/property/typography/
mod.rs1pub mod font;
2pub mod line;
3pub mod text;
4pub mod white_space;
5pub mod word;
6
7pub use font::*;
8pub use line::*;
9pub use text::*;
10pub use white_space::*;
11pub use word::*;
12
13crate::create_property!(
14 Hyphens,
15 display = "",
16 atomic = "hyphens",
17 custom = false,
18 data_type = "",
19 initial_value = None,
20 keywords = "none,auto,manual",
21);
22
23crate::create_property!(
24 Quotes,
25 display = "",
26 atomic = "quotes",
27 custom = false,
28 data_type = "<string>",
29 initial_value = Initial,
30 keywords = "auto,none",
31);
32
33crate::create_property!(
34 TabSize,
35 display = "",
36 atomic = "tab",
37 custom = false,
38 data_type = "<length>",
39 initial_value = Initial,
40 keywords = "",
41);
42
43crate::create_property!(
44 Widows,
45 display = "",
46 atomic = "widows",
47 custom = false,
48 data_type = "<integer>",
49 initial_value = Initial,
50 keywords = "",
51);
52
53crate::create_property!(
54 WritingMode,
55 display = "",
56 atomic = "writing",
57 custom = false,
58 data_type = "",
59 initial_value = HorizontalTb,
60 keywords = "horizontal-tb,vertical-rl,vertical-lr,sideways-rl,sideways-lr",
61);
62
63#[cfg(test)]
64mod test {
65 #[test]
66 fn hyphens() {
67 let name = "hyphens";
68 crate::test_property_initial_value!(Hyphens, None);
69 crate::test_global_keywords!(Hyphens, name);
70 crate::test_function_var!(Hyphens, name);
71 #[cfg(feature = "atomic")]
72 crate::test_atomic_property!(Hyphens, "hyphens");
73 }
74
75 #[test]
76 fn tab_size() {
77 let name = "tab-size";
78 crate::test_property_initial_value!(TabSize, Initial);
79 crate::test_global_keywords!(TabSize, name);
80 crate::test_function_var!(TabSize, name);
81 #[cfg(feature = "atomic")]
82 crate::test_atomic_property!(TabSize, "tab");
83 }
84
85 #[test]
86 fn widows() {
87 let name = "widows";
88 crate::test_property_initial_value!(Widows, Initial);
89 crate::test_global_keywords!(Widows, name);
90 crate::test_function_var!(Widows, name);
91 #[cfg(feature = "atomic")]
92 crate::test_atomic_property!(Widows, "widows");
93 }
94
95 #[test]
96 fn writing_mode() {
97 let name = "writing-mode";
98 crate::test_property_initial_value!(WritingMode, HorizontalTb);
99 crate::test_global_keywords!(WritingMode, name);
100 crate::test_function_var!(WritingMode, name);
101 #[cfg(feature = "atomic")]
102 crate::test_atomic_property!(WritingMode, "writing");
103 }
104}