css_ast/values/viewport/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-viewport-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `zoom` as defined in [css-viewport-1](https://drafts.csswg.org/css-viewport-1/#zoom).
8///
9/// The zoom CSS property scales the size of an element. Unlike the transform property, a zoomed element affects page layout.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// <number [0,∞]> | <percentage [0,∞]>
15/// ```
16///
17/// https://drafts.csswg.org/css-viewport-1/#zoom
18#[syntax(" <number [0,∞]> | <percentage [0,∞]> ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "1",
24    applies_to = Unknown,
25    percentages = Number,
26    property_group = Viewport,
27    computed_value_type = AsSpecified,
28    canonical_order = "per grammar",
29)]
30#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
31#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.zoom"))]
32#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
33pub struct ZoomStyleValue;