Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.CSS.CSSRule
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { CSSRule } = default.CSS;

CSS rule representation.

Properties

optional
styleSheetId: StyleSheetId

The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.

selectorList: SelectorList

Rule selector data.

Parent stylesheet's origin.

style: CSSStyle

Associated style declaration.

optional
media: CSSMedia[]

Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.