Class CSSRule
CSS rule representation.
public sealed class CSSRule
- Inheritance
-
CSSRule
- Inherited Members
Properties
ContainerQueries
Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.
[JsonPropertyName("containerQueries")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSContainerQuery[]? ContainerQueries { get; set; }
Property Value
Layers
Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.
[JsonPropertyName("layers")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSLayer[]? Layers { get; set; }
Property Value
- CSSLayer[]
Media
Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
[JsonPropertyName("media")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSMedia[]? Media { get; set; }
Property Value
- CSSMedia[]
NestingSelectors
Array of selectors from ancestor style rules, sorted by distance from the current rule.
[JsonPropertyName("nestingSelectors")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string[]? NestingSelectors { get; set; }
Property Value
- string[]
Origin
Parent stylesheet's origin.
[JsonPropertyName("origin")]
public StyleSheetOrigin Origin { get; set; }
Property Value
OriginTreeScopeNodeId
The BackendNodeId of the DOM node that constitutes the origin tree scope of this rule.
[JsonPropertyName("originTreeScopeNodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? OriginTreeScopeNodeId { get; set; }
Property Value
- long?
RuleTypes
The array keeps the types of ancestor CSSRules from the innermost going outwards.
[JsonPropertyName("ruleTypes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSRuleType[]? RuleTypes { get; set; }
Property Value
Scopes
@scope CSS at-rule array. The array enumerates @scope at-rules starting with the innermost one, going outwards.
[JsonPropertyName("scopes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSScope[]? Scopes { get; set; }
Property Value
- CSSScope[]
SelectorList
Rule selector data.
[JsonPropertyName("selectorList")]
public SelectorList SelectorList { get; set; }
Property Value
StartingStyles
@starting-style CSS at-rule array. The array enumerates @starting-style at-rules starting with the innermost one, going outwards.
[JsonPropertyName("startingStyles")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSStartingStyle[]? StartingStyles { get; set; }
Property Value
Style
Associated style declaration.
[JsonPropertyName("style")]
public CSSStyle Style { get; set; }
Property Value
StyleSheetId
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
[JsonPropertyName("styleSheetId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? StyleSheetId { get; set; }
Property Value
Supports
@supports CSS at-rule array. The array enumerates @supports at-rules starting with the innermost one, going outwards.
[JsonPropertyName("supports")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSSupports[]? Supports { get; set; }