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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is michael@0: * http://dev.w3.org/csswg/cssom/ michael@0: */ michael@0: michael@0: interface CSSRule; michael@0: michael@0: interface CSSStyleDeclaration { michael@0: [SetterThrows] michael@0: attribute DOMString cssText; michael@0: michael@0: readonly attribute unsigned long length; michael@0: getter DOMString item(unsigned long index); michael@0: michael@0: [Throws] michael@0: DOMString getPropertyValue(DOMString property); michael@0: // Mozilla extension, sort of michael@0: [Throws] michael@0: CSSValue? getPropertyCSSValue(DOMString property); michael@0: DOMString getPropertyPriority(DOMString property); michael@0: [Throws] michael@0: void setProperty(DOMString property, DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = ""); michael@0: [Throws] michael@0: DOMString removeProperty(DOMString property); michael@0: michael@0: readonly attribute CSSRule? parentRule; michael@0: }; michael@0: michael@0: // Mozilla extensions michael@0: partial interface CSSStyleDeclaration { michael@0: [ChromeOnly,Throws] michael@0: DOMString getAuthoredPropertyValue(DOMString property); michael@0: };