Table of Contents

Class CSSStyleSheetHeader

Namespace
OpenQA.Selenium.DevTools.V148.CSS
Assembly
Selenium.WebDriver.dll

CSS stylesheet metainformation.

public sealed class CSSStyleSheetHeader
Inheritance
CSSStyleSheetHeader
Inherited Members

Properties

Disabled

Denotes whether the stylesheet is disabled.

[JsonPropertyName("disabled")]
public bool Disabled { get; set; }

Property Value

bool

EndColumn

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

[JsonPropertyName("endColumn")]
public double EndColumn { get; set; }

Property Value

double

EndLine

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

[JsonPropertyName("endLine")]
public double EndLine { get; set; }

Property Value

double

FrameId

Owner frame identifier.

[JsonPropertyName("frameId")]
public string FrameId { get; set; }

Property Value

string

HasSourceURL

Whether the sourceURL field value comes from the sourceURL comment.

[JsonPropertyName("hasSourceURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? HasSourceURL { get; set; }

Property Value

bool?

IsConstructed

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

[JsonPropertyName("isConstructed")]
public bool IsConstructed { get; set; }

Property Value

bool

IsInline

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

[JsonPropertyName("isInline")]
public bool IsInline { get; set; }

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.

[JsonPropertyName("isMutable")]
public bool IsMutable { get; set; }

Property Value

bool

Length

Size of the content (in characters).

[JsonPropertyName("length")]
public double Length { get; set; }

Property Value

double

LoadingFailed

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

[JsonPropertyName("loadingFailed")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? LoadingFailed { get; set; }

Property Value

bool?

Origin

Stylesheet origin.

[JsonPropertyName("origin")]
public StyleSheetOrigin Origin { get; set; }

Property Value

StyleSheetOrigin

OwnerNode

The backend id for the owner node of the stylesheet.

[JsonPropertyName("ownerNode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? OwnerNode { get; set; }

Property Value

long?

SourceMapURL

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

[JsonPropertyName("sourceMapURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? SourceMapURL { get; set; }

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

[JsonPropertyName("sourceURL")]
public string SourceURL { get; set; }

Property Value

string

StartColumn

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

[JsonPropertyName("startColumn")]
public double StartColumn { get; set; }

Property Value

double

StartLine

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

[JsonPropertyName("startLine")]
public double StartLine { get; set; }

Property Value

double

StyleSheetId

The stylesheet identifier.

[JsonPropertyName("styleSheetId")]
public string StyleSheetId { get; set; }

Property Value

string

Title

Stylesheet title.

[JsonPropertyName("title")]
public string Title { get; set; }

Property Value

string