Back to Content

CSSConditionRule

files/en-us/web/api/cssconditionrule/index.md

latest961 B
Original Source

{{ APIRef("CSSOM") }}

An object implementing the CSSConditionRule interface represents a single condition CSS at-rule, which consists of a condition and a statement block.

Three objects derive from CSSConditionRule: {{domxref("CSSMediaRule")}}, {{domxref("CSSContainerRule")}} and {{domxref("CSSSupportsRule")}}.

{{InheritanceDiagram}}

Instance properties

Inherits properties from its ancestors {{domxref("CSSGroupingRule")}} and {{domxref("CSSRule")}}.

  • {{domxref("CSSConditionRule.conditionText")}} {{ReadOnlyInline}}
    • : Represents the text of the condition of the rule.

Instance methods

Inherits methods from its ancestors {{domxref("CSSGroupingRule")}} and {{domxref("CSSRule")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also