Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.LayerTree.StickyPositionConstraint
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { StickyPositionConstraint } = Protocol.LayerTree;

Sticky position constraints.

Properties

stickyBoxRect: DOM.Rect

Layout rectangle of the sticky element before being shifted

containingBlockRect: DOM.Rect

Layout rectangle of the containing block of the sticky element

optional
nearestLayerShiftingStickyBox: LayerId

The nearest sticky layer that shifts the sticky box

optional
nearestLayerShiftingContainingBlock: LayerId

The nearest sticky layer that shifts the containing block