CSSConditionRule 对象表示单个条件 CSS 规则, 由条件和语句块组成。继承至 CSSGroupingRule
.
从它派生的两个对象 : CSSMediaRule
and CSSSupportsRule
.
Syntax
The syntax is described using the WebIDL format.
interface CSSConditionRule : CSSGroupingRule { attribute DOMString conditionText; }
Properties
The CSSConditionRule
derives from CSSRule
, CSSGroupingRule
and inherits all properties of these classes. It has one specific property:
CSSConditionRule.conditionText
- Represents the text of the condition of the rule.
Methods
The CSSConditionRule
derives from CSSRule
, CSSGroupingRule
and inherits all methods of these classes. It has no specific property of its own.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Conditional Rules Module Level 3 CSSConditionRule |
Candidate Recommendation | Initial definition. |
Browser compatibility
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.