CssParserOptions Class

The options of the CSS Parser API (https://wicg.github.io/css-parser-api/#dictdef-cssparseroptions).

public sealed class CssParserOptions

Constructors

NameDescription
CssParserOptions()

CssParserOptions()

public CssParserOptions()

No documentation is available.

Properties

NameDescription
AtRulesGets the grammar of the blocks of the at-rules, by at-rule name (without @, ASCII case-insensitive): one of the productions of CSS Syntax (https://drafts.csswg.org/css-syntax-3/#block-contents), "block-contents" (the default: declarations and rules), "declaration-list", "qualified-rule-list", "at-rule-list", "declaration-rule-list" or "rule-list". The items of a block that its production does not allow are dropped (e.g. the declarations of a "rule-list"). The draft describes the option as a "dict of at-rule name => at-rule type" without defining the types: the bindings take a record<DOMString, DOMString>.

Gets the grammar of the blocks of the at-rules, by at-rule name (without @, ASCII case-insensitive): one of the productions of CSS Syntax (https://drafts.csswg.org/css-syntax-3/#block-contents), "block-contents" (the default: declarations and rules), "declaration-list", "qualified-rule-list", "at-rule-list", "declaration-rule-list" or "rule-list". The items of a block that its production does not allow are dropped (e.g. the declarations of a "rule-list"). The draft describes the option as a "dict of at-rule name => at-rule type" without defining the types: the bindings take a record<DOMString, DOMString>.

public IEnumerable<KeyValuePair<string, string>>? AtRules { get; init; }