-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathCSSMediaRule.idl
More file actions
31 lines (26 loc) · 1.1 KB
/
CSSMediaRule.idl
File metadata and controls
31 lines (26 loc) · 1.1 KB
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
28
29
30
31
[Documentation=
"<p>The {@name} {@type} represents a <code>@media</code> rule.</p>"
]
interface CSSMediaRule : CSSRule {
[PutForwards=mediaText,
Documentation=
"<p>The {@name} {@type} must return a <code>MediaList</code> object for the list of media queries specified\
with the <code>@media</code> rule.</p>"
]
readonly attribute MediaList media;
[Documentation=
"<p>The {@name} {@type} must return a <code>CSSRuleList</code> object for the list of CSS rules specified\
with the <code>@media</code> rule.</p>"
]
readonly attribute CSSRuleList cssRules;
[Documentation=
"<p>The {@name} {@type} must <span>insert a CSS rule</span> <var>rule</var> into the CSS rule list\
returned by <code title='dom-CSSMediaRule-cssRules'>cssRules</code> at <var>index</var>.</p>"
]
unsigned long insertRule(DOMString rule, in unsigned long index);
[Documentation=
"<p>The {@name} {@type} must <span>remove a CSS rule</span> from the CSS rule list returned by\
<code title='dom-CSSMediaRule-cssRules'>cssRules</code> at <var>index</var>.</p>"
]
void deleteRule(unsigned long index);
};