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 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-10-01 09:49:41 -07:00
|
|
|
CSSValue? getPropertyCSSValue(DOMString property);
|
2012-08-23 21:08:09 -07:00
|
|
|
DOMString getPropertyPriority(DOMString property);
|
2012-09-05 06:21:33 -07:00
|
|
|
[Throws]
|
2013-05-29 13:15:50 -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
|
|
|
};
|
2013-09-15 16:35:49 -07:00
|
|
|
|
|
|
|
// Mozilla extensions
|
|
|
|
partial interface CSSStyleDeclaration {
|
|
|
|
[ChromeOnly,Throws]
|
|
|
|
DOMString getAuthoredPropertyValue(DOMString property);
|
|
|
|
};
|