CssParserAtRule Class
An at-rule (https://wicg.github.io/css-parser-api/#cssparseratrule, https://drafts.csswg.org/css-syntax-3/#at-rule): its name, its prelude and its block, or no block for a statement (e.g. @import url(a.css);).
public sealed class CssParserAtRule : CssParserRule- Inheritance
CssParserRuleCssParserAtRule
Constructors
| Name | Description |
|---|---|
| CssParserAtRule(string, IEnumerable<CssParserToken>, IEnumerable<CssParserRule>?) | Creates an at-rule (https://wicg.github.io/css-parser-api/#dom-cssparseratrule-cssparseratrule). |
CssParserAtRule(string, IEnumerable<CssParserToken>, IEnumerable<CssParserRule>?)
CssParserObjects.csCreates an at-rule (https://wicg.github.io/css-parser-api/#dom-cssparseratrule-cssparseratrule).
public CssParserAtRule(string name, IEnumerable<CssParserToken> prelude, IEnumerable<CssParserRule>? body = null)Parameters
namestring- The name, without
@. preludeIEnumerable<CssParserToken>- The component values between the name and the block.
bodyIEnumerable<CssParserRule>?- The rules and declarations of the block, or null for a statement.
See also
Properties
| Name | Description |
|---|---|
| Body | Gets the rules and declarations of the block, or null when the at-rule has no block. |
| Name | Gets the name of the at-rule, without @. |
| Prelude | Gets the component values between the name and the block (or the semicolon), whitespace included. |
Gets the rules and declarations of the block, or null when the at-rule has no block.
public IReadOnlyList<CssParserRule>? Body { get; }Gets the name of the at-rule, without @.
public string Name { get; }Prelude
CssParserObjects.csGets the component values between the name and the block (or the semicolon), whitespace included.
public IReadOnlyList<CssParserToken> Prelude { get; }