2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-08-24 08:08:09 +04:00
|
|
|
/* 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/
|
|
|
|
*/
|
|
|
|
|
2018-06-21 15:28:47 +03:00
|
|
|
// Because of getComputedStyle, many CSSStyleDeclaration objects can be
|
|
|
|
// short-living.
|
2019-09-27 18:26:14 +03:00
|
|
|
[ProbablyShortLivingWrapper,
|
|
|
|
Exposed=Window]
|
2012-08-24 08:08:09 +04:00
|
|
|
interface CSSStyleDeclaration {
|
2017-12-21 01:43:18 +03:00
|
|
|
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
|
2012-08-24 08:08:09 +04:00
|
|
|
attribute DOMString cssText;
|
|
|
|
|
|
|
|
readonly attribute unsigned long length;
|
2020-01-04 13:36:49 +03:00
|
|
|
getter UTF8String item(unsigned long index);
|
2012-08-24 08:08:09 +04:00
|
|
|
|
2018-03-08 21:52:32 +03:00
|
|
|
[Throws, ChromeOnly]
|
2020-01-04 13:36:49 +03:00
|
|
|
sequence<UTF8String> getCSSImageURLs(UTF8String property);
|
2018-03-08 21:52:32 +03:00
|
|
|
|
2012-09-05 17:21:33 +04:00
|
|
|
[Throws]
|
2020-01-04 13:36:49 +03:00
|
|
|
DOMString getPropertyValue(UTF8String property);
|
|
|
|
DOMString getPropertyPriority(UTF8String property);
|
2017-12-21 01:43:18 +03:00
|
|
|
[CEReactions, NeedsSubjectPrincipal=NonSystem, Throws]
|
2020-01-04 13:36:49 +03:00
|
|
|
void setProperty(UTF8String property, [TreatNullAs=EmptyString] UTF8String value, optional [TreatNullAs=EmptyString] DOMString priority = "");
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, Throws]
|
2020-01-04 13:36:49 +03:00
|
|
|
DOMString removeProperty(UTF8String property);
|
2012-08-24 08:08:09 +04:00
|
|
|
|
2012-09-11 23:08:24 +04:00
|
|
|
readonly attribute CSSRule? parentRule;
|
2012-08-24 08:08:09 +04:00
|
|
|
};
|