Skip to main content

css_ast/values/ruby/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/e8f0279ce0beff5d70e59fa4165a668e1527fff6
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 | spaces | none
76/// ```
77///
78/// https://drafts.csswg.org/css-ruby-1/#ruby-overhang
79#[syntax(" auto | spaces | 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, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
112)]
113#[declaration_metadata(
114    initial = "alternate",
115    inherits,
116    applies_to = Unknown,
117    animation_type = Discrete,
118    property_group = Ruby,
119    computed_value_type = Unknown,
120    canonical_order = "per grammar",
121)]
122#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
123#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.ruby-position"))]
124#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
125#[derive(csskit_derives::NodeWithMetadata)]
126pub enum RubyPositionStyleValue {}