pub struct CssStyleSheetHeader {Show 18 fields
pub style_sheet_id: StyleSheetId,
pub frame_id: FrameId,
pub source_url: String,
pub source_map_url: Option<String>,
pub origin: StyleSheetOrigin,
pub title: String,
pub owner_node: Option<BackendNodeId>,
pub disabled: bool,
pub has_source_url: Option<bool>,
pub is_inline: bool,
pub is_mutable: bool,
pub is_constructed: bool,
pub start_line: f64,
pub start_column: f64,
pub length: f64,
pub end_line: f64,
pub end_column: f64,
pub loading_failed: Option<bool>,
}
Expand description
CSS stylesheet metainformation. CSSStyleSheetHeader
Fields§
§style_sheet_id: StyleSheetId
The stylesheet identifier.
frame_id: FrameId
Owner frame identifier.
source_url: 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).
source_map_url: Option<String>
URL of source map associated with the stylesheet (if any).
origin: StyleSheetOrigin
Stylesheet origin.
title: String
Stylesheet title.
owner_node: Option<BackendNodeId>
The backend id for the owner node of the stylesheet.
disabled: bool
Denotes whether the stylesheet is disabled.
has_source_url: Option<bool>
Whether the sourceURL field value comes from the sourceURL comment.
is_inline: bool
Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
is_mutable: 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.
is_constructed: bool
True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
start_line: f64
Line offset of the stylesheet within the resource (zero based).
start_column: f64
Column offset of the stylesheet within the resource (zero based).
length: f64
Size of the content (in characters).
end_line: f64
Line offset of the end of the stylesheet within the resource (zero based).
end_column: f64
Column offset of the end of the stylesheet within the resource (zero based).
loading_failed: Option<bool>
If the style sheet was loaded from a network resource, this indicates when the resource failed to load
Implementations§
Source§impl CssStyleSheetHeader
impl CssStyleSheetHeader
pub fn builder() -> CssStyleSheetHeaderBuilder
Source§impl CssStyleSheetHeader
impl CssStyleSheetHeader
pub const IDENTIFIER: &'static str = "CSS.CSSStyleSheetHeader"
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