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

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

Headless Chrome Deno API
Latest
interface Protocol.CSS.RuleUsage
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { RuleUsage } = Protocol.CSS;

CSS coverage information.

Properties

styleSheetId: StyleSheetId

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

startOffset: number

Offset of the start of the rule (including selector) from the beginning of the stylesheet.

endOffset: number

Offset of the end of the rule body from the beginning of the stylesheet.

used: boolean

Indicates whether the rule was actually used by some element in the page.