struct Protocol::LayerTree::StickyPositionConstraint

Overview

Sticky position constraints.

Included Modules

Defined in:

protocol/layer_tree.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def containing_block_rect : DOM::Rect #

Layout rectangle of the containing block of the sticky element


[View source]
def nearest_layer_shifting_containing_block : LayerId | Nil #

The nearest sticky layer that shifts the containing block


[View source]
def nearest_layer_shifting_sticky_box : LayerId | Nil #

The nearest sticky layer that shifts the sticky box


[View source]
def sticky_box_rect : DOM::Rect #

Layout rectangle of the sticky element before being shifted


[View source]