Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Protocol.CSS.CSSRule

Headless Chrome Deno API
Latest
interface Protocol.CSS.CSSRule
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { CSSRule } = Protocol.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.

origin: StyleSheetOrigin

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.