polished_css/property/typography/
line.rs

1crate::create_property!(
2    LineBreak,
3    display = "",
4    atomic = "line-b",
5    custom = false,
6    data_type = "<number>",
7    initial_value = Auto,
8    keywords = "auto,anywhere,normal,loose,strict",
9);
10
11crate::create_property!(
12    LineHeight,
13    display = "",
14    atomic = "line-h",
15    custom = false,
16    data_type = "<number>",
17    initial_value = Normal,
18    keywords = "normal",
19);
20
21#[cfg(test)]
22mod test {
23    #[test]
24    fn line_break() {
25        let name = "line-break";
26        crate::test_property_initial_value!(LineBreak, Auto);
27        crate::test_global_keywords!(LineBreak, name);
28        crate::test_function_var!(LineBreak, name);
29        #[cfg(feature = "atomic")]
30        crate::test_atomic_property!(LineBreak, "line-b");
31    }
32
33    #[test]
34    fn line_height() {
35        let name = "line-height";
36        crate::test_property_initial_value!(LineHeight, Normal);
37        crate::test_global_keywords!(LineHeight, name);
38        crate::test_function_var!(LineHeight, name);
39        #[cfg(feature = "atomic")]
40        crate::test_atomic_property!(LineHeight, "line-h");
41    }
42}