An object implementing the CSSConditionRule
interface represents a single condition CSS at-rule
, which consists of a condition and a statement block.
Two objects derive from CSSConditionRule
: CSSMediaRule
and CSSSupportsRule
.
An object implementing the CSSConditionRule
interface represents a single condition CSS at-rule
, which consists of a condition and a statement block.
Two objects derive from CSSConditionRule
: CSSMediaRule
and CSSSupportsRule
.
Inherits properties from its ancestors CSSRule
and CSSGroupingRule
.
CSSConditionRule.conditionText
Represents the text of the condition of the rule.
No specific methods; inherits methods from its ancestors CSSRule
and CSSGroupingRule
.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
CSSConditionRule |
56
|
12
|
20
|
No
|
43
|
14.1
|
56
|
56
|
20
|
43
|
14.5
|
6.0
|
conditionText |
56
|
12
|
20
|
No
|
43
|
14.1
|
56
|
56
|
20
|
43
|
14.5
|
6.0
|
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule