css_ast/values/page/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/7e27ad7484307dfdbe9d0e18ad19d02859389688
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/css-page-4/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// Represents the style value for `page` as defined in [css-page-4](https://drafts.csswg.org/css-page-4/#page).
11///
12/// The @page CSS at-rule sets the page-specific dimensions and margins for content such as printed documents, ebooks, or slides.
13///
14/// The grammar is defined as:
15///
16/// ```text,ignore
17/// auto | <custom-ident>
18/// ```
19///
20/// https://drafts.csswg.org/css-page-4/#page
21#[syntax(" auto | <custom-ident> ")]
22#[derive(
23	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26    initial = "auto",
27    applies_to = Unknown,
28    animation_type = Discrete,
29    property_group = Page,
30    computed_value_type = AsSpecified,
31    canonical_order = "per grammar",
32)]
33#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
34#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.page"))]
35#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
36#[derive(csskit_derives::NodeWithMetadata)]
37pub struct PageStyleValue;