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