Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLStyleElement

A element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle.

interface HTMLStyleElement extends HTMLElement, LinkStyle {
disabled: boolean;
media: string;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var HTMLStyleElement: {
prototype: HTMLStyleElement;
}
;

§Extends

§Properties

§
disabled: boolean
[src]

Enables or disables the style sheet.

§
media: string
[src]

Sets or retrieves the media type.

§
type: string
[src]

Retrieves the CSS language in which the style sheet is written.

§Methods

§
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]