tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CSSStyleDeclaration.webidl (1364B)


      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 */
      9 
     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;
     17 
     18  readonly attribute unsigned long length;
     19  getter UTF8String item(unsigned long index);
     20 
     21  [Throws, ChromeOnly]
     22  sequence<UTF8String> getCSSImageURLs(UTF8String property);
     23 
     24  [ChromeOnly]
     25  readonly attribute float usedFontSize;
     26 
     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);
     33  [ChromeOnly]
     34  boolean hasLonghandProperty(UTF8String property);
     35 
     36  readonly attribute CSSRule? parentRule;
     37 };