Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.LayerTree.StickyPositionConstraint
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { StickyPositionConstraint } = default.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