Extremely Popular
Go to Latest
interface puppeteer.LayerTree.StickyPositionConstraint
import { type puppeteer } from "https://dotland.deno.dev/x/fresh@1.0.2/tests/deps.ts";
const { StickyPositionConstraint } = puppeteer.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