2012-08-23 21:08:09 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/csswg/cssom/
|
|
|
|
*/
|
|
|
|
|
|
|
|
interface CSSRule;
|
|
|
|
interface CSSValue;
|
|
|
|
|
|
|
|
interface CSSStyleDeclaration {
|
2012-09-05 06:21:33 -07:00
|
|
|
[SetterThrows]
|
2012-08-23 21:08:09 -07:00
|
|
|
attribute DOMString cssText;
|
|
|
|
|
|
|
|
readonly attribute unsigned long length;
|
|
|
|
getter DOMString item(unsigned long index);
|
|
|
|
|
2012-09-05 06:21:33 -07:00
|
|
|
[Throws]
|
2012-08-23 21:08:09 -07:00
|
|
|
DOMString getPropertyValue(DOMString property);
|
|
|
|
// Mozilla extension, sort of
|
2012-09-05 06:21:33 -07:00
|
|
|
[Throws]
|
2012-08-23 21:08:09 -07:00
|
|
|
CSSValue getPropertyCSSValue(DOMString property);
|
|
|
|
DOMString getPropertyPriority(DOMString property);
|
|
|
|
// This would be nicer if it used a string default value of "".
|
|
|
|
// See bug 759622.
|
2012-09-05 06:21:33 -07:00
|
|
|
[Throws]
|
2012-08-23 21:08:09 -07:00
|
|
|
void setProperty(DOMString property, DOMString value, [TreatNullAs=EmptyString] optional DOMString priority);
|
2012-09-05 06:21:33 -07:00
|
|
|
[Throws]
|
2012-08-23 21:08:09 -07:00
|
|
|
DOMString removeProperty(DOMString property);
|
|
|
|
|
2012-09-11 12:08:24 -07:00
|
|
|
readonly attribute CSSRule? parentRule;
|
2012-08-23 21:08:09 -07:00
|
|
|
};
|