Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Page.prototype.addStyleTag
Re-export
import { Page } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";

Adds a <link rel="stylesheet"> tag into the page with the desired URL or a <style type="text/css"> tag with the content.

Parameters

options: { url?: string; path?: string; content?: string; }

Returns

Promise<ElementHandle>

Promise which resolves to the added tag when the stylesheet's onload fires or when the CSS content was injected into frame.