Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.CSS.AddRuleRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { AddRuleRequest } = Protocol.CSS;

Properties

styleSheetId: StyleSheetId

The css style sheet identifier where a new rule should be inserted.

ruleText: string

The text of a new rule.

location: SourceRange

Text position of a new rule in the target style sheet.