The CSSSupportsRule interface describes an object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE).
Syntax
The syntax is described using the WebIDL format.
interface CSSSupportsRule : CSSConditionRule {
}
Properties
As a CSSConditionRule and therefore a CSSRule and a CSSGroupingRule, CSSSupportsRule also implements the properties of these interfaces. It has no specific properties.
Methods
As a CSSConditionRule and therefore a CSSRuleand a CSSGroupingRule, CSSSupportsRule also implements the methods of that interface. It has no specific methods.
Specification
| Specification | Status | Comment |
|---|---|---|
| CSS Conditional Rules Module Level 3The definition of 'CSSSupportsRule' in that specification. | Candidate Recommendation | Initial definition |
Browser compatibility
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.
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSSupportsRule
|
Chrome
No support No |
Edge
No support ≤18 — 79 |
Firefox Full support 17 Full support 17 Notes' From Firefox 17 to 19, methods and properties were defined on |
IE
No support No |
Opera
Full support 12.1 |
Safari
No support No |
WebView Android
No support No |
Chrome Android
No support No |
Firefox Android Full support 17 Full support 17 Notes' From Firefox 17 to 19, methods and properties were defined on |
Opera Android
No support No |
Safari iOS
No support No |
Samsung Internet Android
No support No |
Legend
- Full support
- Full support
- No support
- No support
- See implementation notes.'
- See implementation notes.
- User must explicitly enable this feature.'
- User must explicitly enable this feature.
See also
CSSSupportsRule by Mozilla Contributors is licensed under CC-BY-SA 2.5.