Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>CSSStyleSheet

Advanced Web Composition for Future
Latest
interface CSSStyleSheet
implements StyleSheet
import { type CSSStyleSheet } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.

Properties

readonly
cssRules: CSSRuleList
readonly
ownerRule: CSSRule | null
readonly
rules: CSSRuleList

Methods

addRule(
selector?: string,
style?: string,
index?: number,
): number
deleteRule(index: number): void
insertRule(rule: string, index?: number): number
removeRule(index?: number): void