css_ast/values/size_adjust/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-size-adjust-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `text-size-adjust` as defined in [css-size-adjust-1](https://drafts.csswg.org/css-size-adjust-1/#text-size-adjust).
8///
9/// The text-size-adjust CSS property disables or modifies the browser's default text size adjustment for small screen sizes.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// auto | none | <percentage [0,∞]>
15/// ```
16///
17/// https://drafts.csswg.org/css-size-adjust-1/#text-size-adjust
18#[syntax(" auto | none | <percentage [0,∞]> ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "auto",
24    inherits,
25    applies_to = Elements,
26    percentages = Unknown,
27    animation_type = ByComputedValue,
28    property_group = SizeAdjust,
29    computed_value_type = Unknown,
30    canonical_order = "N/A",
31)]
32#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
33#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-size-adjust"))]
34#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
35pub struct TextSizeAdjustStyleValue;