CSSContainerRule
The CSSContainerRule interface represents a single CSS @container rule.
Properties
The read-only conditions property of the CSSContainerRule interface represents an associated CSS @container at-rule as an array of objects, where each object represents a single container condition.
The read-only conditionText property of the CSSConditionRule interface returns or sets the text of the CSS rule.
The read-only containerName property of the CSSContainerRule interface represents the name of the container condition for a container rule that only defines one container condition. If there are multiple container conditions, the value is set to the empty string.
The read-only containerQuery property of the CSSContainerRule interface represents the query part of the container condition for a container rule that only defines one container condition. If there are multiple container conditions, the value is set to the empty string.
The cssRules property of the CSSGroupingRule interface returns a CSSRuleList containing a collection of CSSRule objects.
The parentRule read-only property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.
The parentStyleSheet read-only property of the CSSRule interface returns the StyleSheet object in which the current rule is defined.