struct Protocol::CSS::GetMatchedStylesForNode

Overview

Returns requested styles for a DOM node identified by nodeId.

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 attributes_style : CSSStyle | Nil #

Attribute-defined element style (e.g. resulting from "width=20 height=100%").


[View source]
def css_keyframes_rules : Array(CSSKeyframesRule) | Nil #

A list of CSS keyframed animations matching this node.


[View source]
def inherited : Array(InheritedStyleEntry) | Nil #

A chain of inherited styles (from the immediate node parent up to the DOM tree root).


[View source]
def inherited_pseudo_elements : Array(InheritedPseudoElementMatches) | Nil #

A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).


[View source]
def inline_style : CSSStyle | Nil #

Inline style for the specified DOM node.


[View source]
def matched_css_rules : Array(RuleMatch) | Nil #

CSS rules matching this node, from all applicable stylesheets.


[View source]
def parent_layout_node_id : DOM::NodeId | Nil #

Id of the first parent element that does not have display: contents.


[View source]
def pseudo_elements : Array(PseudoElementMatches) | Nil #

Pseudo style matches for this node.


[View source]