Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/. */
6 #include "domstubs.idl"
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 */
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;
37 readonly attribute unsigned short type;
38 attribute DOMString cssText;
39 // raises(DOMException) on setting
41 readonly attribute nsIDOMCSSStyleSheet parentStyleSheet;
42 readonly attribute nsIDOMCSSRule parentRule;
43 };