Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.CSS.CSSStyleSheetHeader
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.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.

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

Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()).

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).