Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.CSS.CSSRule
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.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.

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.

optional
containerQueries: CSSContainerQuery[]

Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.

optional
supports: CSSSupports[]
optional
layers: CSSLayer[]

Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.