Skip to main content

Module snapshot

Module snapshot 

Expand description

Frame from a DevTools DOMSnapshot.captureSnapshot result.

The snapshot is the engine’s own layout: every box and text line with the bounds the engine computed, in document coordinates, plus paint order. This module groups those into layers and makes every item relative to its layer, which is what keeps scroll and sticky motion out of the item lists.

Call the engine with capture_params; pass the result to convert.

Structs§

SnapshotError
Why a snapshot could not be read.

Constants§

COMPUTED_STYLES
Computed styles requested from the engine, in the order the converter reads them.

Functions§

capture_params
Parameters for DOMSnapshot.captureSnapshot.
convert
Convert a snapshot of a viewport-sized page into frame seq.