dom/webidl/CSSStyleDeclaration.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/CSSStyleDeclaration.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     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 file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 + *
     1.9 + * The origin of this IDL file is
    1.10 + * http://dev.w3.org/csswg/cssom/
    1.11 + */
    1.12 +
    1.13 +interface CSSRule;
    1.14 +
    1.15 +interface CSSStyleDeclaration {
    1.16 +  [SetterThrows]
    1.17 +  attribute DOMString cssText;
    1.18 +
    1.19 +  readonly attribute unsigned long length;
    1.20 +  getter DOMString item(unsigned long index);
    1.21 +
    1.22 +  [Throws]
    1.23 +  DOMString getPropertyValue(DOMString property);
    1.24 +  // Mozilla extension, sort of
    1.25 +  [Throws]
    1.26 +  CSSValue? getPropertyCSSValue(DOMString property);
    1.27 +  DOMString getPropertyPriority(DOMString property);
    1.28 +  [Throws]
    1.29 +  void setProperty(DOMString property, DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
    1.30 +  [Throws]
    1.31 +  DOMString removeProperty(DOMString property);
    1.32 +
    1.33 +  readonly attribute CSSRule? parentRule;
    1.34 +};
    1.35 +
    1.36 +// Mozilla extensions
    1.37 +partial interface CSSStyleDeclaration {
    1.38 +  [ChromeOnly,Throws]
    1.39 +  DOMString getAuthoredPropertyValue(DOMString property);
    1.40 +};

mercurial