css_ast/values/size_adjust/
mod.rs

1#![allow(warnings)]
2//! CSS Mobile Text Size Adjustment Module Level 1
3//! https://drafts.csswg.org/css-size-adjust-1/
4
5mod impls;
6use impls::*;
7
8/// 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).
9///
10/// The text-size-adjust CSS property disables or modifies the browser's default text size adjustment for small screen sizes.
11///
12/// The grammar is defined as:
13///
14/// ```text,ignore
15/// auto | none | <percentage [0,∞]>
16/// ```
17///
18// https://drafts.csswg.org/css-size-adjust-1/#text-size-adjust
19#[syntax(" auto | none | <percentage [0,∞]> ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22	initial = "auto",
23	applies_to = "all elements",
24	inherited = "yes",
25	percentages = "see below",
26	canonical_order = "n/a",
27	animation_type = "by computed value"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-size-adjust"))]
31#[visit]
32pub struct TextSizeAdjustStyleValue;