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://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
12 interface HTMLStyleElement : HTMLElement {
13 [HTMLConstructor] constructor();
16 attribute boolean disabled;
17 [CEReactions, SetterThrows, Pure]
18 attribute DOMString media;
19 [CEReactions, SetterThrows, Pure]
20 attribute DOMString type;
22 HTMLStyleElement includes LinkStyle;
24 // Mozilla-specific additions to support devtools
25 partial interface HTMLStyleElement {
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.
33 undefined setDevtoolsAsTriggeringPrincipal();