CSSConditionRule
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.
Ein Objekt, das die Schnittstelle CSSConditionRule
implementiert, stellt eine einzelne Bedingung eines CSS-At-Regelsatzes dar, die aus einer Bedingung und einem Anweisungsblock besteht.
Drei Objekte leiten sich von CSSConditionRule
ab: CSSMediaRule
, CSSContainerRule
und CSSSupportsRule
.
Instanz-Eigenschaften
Erbt Eigenschaften von seinen Vorfahren CSSGroupingRule
und CSSRule
.
CSSConditionRule.conditionText
Schreibgeschützt-
Stellt den Text der Bedingung der Regel dar.
Instanz-Methoden
Erbt Methoden von seinen Vorfahren CSSGroupingRule
und CSSRule
.
Spezifikationen
Specification |
---|
CSS Conditional Rules Module Level 3 # the-cssconditionrule-interface |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSConditionRule | ||||||||||||
conditionText |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support