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/.
6 * The origin of this IDL file is
7 * http://dev.w3.org/csswg/cssom/
10 // Because of getComputedStyle, many CSSStyleDeclaration objects can be
12 [ProbablyShortLivingWrapper,
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);
22 sequence<UTF8String> getCSSImageURLs(UTF8String property);
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 = "");
32 UTF8String removeProperty(UTF8String property);
34 readonly attribute CSSRule? parentRule;