Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>HTMLStyleElement

Deno Standard Extensions
Go to Latest
interface HTMLStyleElement
implements HTMLElement, LinkStyle
import { type HTMLStyleElement } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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

Properties

media: string

Sets or retrieves the media type.

deprecated
type: string

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
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