css_ast/values/ruby/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-ruby-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `ruby-align` as defined in [css-ruby-1](https://drafts.csswg.org/css-ruby-1/#ruby-align).
8///
9/// The ruby-align CSS property sets the spacing and alignment of ruby annotation text when it does not fill its available space.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// start | center | space-between | space-around
15/// ```
16///
17/// https://drafts.csswg.org/css-ruby-1/#ruby-align
18#[syntax(" start | center | space-between | space-around ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "space-around",
24    inherits,
25    applies_to = Unknown,
26    animation_type = ByComputedValue,
27    property_group = Ruby,
28    computed_value_type = Unknown,
29    canonical_order = "per grammar",
30)]
31#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
32#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.ruby-align"))]
33#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
34pub enum RubyAlignStyleValue {}
35
36/// Represents the style value for `ruby-merge` as defined in [css-ruby-1](https://drafts.csswg.org/css-ruby-1/#ruby-merge).
37///
38/// The grammar is defined as:
39///
40/// ```text,ignore
41/// separate | merge | auto
42/// ```
43///
44/// https://drafts.csswg.org/css-ruby-1/#ruby-merge
45#[syntax(" separate | merge | auto ")]
46#[derive(
47	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
48)]
49#[declaration_metadata(
50    initial = "separate",
51    inherits,
52    applies_to = Unknown,
53    animation_type = ByComputedValue,
54    property_group = Ruby,
55    computed_value_type = Unknown,
56    canonical_order = "per grammar",
57)]
58#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
59#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.ruby-merge"))]
60#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
61pub enum RubyMergeStyleValue {}
62
63/// Represents the style value for `ruby-overhang` as defined in [css-ruby-1](https://drafts.csswg.org/css-ruby-1/#ruby-overhang).
64///
65/// The ruby-overhang CSS property sets whether ruby annotations may overlap adjacent text.
66///
67/// The grammar is defined as:
68///
69/// ```text,ignore
70/// auto | none
71/// ```
72///
73/// https://drafts.csswg.org/css-ruby-1/#ruby-overhang
74#[syntax(" auto | none ")]
75#[derive(
76	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
77)]
78#[declaration_metadata(
79    initial = "auto",
80    inherits,
81    applies_to = Unknown,
82    animation_type = ByComputedValue,
83    property_group = Ruby,
84    computed_value_type = Unknown,
85    canonical_order = "per grammar",
86)]
87#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
88#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.ruby-overhang"))]
89#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
90pub enum RubyOverhangStyleValue {}
91
92// /// Represents the style value for `ruby-position` as defined in [css-ruby-1](https://drafts.csswg.org/css-ruby-1/#ruby-position).
93// ///
94// /// The ruby-position CSS property sets the position of a ruby annotation in relation to its base text. Annotations can display over, under, or interleaved with the base text.
95// ///
96// /// The grammar is defined as:
97// ///
98// /// ```text,ignore
99// /// [ alternate || [ over | under ] ] | inter-character
100// /// ```
101// ///
102// /// https://drafts.csswg.org/css-ruby-1/#ruby-position
103// #[syntax(" [ alternate || [ over | under ] ] | inter-character ")]
104// #[derive(
105//     Parse,
106//     Peek,
107//     ToSpan,
108//     ToCursors,
109//     DeclarationMetadata,
110//     SemanticEq,
111//     Debug,
112//     Clone,
113//     PartialEq,
114//     Eq,
115//     PartialOrd,
116//     Ord,
117//     Hash,
118// )]
119// #[declaration_metadata(
120//     initial = "alternate",
121//     inherits,
122//     applies_to = Unknown,
123//     animation_type = Discrete,
124//     property_group = Ruby,
125//     computed_value_type = Unknown,
126//     canonical_order = "per grammar",
127// )]
128// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
129// #[cfg_attr(
130//     feature = "css_feature_data",
131//     derive(ToCSSFeature),
132//     css_feature("css.properties.ruby-position")
133// )]
134// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
135// pub enum RubyPositionStyleValue {}