pub struct CSSStyleSheetHeader {Show 18 fields
pub styleSheetId: StyleSheetId,
pub frameId: FrameId,
pub sourceURL: String,
pub sourceMapURL: Option<String>,
pub origin: StyleSheetOrigin,
pub title: String,
pub ownerNode: Option<BackendNodeId>,
pub disabled: bool,
pub hasSourceURL: Option<bool>,
pub isInline: bool,
pub isMutable: bool,
pub isConstructed: bool,
pub startLine: f64,
pub startColumn: f64,
pub length: f64,
pub endLine: f64,
pub endColumn: f64,
pub loadingFailed: Option<bool>,
}Expand description
CSS stylesheet metainformation.
Fields§
§styleSheetId: StyleSheetIdThe stylesheet identifier.
frameId: FrameIdOwner frame identifier.
sourceURL: StringStylesheet 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).
sourceMapURL: Option<String>URL of source map associated with the stylesheet (if any).
origin: StyleSheetOriginStylesheet origin.
title: StringStylesheet title.
ownerNode: Option<BackendNodeId>The backend id for the owner node of the stylesheet.
disabled: boolDenotes whether the stylesheet is disabled.
hasSourceURL: Option<bool>Whether the sourceURL field value comes from the sourceURL comment.
isInline: boolWhether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
isMutable: boolWhether 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: boolTrue if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
startLine: f64Line offset of the stylesheet within the resource (zero based).
startColumn: f64Column offset of the stylesheet within the resource (zero based).
length: f64Size of the content (in characters).
endLine: f64Line offset of the end of the stylesheet within the resource (zero based).
endColumn: f64Column offset of the end of the stylesheet within the resource (zero based).
loadingFailed: Option<bool>If the style sheet was loaded from a network resource, this indicates when the resource failed to load
Trait Implementations§
Source§impl Clone for CSSStyleSheetHeader
impl Clone for CSSStyleSheetHeader
Source§fn clone(&self) -> CSSStyleSheetHeader
fn clone(&self) -> CSSStyleSheetHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more