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
CssParserRuleCssParserQualifiedRule
Constructors
| Name | Description |
|---|---|
| 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.csCreates a qualified rule (https://wicg.github.io/css-parser-api/#dom-cssparserqualifiedrule-cssparserqualifiedrule).
public CssParserQualifiedRule(IEnumerable<CssParserToken> prelude, IEnumerable<CssParserRule>? body = null)Parameters
preludeIEnumerable<CssParserToken>- The component values before the block (e.g. the selectors).
bodyIEnumerable<CssParserRule>?- The rules and declarations of the block (null is an empty block).
See also
Properties
| Name | Description |
|---|---|
| Body | Gets the rules and declarations of the block. |
| Prelude | Gets the component values before the block, whitespace included. |
Gets the rules and declarations of the block.
public IReadOnlyList<CssParserRule> Body { get; }Prelude
CssParserObjects.csGets the component values before the block, whitespace included.
public IReadOnlyList<CssParserToken> Prelude { get; }