API Reference
Class
HtmlCssTokenizer
Tokenizes CSS without a parser provider, resource loading or property validation.
Inheritance
- Object
- HtmlCssTokenizer
Methods
public static IReadOnlyList<HtmlCssToken> Tokenize(String source, HtmlCssTokenizationOptions options = null, CancellationToken cancellationToken = default) #Returns:
IReadOnlyList<HtmlCssToken>Returns immutable tokens, preserving comments, declaration order and original source spans. Escapes, nulls, unpaired surrogates and newlines are normalized in decoded values only. A canceled or budget-exhausted operation publishes no partial token list.
Parameters
- source System.String
- options OfficeIMO.Html.Css.HtmlCssTokenizationOptions = null
- cancellationToken System.Threading.CancellationToken = default