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