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
).
The syntax is described using the WebIDL format.
interface CSSSupportsRule : CSSConditionRule { }
As a CSSConditionRule
and therefore a CSSRule
and a CSSGroupingRule
, CSSSupportsRule
also implements the properties of these interfaces. It has no specific properties.
As a CSSConditionRule
and therefore a CSSRule
and a CSSGroupingRule
, CSSSupportsRule
also implements the methods of that interface. It has no specific methods.
Specification | Status | Comment |
---|---|---|
CSS Conditional Rules Module Level 3 The definition of 'CSSSupportsRule' in that specification. | Candidate Recommendation | Initial definition |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | No | Yes | 17
|
No | 12.1 | No |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | No | No | Yes | 17
|
No | No | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSSupportsRule