2012-08-24 04:08:09 +00: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 13:21:33 +00:00
|
|
|
[SetterThrows]
|
2012-08-24 04:08:09 +00:00
|
|
|
attribute DOMString cssText;
|
|
|
|
|
|
|
|
readonly attribute unsigned long length;
|
|
|
|
getter DOMString item(unsigned long index);
|
|
|
|
|
2012-09-05 13:21:33 +00:00
|
|
|
[Throws]
|
2012-08-24 04:08:09 +00:00
|
|
|
DOMString getPropertyValue(DOMString property);
|
|
|
|
// Mozilla extension, sort of
|
2012-09-05 13:21:33 +00:00
|
|
|
[Throws]
|
2012-10-01 16:49:41 +00:00
|
|
|
CSSValue? getPropertyCSSValue(DOMString property);
|
2012-08-24 04:08:09 +00:00
|
|
|
DOMString getPropertyPriority(DOMString property);
|
2012-09-05 13:21:33 +00:00
|
|
|
[Throws]
|
2013-05-29 20:15:50 +00:00
|
|
|
void setProperty(DOMString property, DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
|
2012-09-05 13:21:33 +00:00
|
|
|
[Throws]
|
2012-08-24 04:08:09 +00:00
|
|
|
DOMString removeProperty(DOMString property);
|
|
|
|
|
2012-09-11 19:08:24 +00:00
|
|
|
readonly attribute CSSRule? parentRule;
|
2012-08-24 04:08:09 +00:00
|
|
|
};
|
2013-09-15 23:35:49 +00:00
|
|
|
|
|
|
|
// Mozilla extensions
|
|
|
|
partial interface CSSStyleDeclaration {
|
|
|
|
[ChromeOnly,Throws]
|
|
|
|
DOMString getAuthoredPropertyValue(DOMString property);
|
|
|
|
};
|