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