CssScopeRule Class

https://drafts.csswg.org/css-cascade-6/#cssscoperule

public sealed class CssScopeRule : CssGroupingRule
Inheritance
CssGroupingRule CssScopeRule

Properties

NameDescription
EndGets the text of the scoping limit selector of the rule, or null when the rule has no scoping limit.
EndSelectorsThe parsed <scope-end> selector (the parsed form of CssScopeRule.End; a relative selector: the scoping root is the nesting selector).
StartGets the text of the scoping root selector of the rule, or null when the rule has no scoping root.
StartSelectorsThe parsed <scope-start> selector (the parsed form of CssScopeRule.Start).

Gets the text of the scoping limit selector of the rule, or null when the rule has no scoping limit.

public string? End { get; }

EndSelectors

CSSRules.cs

The parsed <scope-end> selector (the parsed form of CssScopeRule.End; a relative selector: the scoping root is the nesting selector).

public SelectorList? EndSelectors { get; }

Property value

SelectorList?

Gets the text of the scoping root selector of the rule, or null when the rule has no scoping root.

public string? Start { get; }

StartSelectors

CSSRules.cs

The parsed <scope-start> selector (the parsed form of CssScopeRule.Start).

public SelectorList? StartSelectors { get; }

Property value

SelectorList?