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