CssRuleSyntax Class
A qualified rule, such as a style rule, or an at-rule.
public abstract class CssRuleSyntax : CssStatementSyntax- Inheritance
CssStatementSyntaxCssRuleSyntax
Methods
| Name | Description |
|---|---|
| GetBlock() | Gets the block of the rule, or null for an at-rule that ends with a semicolon. |
| GetPrelude() | Gets what comes before the block, or null when there is nothing there. |
GetBlock()
Gets the block of the rule, or null for an at-rule that ends with a semicolon.
public abstract CssBlockSyntax? GetBlock()Returns
GetPrelude()
Gets what comes before the block, or null when there is nothing there.
public abstract CssPreludeSyntax? GetPrelude()Returns
Remarks
A prelude the rule has a grammar for is parsed with it, such as a CssSelectorListSyntax for a style rule. A CssGenericPreludeSyntax stands for a prelude that has no grammar, or that does not match it; in the latter case, a browser drops the rule, and the tree reports why.