Bug 1890793: Assert CallArgs::newTarget is not gray. r=spidermonkey-reviewers,sfink...
[gecko.git] / dom / webidl / CSSStyleDeclaration.webidl
blob8e389574128c0af4fb137f639d3ed50d707d38d7
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * http://dev.w3.org/csswg/cssom/
8  */
10  // Because of getComputedStyle, many CSSStyleDeclaration objects can be
11  // short-living.
12 [ProbablyShortLivingWrapper,
13  Exposed=Window]
14 interface CSSStyleDeclaration {
15   [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
16   attribute UTF8String cssText;
18   readonly attribute unsigned long length;
19   getter UTF8String item(unsigned long index);
21   [Throws, ChromeOnly]
22   sequence<UTF8String> getCSSImageURLs(UTF8String property);
24   [ChromeOnly]
25   readonly attribute float usedFontSize;
27   UTF8String getPropertyValue(UTF8String property);
28   UTF8String getPropertyPriority(UTF8String property);
29   [CEReactions, NeedsSubjectPrincipal=NonSystem, Throws]
30   undefined setProperty(UTF8String property, [LegacyNullToEmptyString] UTF8String value, optional [LegacyNullToEmptyString] UTF8String priority = "");
31   [CEReactions, Throws]
32   UTF8String removeProperty(UTF8String property);
34   readonly attribute CSSRule? parentRule;