Class CSSStyleSheetHeader
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
StyleSheetIdStyleSheetIdThe stylesheet identifier.
FrameIdFrameIdOwner frame identifier.
SourceURLstringStylesheet 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).
OriginStyleSheetOriginStylesheet origin.
TitlestringStylesheet title.
DisabledboolDenotes whether the stylesheet is disabled.
IsInlineboolWhether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
IsMutableboolWhether 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.
IsConstructedboolTrue if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
StartLinedoubleLine offset of the stylesheet within the resource (zero based).
StartColumndoubleColumn offset of the stylesheet within the resource (zero based).
LengthdoubleSize of the content (in characters).
EndLinedoubleLine offset of the end of the stylesheet within the resource (zero based).
EndColumndoubleColumn 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
EndColumn
Column offset of the end of the stylesheet within the resource (zero based).
public double EndColumn { get; init; }
Property Value
EndLine
Line offset of the end of the stylesheet within the resource (zero based).
public double EndLine { get; init; }
Property Value
FrameId
Owner frame identifier.
public FrameId FrameId { get; init; }
Property Value
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
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
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
Length
Size of the content (in characters).
public double Length { get; init; }
Property Value
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
OwnerNode
The backend id for the owner node of the stylesheet.
public BackendNodeId? OwnerNode { get; init; }
Property Value
SourceMapURL
URL of source map associated with the stylesheet (if any).
public string? SourceMapURL { get; init; }
Property Value
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
StartColumn
Column offset of the stylesheet within the resource (zero based).
public double StartColumn { get; init; }
Property Value
StartLine
Line offset of the stylesheet within the resource (zero based).
public double StartLine { get; init; }
Property Value
StyleSheetId
The stylesheet identifier.
public StyleSheetId StyleSheetId { get; init; }
Property Value
Title
Stylesheet title.
public string Title { get; init; }