CssContainerRule Class

https://drafts.csswg.org/css-conditional-5/#the-csscontainerrule-interface

public sealed class CssContainerRule : CssConditionRule
Inheritance
CssConditionRule CssContainerRule

Properties

NameDescription
ConditionTextGets the text of the condition of the rule.
ConditionsGets the container conditions of the rule.
ContainerNameGets the name of the container targeted by the rule, or an empty string when the rule has not exactly one condition.
ContainerQueryGets the container query of the rule, or an empty string when the rule has not exactly one condition.

ConditionText

CSSRules.cs

Gets the text of the condition of the rule.

public override string ConditionText { get; }

Conditions

CSSRules.cs

ContainerName

CSSRules.cs

Gets the name of the container targeted by the rule, or an empty string when the rule has not exactly one condition.

public string ContainerName { get; }

ContainerQuery

CSSRules.cs

Gets the container query of the rule, or an empty string when the rule has not exactly one condition.

public string ContainerQuery { get; }