puppeteer/docs/api/puppeteer.frameaddstyletagoptions.md
2024-04-29 14:50:39 +02:00

956 B

sidebar_label
FrameAddStyleTagOptions

FrameAddStyleTagOptions interface

Signature:

export interface FrameAddStyleTagOptions

Properties

Property

Modifiers

Type

Description

Default

content

optional

string

Raw CSS content to be injected into the frame.

path

optional

string

The path to a CSS file to be injected into the frame.

Remarks:

If path is a relative path, it is resolved relative to the current working directory (process.cwd() in Node.js).

url

optional

string

the URL of the CSS file to be added.