summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/css-conditional.idl
blob: d87f305fddf9e7c3f0151d51a595ae7140dce908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: CSS Conditional Rules Module Level 3 (https://drafts.csswg.org/css-conditional-3/)

partial interface CSSRule {
    const unsigned short SUPPORTS_RULE = 12;
};

[Exposed=Window]
interface CSSConditionRule : CSSGroupingRule {
    readonly attribute CSSOMString conditionText;
};

[Exposed=Window]
interface CSSMediaRule : CSSConditionRule {
    [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
};

[Exposed=Window]
interface CSSSupportsRule : CSSConditionRule {
};

partial namespace CSS {
  boolean supports(CSSOMString property, CSSOMString value);
  boolean supports(CSSOMString conditionText);
};