1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/// The CSS `@media` rule prefix used in serialized media query strings.
pub const CSS_MEDIA_PREFIX: &str = "@media ";
/// The CSS `@keyframes` rule prefix used in serialized keyframes strings.
pub const CSS_KEYFRAMES_PREFIX: &str = "@keyframes ";
/// The CSS `@supports` rule prefix used in serialized supports strings.
pub const CSS_SUPPORTS_PREFIX: &str = "@supports ";
/// The CSS `@layer` rule prefix used in serialized layer strings.
pub const CSS_LAYER_PREFIX: &str = "@layer ";
/// The CSS `@container` rule prefix used in serialized container strings.
pub const CSS_CONTAINER_PREFIX: &str = "@container ";
/// The CSS `@property` rule prefix used in serialized property strings.
pub const CSS_PROPERTY_PREFIX: &str = "@property ";
/// The CSS `@scope` rule prefix used in serialized scope strings.
pub const CSS_SCOPE_PREFIX: &str = "@scope ";
/// The CSS `@font-face` rule marker used in serialized font-face strings.
pub const CSS_FONT_FACE_PREFIX: &str = "@font-face";
/// The CSS `@charset` rule marker used in serialized charset strings.
pub const CSS_CHARSET_PREFIX: &str = "@charset ";
/// The CSS `@import` rule marker used in serialized import strings.
pub const CSS_IMPORT_PREFIX: &str = "@import ";
/// The CSS `@namespace` rule marker used in serialized namespace strings.
pub const CSS_NAMESPACE_PREFIX: &str = "@namespace ";
/// The CSS `@page` rule marker used in serialized page strings.
pub const CSS_PAGE_PREFIX: &str = "@page ";
/// The CSS `@color-profile` rule marker used in serialized color-profile strings.
pub const CSS_COLOR_PROFILE_PREFIX: &str = "@color-profile ";
/// The CSS `@counter-style` rule marker used in serialized counter-style strings.
pub const CSS_COUNTER_STYLE_PREFIX: &str = "@counter-style ";
/// The CSS `@font-feature-values` rule marker used in serialized font-feature-values strings.
pub const CSS_FONT_FEATURE_VALUES_PREFIX: &str = "@font-feature-values ";
/// The CSS `@font-palette-values` rule marker used in serialized font-palette-values strings.
pub const CSS_FONT_PALETTE_VALUES_PREFIX: &str = "@font-palette-values ";
/// The CSS `@document` rule marker used in serialized document strings.
pub const CSS_DOCUMENT_PREFIX: &str = "@document ";
/// The CSS `@starting-style` rule marker used in serialized starting-style strings.
pub const CSS_STARTING_STYLE_PREFIX: &str = "@starting-style";
/// The CSS pseudo-rule serialization separator between selector and style block.
pub const CSS_RULE_OPEN: &str = " { ";
/// The CSS property separator between property name and value.
pub const CSS_PROP_SEPARATOR: &str = ": ";
/// The CSS declaration terminator after each property value.
pub const CSS_DECL_TERMINATOR: &str = "; ";
/// The space string used for concatenating CSS parts.
pub const STR_SPACE: &str = " ";
/// The hyphen string used for replacing underscores in kebab-case conversion.
pub const STR_HYPHEN: &str = "-";
/// The keyword name for the `var` function in class macro syntax.
pub const VAR: &str = "var";
/// The CSS `var()` function prefix for custom property references.
pub const CSS_VAR_PREFIX: &str = "var(--";
/// The CSS `var()` function suffix for custom property references.
pub const CSS_VAR_SUFFIX: &str = ")";
/// The `format` macro name used to detect format! invocations in class property values.
pub const FORMAT_MACRO: &str = "format";
/// The at-rule keyword name for `media`.
pub const AT_MEDIA: &str = "media";
/// The at-rule keyword name for `keyframes`.
pub const AT_KEYFRAMES: &str = "keyframes";
/// The at-rule keyword name for `supports`.
pub const AT_SUPPORTS: &str = "supports";
/// The at-rule keyword name for `layer`.
pub const AT_LAYER: &str = "layer";
/// The at-rule keyword name for `container`.
pub const AT_CONTAINER: &str = "container";
/// The at-rule keyword name for `property`.
pub const AT_PROPERTY: &str = "property";
/// The at-rule keyword name for `scope`.
pub const AT_SCOPE: &str = "scope";
/// The at-rule keyword name for `font-face`.
pub const AT_FONT_FACE: &str = "font-face";
/// The at-rule keyword name for `charset`.
pub const AT_CHARSET: &str = "charset";
/// The at-rule keyword name for `import`.
pub const AT_IMPORT: &str = "import";
/// The at-rule keyword name for `namespace`.
pub const AT_NAMESPACE: &str = "namespace";
/// The at-rule keyword name for `page`.
pub const AT_PAGE: &str = "page";
/// The at-rule keyword name for `color-profile`.
pub const AT_COLOR_PROFILE: &str = "color-profile";
/// The at-rule keyword name for `counter-style`.
pub const AT_COUNTER_STYLE: &str = "counter-style";
/// The at-rule keyword name for `font-feature-values`.
pub const AT_FONT_FEATURE_VALUES: &str = "font-feature-values";
/// The at-rule keyword name for `font-palette-values`.
pub const AT_FONT_PALETTE_VALUES: &str = "font-palette-values";
/// The at-rule keyword name for `document`.
pub const AT_DOCUMENT: &str = "document";
/// The at-rule keyword name for `starting-style`.
pub const AT_STARTING_STYLE: &str = "starting-style";
/// The at-rule keyword name for `view-transition`.
pub const AT_VIEW_TRANSITION: &str = "view-transition";
/// The at-rule keyword name for `position-try`.
pub const AT_POSITION_TRY: &str = "position-try";
/// The at-rule keyword name for `custom-media`.
pub const AT_CUSTOM_MEDIA: &str = "custom-media";
/// The at-rule keyword name for `function`.
pub const AT_FUNCTION: &str = "function";
/// The colon character used in CSS pseudo-class/at-rule syntax.
pub const CHAR_COLON: char = ':';
/// The comma character used in CSS media query lists.
pub const CHAR_COMMA: char = ',';
/// The left parenthesis character used in CSS functional notation.
pub const CHAR_LEFT_PAREN: char = '(';
/// The right parenthesis character used in CSS functional notation.
pub const CHAR_RIGHT_PAREN: char = ')';
/// The left bracket character used in CSS attribute selectors.
pub const CHAR_LEFT_BRACKET: char = '[';
/// The right bracket character used in CSS attribute selectors.
pub const CHAR_RIGHT_BRACKET: char = ']';
/// The closing brace character used to terminate CSS rule blocks.
pub const CHAR_CSS_RULE_CLOSE: char = '}';
/// The at-sign character used to prefix CSS at-rules.
pub const CHAR_AT: char = '@';