CssParserBlock Class
A simple block (https://wicg.github.io/css-parser-api/#cssparserblock, https://drafts.csswg.org/css-syntax-3/#simple-block): [...], (...) or {...}.
public sealed class CssParserBlock : CssParserValue- Inheritance
CssParserValueCssParserBlock
Constructors
| Name | Description |
|---|---|
| CssParserBlock(string, IEnumerable<CssParserToken>) | Creates a simple block (https://wicg.github.io/css-parser-api/#dom-cssparserblock-cssparserblock). |
CssParserBlock(string, IEnumerable<CssParserToken>)
CssParserObjects.csCreates a simple block (https://wicg.github.io/css-parser-api/#dom-cssparserblock-cssparserblock).
public CssParserBlock(string name, IEnumerable<CssParserToken> body)Parameters
namestring- The brackets of the block:
"[]","()"or"{}". bodyIEnumerable<CssParserToken>- The component values of the block.
Exceptions
TypeErrorException- The name is not
"[]","()"or"{}".
See also
Properties
| Name | Description |
|---|---|
| Body | Gets the component values of the block. |
| Name | Gets the brackets of the block: "[]", "()" or "{}". |
Gets the component values of the block.
public IReadOnlyList<CssParserToken> Body { get; }Gets the brackets of the block: "[]", "()" or "{}".
public string Name { get; }