CSSConditionRule
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{ 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}}