struct Protocol::CSS::CSSProperty

Overview

CSS property declaration data.

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 | Nil #

Whether the property is disabled by the user (present for source-based properties only).


[View source]
def implicit : Bool | Nil #

Whether the property is implicit (implies false if absent).


[View source]
def important : Bool | Nil #

Whether the property has "!important" annotation (implies false if absent).


[View source]
def longhand_properties : Array(CSSProperty) | Nil #

Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.


[View source]
def name : String #

The property name.


[View source]
def parsed_ok : Bool | Nil #

Whether the property is understood by the browser (implies true if absent).


[View source]
def range : SourceRange | Nil #

The entire property range in the enclosing style declaration (if available).


[View source]
def text : String | Nil #

The full property text as specified in the style.


[View source]
def value : String #

The property value.


[View source]