Bug 1835529 [wpt PR 40276] - Update wpt metadata, a=testonly
[gecko.git] / dom / webidl / HTMLStyleElement.webidl
blobea63d233c9b6eedf68263514eb159f203e4d979b
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  */
11 [Exposed=Window]
12 interface HTMLStyleElement : HTMLElement {
13   [HTMLConstructor] constructor();
15            [Pure]
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 {
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   undefined setDevtoolsAsTriggeringPrincipal();