Table of Contents

Class CSSStyleSheetHeader

Namespace
Selenium.WebDriver.BiDi.Cdp.CSS
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

CSS stylesheet metainformation.

public sealed record CSSStyleSheetHeader : IEquatable<CSSStyleSheetHeader>
Inheritance
CSSStyleSheetHeader
Implements
Inherited Members

Constructors

CSSStyleSheetHeader(StyleSheetId, FrameId, string, StyleSheetOrigin, string, bool, bool, bool, bool, double, double, double, double, double)

CSS stylesheet metainformation.

public CSSStyleSheetHeader(StyleSheetId StyleSheetId, FrameId FrameId, string SourceURL, StyleSheetOrigin Origin, string Title, bool Disabled, bool IsInline, bool IsMutable, bool IsConstructed, double StartLine, double StartColumn, double Length, double EndLine, double EndColumn)

Parameters

StyleSheetId StyleSheetId

The stylesheet identifier.

FrameId 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 stylesheet imported as a CSS module script).

Origin StyleSheetOrigin

Stylesheet origin.

Title string

Stylesheet title.

Disabled bool

Denotes whether the stylesheet is disabled.

IsInline bool

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

IsMutable bool

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

IsConstructed bool

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

StartLine double

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

StartColumn double

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

Length double

Size of the content (in characters).

EndLine double

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

EndColumn double

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

Properties

Disabled

Denotes whether the stylesheet is disabled.

public bool Disabled { get; init; }

Property Value

bool

EndColumn

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

public double EndColumn { get; init; }

Property Value

double

EndLine

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

public double EndLine { get; init; }

Property Value

double

FrameId

Owner frame identifier.

public FrameId FrameId { get; init; }

Property Value

FrameId

HasSourceURL

Whether the sourceURL field value comes from the sourceURL comment.

public bool? HasSourceURL { get; init; }

Property Value

bool?

IsConstructed

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

public bool IsConstructed { get; init; }

Property Value

bool

IsInline

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

public bool IsInline { get; init; }

Property Value

bool

IsMutable

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

public bool IsMutable { get; init; }

Property Value

bool

Length

Size of the content (in characters).

public double Length { get; init; }

Property Value

double

LoadingFailed

If the style sheet was loaded from a network resource, this indicates when the resource failed to load

public bool? LoadingFailed { get; init; }

Property Value

bool?

Origin

Stylesheet origin.

public StyleSheetOrigin Origin { get; init; }

Property Value

StyleSheetOrigin

OwnerNode

The backend id for the owner node of the stylesheet.

public BackendNodeId? OwnerNode { get; init; }

Property Value

BackendNodeId

SourceMapURL

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

public string? SourceMapURL { get; init; }

Property Value

string

SourceURL

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

public string SourceURL { get; init; }

Property Value

string

StartColumn

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

public double StartColumn { get; init; }

Property Value

double

StartLine

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

public double StartLine { get; init; }

Property Value

double

StyleSheetId

The stylesheet identifier.

public StyleSheetId StyleSheetId { get; init; }

Property Value

StyleSheetId

Title

Stylesheet title.

public string Title { get; init; }

Property Value

string