Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / webidl / CSSStyleDeclaration.webidl
blob76050b75a0ab5d018a936414adca92c201a1edba
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   UTF8String getPropertyValue(UTF8String property);
25   UTF8String getPropertyPriority(UTF8String property);
26   [CEReactions, NeedsSubjectPrincipal=NonSystem, Throws]
27   undefined setProperty(UTF8String property, [LegacyNullToEmptyString] UTF8String value, optional [LegacyNullToEmptyString] UTF8String priority = "");
28   [CEReactions, Throws]
29   UTF8String removeProperty(UTF8String property);
31   readonly attribute CSSRule? parentRule;