CssParserQualifiedRule Class

A qualified rule (https://wicg.github.io/css-parser-api/#cssparserqualifiedrule, https://drafts.csswg.org/css-syntax-3/#qualified-rule), e.g. a style rule: its prelude and the rules and declarations of its block.

public sealed class CssParserQualifiedRule : CssParserRule
Inheritance
CssParserRule CssParserQualifiedRule

Constructors

NameDescription
CssParserQualifiedRule(IEnumerable<CssParserToken>, IEnumerable<CssParserRule>?)Creates a qualified rule (https://wicg.github.io/css-parser-api/#dom-cssparserqualifiedrule-cssparserqualifiedrule).

CssParserQualifiedRule(IEnumerable<CssParserToken>, IEnumerable<CssParserRule>?)

CssParserObjects.cs

Creates a qualified rule (https://wicg.github.io/css-parser-api/#dom-cssparserqualifiedrule-cssparserqualifiedrule).

public CssParserQualifiedRule(IEnumerable<CssParserToken> prelude, IEnumerable<CssParserRule>? body = null)

Parameters

prelude IEnumerable<CssParserToken>
The component values before the block (e.g. the selectors).
body IEnumerable<CssParserRule>?
The rules and declarations of the block (null is an empty block).

See also

Properties

NameDescription
BodyGets the rules and declarations of the block.
PreludeGets the component values before the block, whitespace included.

Gets the rules and declarations of the block.

public IReadOnlyList<CssParserRule> Body { get; }

Gets the component values before the block, whitespace included.

public IReadOnlyList<CssParserToken> Prelude { get; }