Skip to main content

css_ast/values/pointer_events/
mod.rs

1// AUTO-GENERATED - Do not edit this file directly.
2#![allow(warnings)]
3//! https://w3c.github.io/pointerevents/
4
5mod impls;
6use super::prelude::*;
7use impls::*;
8/// Represents the style value for `touch-action` as defined in [Pointer Events](https://w3c.github.io/pointerevents/#touch-action).
9///
10/// The touch-action CSS property sets whether an element on a touch screen can be panned or pinched to zoom.
11///
12/// The grammar is defined as:
13///
14/// ```text,ignore
15/// auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation
16/// ```
17///
18/// https://w3c.github.io/pointerevents/#touch-action
19#[syntax(
20	" auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation "
21)]
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    property_group = PointerEvents,
29)]
30#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
31#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.touch-action"))]
32#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
33#[derive(csskit_derives::NodeWithMetadata)]
34pub enum TouchActionStyleValue {}