css_ast/values/page_floats/
mod.rs1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" inline | column | region | page ")]
18#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
19#[style_value(
20 initial = "inline",
21 applies_to = "all elements.",
22 inherited = "no",
23 percentages = "n/a",
24 canonical_order = "per grammar",
25 animation_type = "discrete"
26)]
27#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
28#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.float-reference"))]
29#[visit]
30pub enum FloatReferenceStyleValue {}
31
32#[syntax(
44 " block-start | block-end | inline-start | inline-end | snap-block | <snap-block()> | snap-inline | <snap-inline()> | left | right | top | bottom | none "
45)]
46#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
47#[style_value(
48 initial = "none",
49 applies_to = "all elements.",
50 inherited = "no",
51 percentages = "n/a",
52 canonical_order = "per grammar",
53 animation_type = "by computed value type"
54)]
55#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
56#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.float"))]
57#[visit]
58pub enum FloatStyleValue {}
59
60#[syntax(
72 " inline-start | inline-end | block-start | block-end | left | right | top | bottom | both-inline | both-block | both | none "
73)]
74#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
75#[style_value(
76 initial = "none",
77 applies_to = "block-level elements, floats, regions, pages",
78 inherited = "no",
79 percentages = "n/a",
80 canonical_order = "per grammar",
81 animation_type = "discrete"
82)]
83#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
84#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.clear"))]
85#[visit]
86pub enum ClearStyleValue {}
87
88#[syntax(" <integer> | last | none ")]
98#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
99#[style_value(
100 initial = "none",
101 applies_to = "floats",
102 inherited = "no",
103 percentages = "n/a",
104 canonical_order = "per grammar",
105 animation_type = "discrete"
106)]
107#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
108#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.float-defer"))]
109#[visit]
110pub enum FloatDeferStyleValue {}
111
112#[syntax(" <length-percentage> ")]
122#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
123#[style_value(
124 initial = "0",
125 applies_to = "floats",
126 inherited = "no",
127 percentages = "see prose",
128 canonical_order = "per grammar",
129 animation_type = "by computed value type"
130)]
131#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
132#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.float-offset"))]
133#[visit]
134pub struct FloatOffsetStyleValue;