pub struct CssStyleSheetHeader { /* private fields */ }experimental and CSS and DOM and Page only.Expand description
CSS stylesheet metainformation.
Implementations§
Source§impl CssStyleSheetHeader
impl CssStyleSheetHeader
pub fn builder() -> CssStyleSheetHeaderBuilder
Sourcepub fn style_sheet_id(&self) -> &StyleSheetId
pub fn style_sheet_id(&self) -> &StyleSheetId
The stylesheet identifier.
Sourcepub fn source_url(&self) -> &str
pub fn source_url(&self) -> &str
Stylesheet resource URL.
Sourcepub fn source_map_url(&self) -> Option<&String>
pub fn source_map_url(&self) -> Option<&String>
URL of source map associated with the stylesheet (if any).
Sourcepub fn origin(&self) -> &StyleSheetOrigin
pub fn origin(&self) -> &StyleSheetOrigin
Stylesheet origin.
Sourcepub fn owner_node(&self) -> Option<&BackendNodeId>
pub fn owner_node(&self) -> Option<&BackendNodeId>
The backend id for the owner node of the stylesheet.
Sourcepub fn has_source_url(&self) -> Option<&bool>
pub fn has_source_url(&self) -> Option<&bool>
Whether the sourceURL field value comes from the sourceURL comment.
Sourcepub fn is_inline(&self) -> bool
pub fn is_inline(&self) -> bool
Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
Sourcepub fn is_mutable(&self) -> bool
pub fn is_mutable(&self) -> bool
Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API.
element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.Sourcepub fn is_constructed(&self) -> bool
pub fn is_constructed(&self) -> bool
Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()).
Sourcepub fn start_line(&self) -> f64
pub fn start_line(&self) -> f64
Line offset of the stylesheet within the resource (zero based).
Sourcepub fn start_column(&self) -> f64
pub fn start_column(&self) -> f64
Column offset of the stylesheet within the resource (zero based).
Sourcepub fn end_line(&self) -> f64
pub fn end_line(&self) -> f64
Line offset of the end of the stylesheet within the resource (zero based).
Sourcepub fn end_column(&self) -> f64
pub fn end_column(&self) -> f64
Column offset of the end of the stylesheet within the resource (zero based).
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