|
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #include "domstubs.idl" |
|
7 |
|
8 /** |
|
9 * The nsIDOMCSSRule interface is a datatype for a CSS style rule in |
|
10 * the Document Object Model. |
|
11 * |
|
12 * For more information on this interface please see |
|
13 * http://www.w3.org/TR/DOM-Level-2-Style |
|
14 */ |
|
15 |
|
16 [scriptable, uuid(2938307a-9d70-4b63-8afc-0197e82318ad)] |
|
17 interface nsIDOMCSSRule : nsISupports |
|
18 { |
|
19 // RuleType |
|
20 const unsigned short UNKNOWN_RULE = 0; |
|
21 const unsigned short STYLE_RULE = 1; |
|
22 const unsigned short CHARSET_RULE = 2; |
|
23 const unsigned short IMPORT_RULE = 3; |
|
24 const unsigned short MEDIA_RULE = 4; |
|
25 const unsigned short FONT_FACE_RULE = 5; |
|
26 const unsigned short PAGE_RULE = 6; |
|
27 const unsigned short KEYFRAMES_RULE = 7; |
|
28 const unsigned short KEYFRAME_RULE = 8; |
|
29 // When layout.css.prefixes.animations is disabled/removed, |
|
30 // we should remove these two MOZ_* constants. |
|
31 const unsigned short MOZ_KEYFRAMES_RULE = 7; |
|
32 const unsigned short MOZ_KEYFRAME_RULE = 8; |
|
33 const unsigned short NAMESPACE_RULE = 10; |
|
34 const unsigned short SUPPORTS_RULE = 12; |
|
35 const unsigned short FONT_FEATURE_VALUES_RULE = 14; |
|
36 |
|
37 readonly attribute unsigned short type; |
|
38 attribute DOMString cssText; |
|
39 // raises(DOMException) on setting |
|
40 |
|
41 readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; |
|
42 readonly attribute nsIDOMCSSRule parentRule; |
|
43 }; |