struct Protocol::CSS::CSSStyleSheetHeader

Overview

CSS stylesheet metainformation.

Included Modules

Defined in:

protocol/css.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def disabled : Bool #

Denotes whether the stylesheet is disabled.


[View source]
def end_column : Number::Primitive #

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


[View source]
def end_line : Number::Primitive #

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


[View source]
def frame_id : Page::FrameId #

Owner frame identifier.


[View source]
def has_source_url : Bool | Nil #

Whether the sourceURL field value comes from the sourceURL comment.


[View source]
def is_constructed : Bool #

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


[View source]
def is_inline : Bool #

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


[View source]
def is_mutable : 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.

[View source]
def length : Number::Primitive #

Size of the content (in characters).


[View source]
def origin : StyleSheetOrigin #

Stylesheet origin.


[View source]
def owner_node : DOM::BackendNodeId | Nil #

The backend id for the owner node of the stylesheet.


[View source]
def source_map_url : String | Nil #

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


[View source]
def 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 sylesheet imported as a CSS module script).


[View source]
def start_column : Number::Primitive #

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


[View source]
def start_line : Number::Primitive #

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


[View source]
def style_sheet_id : StyleSheetId #

The stylesheet identifier.


[View source]
def title : String #

Stylesheet title.


[View source]