Expand description
All supported tokens, and with comments.
Structs§
- Ampersand
- Asterisk
- Asterisk
Equal - At
- AtKeyword
- AtLBrace
Var - Backtick
Code - BadStr
- CSS Syntax
<bad-string-token>: a string terminated by a newline or EOF instead of its quote. Not a tokenizer error in CSS — it is a preserved token that raw component-value contexts keep verbatim. - Bar
- BarBar
- BarEqual
- Caret
Equal - Cdc
-->- Cdo
<!--- Colon
- Colon
Colon - Comma
- Comment
- Dedent
- Dimension
- Dollar
Equal - DollarL
Brace Var - Dollar
Var - Dot
- DotDot
Dot - Eof
- Equal
- Equal
Equal - Exclamation
- Exclamation
Equal - Greater
Than - Greater
Than Equal - Hash
- HashL
Brace - Ident
- Indent
- LBrace
- LBracket
- LParen
- Less
Than - Less
Than Equal - Linebreak
- Minus
- Number
- Number
Sign - U+0023
# - Percent
- Percentage
- Placeholder
- An atomic backtick-delimited template placeholder token (see
ParserOptions::template_placeholder), carrying the parsed decimal index and any glued literal suffix. - Plus
- Plus
Underscore - Question
- RBrace
- RBracket
- RParen
- Semicolon
- Solidus
- Str
- StrTemplate
- Tilde
- Tilde
Equal - Token
With Span - Unknown
- Any single code point that no other token matches (a stray
^, a control character, …). CSS Syntax calls this a<delim-token>: it is not an error at the tokenizer level, and raw component-value contexts (custom property values, unparsable declaration values) preserve it verbatim. - UrlRaw
- UrlTemplate