dom/interfaces/css/nsIDOMCSSStyleDeclaration.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/css/nsIDOMCSSStyleDeclaration.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "domstubs.idl"
    1.10 +
    1.11 +/**
    1.12 + * The nsIDOMCSSStyleDeclaration interface is a datatype for a CSS
    1.13 + * style declaration in the Document Object Model.
    1.14 + *
    1.15 + * For more information on this interface please see
    1.16 + * http://www.w3.org/TR/DOM-Level-2-Style
    1.17 + */
    1.18 +
    1.19 +[scriptable, uuid(a6cf90be-15b3-11d2-932e-00805f8add32)]
    1.20 +interface nsIDOMCSSStyleDeclaration : nsISupports
    1.21 +{
    1.22 +           attribute DOMString        cssText;
    1.23 +                                        // raises(DOMException) on setting
    1.24 +
    1.25 +  DOMString          getPropertyValue(in DOMString propertyName);
    1.26 +  nsIDOMCSSValue     getPropertyCSSValue(in DOMString propertyName);
    1.27 +  DOMString          removeProperty(in DOMString propertyName)
    1.28 +                                        raises(DOMException);
    1.29 +  DOMString          getPropertyPriority(in DOMString propertyName);
    1.30 +  void               setProperty(in DOMString propertyName, 
    1.31 +                                 in DOMString value, 
    1.32 +                                 [optional] in DOMString priority)
    1.33 +                                        raises(DOMException);
    1.34 +  readonly attribute unsigned long    length;
    1.35 +  DOMString          item(in unsigned long index);
    1.36 +  readonly attribute nsIDOMCSSRule    parentRule;
    1.37 +};

mercurial