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] 12interface 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}; 22HTMLStyleElement includes LinkStyle; 23 24// Mozilla-specific additions to support devtools 25partial interface HTMLStyleElement { 26 /** 27 * Mark this style element with a devtools-specific principal that 28 * skips Content Security Policy unsafe-inline checks. This triggering 29 * principal will be overwritten by any callers that set textContent 30 * or innerHTML on this element. 31 */ 32 [ChromeOnly] 33 void setDevtoolsAsTriggeringPrincipal(); 34}; 35