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

CSS stylesheet metainformation.

Properties

styleSheetId: StyleSheetId

The stylesheet identifier.

frameId: Page.FrameId

Owner frame identifier.

sourceURL: string

Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported as a CSS module script).

optional
sourceMapURL: string

URL of source map associated with the stylesheet (if any).

Stylesheet origin.

title: string

Stylesheet title.

optional
ownerNode: DOM.BackendNodeId

The backend id for the owner node of the stylesheet.

disabled: boolean

Denotes whether the stylesheet is disabled.

optional
hasSourceURL: boolean

Whether the sourceURL field value comes from the sourceURL comment.

isInline: boolean

Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.

isMutable: boolean

Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.

isConstructed: boolean

True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.

startLine: number

Line offset of the stylesheet within the resource (zero based).

startColumn: number

Column offset of the stylesheet within the resource (zero based).

length: number

Size of the content (in characters).

endLine: number

Line offset of the end of the stylesheet within the resource (zero based).

endColumn: number

Column offset of the end of the stylesheet within the resource (zero based).