css_ast/values/writing_modes/
mod.rs1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" ltr | rtl ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22 initial = "ltr",
23 applies_to = "all elements",
24 inherited = "yes",
25 percentages = "n/a",
26 canonical_order = "n/a",
27 animation_type = "not animatable"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.direction"))]
31#[visit]
32pub enum DirectionStyleValue {}
33
34#[syntax(" normal | embed | isolate | bidi-override | isolate-override | plaintext ")]
46#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
47#[style_value(
48 initial = "normal",
49 applies_to = "all elements, but see prose",
50 inherited = "no",
51 percentages = "n/a",
52 canonical_order = "per grammar",
53 animation_type = "not animatable"
54)]
55#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
56#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.unicode-bidi"))]
57#[visit]
58pub enum UnicodeBidiStyleValue {}
59
60#[syntax(" horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr ")]
72#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
73#[style_value(
74 initial = "horizontal-tb",
75 applies_to = "All elements except table row groups, table column groups, table rows, table columns, ruby base containers, ruby annotation containers",
76 inherited = "yes",
77 percentages = "n/a",
78 canonical_order = "n/a",
79 animation_type = "not animatable"
80)]
81#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
82#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.writing-mode"))]
83#[visit]
84pub enum WritingModeStyleValue {}
85
86#[syntax(" mixed | upright | sideways ")]
98#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
99#[style_value(
100 initial = "mixed",
101 applies_to = "all elements except table row groups, rows, column groups, and columns; and text",
102 inherited = "yes",
103 percentages = "n/a",
104 canonical_order = "n/a",
105 animation_type = "not animatable"
106)]
107#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
108#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-orientation"))]
109#[visit]
110pub enum TextOrientationStyleValue {}
111
112#[syntax(" auto | 0deg | 90deg | 0 | 90 ")]
124#[derive(Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
125#[style_value(
126 initial = "n/a",
127 applies_to = "n/a",
128 inherited = "n/a",
129 percentages = "n/a",
130 canonical_order = "n/a",
131 animation_type = "n/a"
132)]
133#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
134#[cfg_attr(
135 feature = "css_feature_data",
136 derive(ToCSSFeature),
137 css_feature("css.properties.glyph-orientation-vertical")
138)]
139#[visit]
140pub enum GlyphOrientationVerticalStyleValue {}
141
142#[syntax(" none | all | [ digits <integer [2,4]>? ] ")]
154#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
155#[style_value(
156 initial = "none",
157 applies_to = "inline boxes and text",
158 inherited = "yes",
159 percentages = "n/a",
160 canonical_order = "n/a",
161 animation_type = "not animatable"
162)]
163#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
164#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-combine-upright"))]
165#[visit]
166pub enum TextCombineUprightStyleValue {}