css-conditional.idl (843B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: CSS Conditional Rules Module Level 3 (https://drafts.csswg.org/css-conditional-3/) 5 6 partial interface CSSRule { 7 const unsigned short SUPPORTS_RULE = 12; 8 9 }; 10 11 [Exposed=Window] 12 interface CSSConditionRule : CSSGroupingRule { 13 readonly attribute CSSOMString conditionText; 14 }; 15 16 [Exposed=Window] 17 interface CSSMediaRule : CSSConditionRule { 18 [SameObject, PutForwards=mediaText] readonly attribute MediaList media; 19 readonly attribute boolean matches; 20 }; 21 22 [Exposed=Window] 23 interface CSSSupportsRule : CSSConditionRule { 24 readonly attribute boolean matches; 25 }; 26 27 partial namespace CSS { 28 boolean supports(CSSOMString property, CSSOMString value); 29 boolean supports(CSSOMString conditionText); 30 };