struct Protocol::CSS::CSSRule

Overview

CSS rule representation.

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 container_queries : Array(CSSContainerQuery) | Nil #

Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.


[View source]
def layers : Array(CSSLayer) | Nil #

Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.


[View source]
def media : Array(CSSMedia) | Nil #

Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.


[View source]
def origin : StyleSheetOrigin #

Parent stylesheet's origin.


[View source]
def scopes : Array(CSSScope) | Nil #

@scope CSS at-rule array. The array enumerates @scope at-rules starting with the innermost one, going outwards.


[View source]
def selector_list : SelectorList #

Rule selector data.


[View source]
def style : CSSStyle #

Associated style declaration.


[View source]
def style_sheet_id : StyleSheetId | Nil #

The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.


[View source]
def supports : Array(CSSSupports) | Nil #

@supports CSS at-rule array. The array enumerates @supports at-rules starting with the innermost one, going outwards.


[View source]