Skip to main content

css_ast/values/
khtml.rs

1use super::prelude::*;
2
3/// `-khtml-border-bottom-left-radius` is an alias for `border-bottom-left-radius`.
4#[syntax(" <'border-bottom-left-radius'> ")]
5#[derive(
6	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
7)]
8#[declaration_metadata(
9    shorthands = _KhtmlBorderRadius,
10    initial = "0",
11    applies_to = Elements,
12    animation_type = ByComputedValue,
13    percentages = BorderBox,
14    property_group = Borders,
15    computed_value_type = Unknown,
16    canonical_order = "per grammar",
17    logical_property_group = BorderRadius,
18    box_side = Bottom|Left,
19    box_portion = Border,
20)]
21#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
22#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
23#[derive(csskit_derives::NodeWithMetadata)]
24pub struct KhtmlBorderBottomLeftRadiusStyleValue<'a>;
25
26/// `-khtml-border-bottom-right-radius` is an alias for `border-bottom-right-radius`.
27#[syntax(" <'border-bottom-right-radius'> ")]
28#[derive(
29	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
30)]
31#[declaration_metadata(
32    shorthands = _KhtmlBorderRadius,
33    initial = "0",
34    applies_to = Elements,
35    animation_type = ByComputedValue,
36    percentages = BorderBox,
37    property_group = Borders,
38    computed_value_type = Unknown,
39    canonical_order = "per grammar",
40    logical_property_group = BorderRadius,
41    box_side = Bottom|Right,
42    box_portion = Border,
43)]
44#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
45#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
46#[derive(csskit_derives::NodeWithMetadata)]
47pub struct KhtmlBorderBottomRightRadiusStyleValue<'a>;
48
49/// `-khtml-border-radius` is an alias for `border-radius`.
50#[syntax(" <'border-radius'> ")]
51#[derive(
52	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
53)]
54#[declaration_metadata(
55    longhands = _KhtmlBorderTopLeftRadius|_KhtmlBorderTopRightRadius|_KhtmlBorderBottomRightRadius|_KhtmlBorderBottomLeftRadius,
56    initial = "see individual properties",
57    inherits = Unknown,
58    applies_to = Unknown,
59    animation_type = Unknown,
60    percentages = Unknown,
61    property_group = Borders,
62    computed_value_type = Unknown,
63    canonical_order = "per grammar",
64    box_portion = Border,
65)]
66#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
67#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
68#[derive(csskit_derives::NodeWithMetadata)]
69pub struct KhtmlBorderRadiusStyleValue<'a>;
70
71/// `-khtml-user-select` is an alias for `user-select`.
72#[syntax(" <'user-select'> ")]
73#[derive(
74	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
75)]
76#[declaration_metadata(
77    initial = "auto",
78    applies_to = Unknown,
79    animation_type = Discrete,
80    property_group = Ui,
81    computed_value_type = Unknown,
82    canonical_order = "per grammar",
83)]
84#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
85#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
86#[derive(csskit_derives::NodeWithMetadata)]
87pub struct KhtmlUserSelectStyleValue<'a>;
88
89/// `-khtml-border-top-left-radius` is an alias for `border-top-left-radius`.
90#[syntax(" <'border-top-left-radius'> ")]
91#[derive(
92	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
93)]
94#[declaration_metadata(
95    initial = "0",
96    applies_to = Elements,
97    animation_type = ByComputedValue,
98    percentages = BorderBox,
99    shorthands = _KhtmlBorderRadius,
100    property_group = Borders,
101    computed_value_type = Unknown,
102    canonical_order = "per grammar",
103    logical_property_group = BorderRadius,
104    box_side = Top|Left,
105    box_portion = Border,
106)]
107#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
108#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
109#[derive(csskit_derives::NodeWithMetadata)]
110pub struct KhtmlBorderTopLeftRadiusStyleValue<'a>;
111
112/// `-khtml-border-top-right-radius` is an alias for `border-top-right-radius`.
113#[syntax(" <'border-top-right-radius'> ")]
114#[derive(
115	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
116)]
117#[declaration_metadata(
118    initial = "0",
119    applies_to = Elements,
120    animation_type = ByComputedValue,
121    percentages = BorderBox,
122    shorthands = _KhtmlBorderRadius,
123    property_group = Borders,
124    computed_value_type = Unknown,
125    canonical_order = "per grammar",
126    logical_property_group = BorderRadius,
127    box_side = Top|Right,
128    box_portion = Border,
129)]
130#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
131#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
132#[derive(csskit_derives::NodeWithMetadata)]
133pub struct KhtmlBorderTopRightRadiusStyleValue<'a>;