tor-browser

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

HTMLStyleElement.webidl (1391B)


      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://www.whatwg.org/specs/web-apps/current-work/#the-style-element
      8 * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
      9 */
     10 
     11 [Exposed=Window]
     12 interface HTMLStyleElement : HTMLElement {
     13  [HTMLConstructor] constructor();
     14 
     15           [Pure]
     16           attribute boolean disabled;
     17           [CEReactions, SetterThrows, Pure]
     18           attribute DOMString media;
     19           [CEReactions, SetterThrows, Pure]
     20           attribute DOMString type;
     21           [Pref="dom.element.blocking.enabled", SameObject, PutForwards=value]
     22           readonly attribute DOMTokenList blocking;
     23 };
     24 HTMLStyleElement includes LinkStyle;
     25 
     26 // Mozilla-specific additions to support devtools
     27 partial interface HTMLStyleElement {
     28  /**
     29   * Mark this style element with a devtools-specific principal that
     30   * skips Content Security Policy unsafe-inline checks. This triggering
     31   * principal will be overwritten by any callers that set textContent
     32   * or innerHTML on this element.
     33   */
     34  [ChromeOnly]
     35  undefined setDevtoolsAsTriggeringPrincipal();
     36 };