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 格式。
interface CSSSupportsRule : CSSConditionRule {
}
由于
CSSConditionRule
and therefore a
CSSRule
和
CSSGroupingRule
,
CSSSupportsRule
also implements the properties of these interfaces. It has no specific properties.
由于
CSSConditionRule
and therefore a
CSSRule
和
CSSGroupingRule
,
CSSSupportsRule
also implements the methods of that interface. It has no specific methods.
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Conditional Rules Module Level 3
The definition of 'CSSSupportsRule' in that specification. |
候选推荐 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSSupportsRule
|
Chrome No | Edge ≤18 — 79 |
Firefox
17
Disabled
|
IE No | Opera 12.1 | Safari No | WebView Android No | Chrome Android No |
Firefox Android
17
Disabled
|
Opera Android No | Safari iOS No | Samsung Internet Android No |
完整支持
不支持
见实现注意事项。
用户必须明确启用此特征。
CSSSupportsRule
AnimationEvent
CSS
CSSConditionRule
CSSGroupingRule
CSSKeyframeRule
CSSKeyframesRule
CSSMediaRule
CSSNamespaceRule
CSSPageRule
CSSRule
CSSRuleList
CSSStyleDeclaration
CSSStyleRule
CSSStyleSheet
CaretPosition
LinkStyle
MediaQueryList
MediaQueryListListener
Screen
StyleSheet
StyleSheetList
TransitionEvent