You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Masks: re-read boxes before each shot, clip to overflow, cover overflowing descendants #72
Read the boxes again. Re-read mask boxes on each shot attempt, or after settle, and treat a box that moved between reads as unstable instead of painting a stale rect.
Clip each mask to its overflow clipping ancestors.
Cover overflowing descendants. Paint the union of the element's box and its rendered descendants' boxes, or add includeOverflow: true to a mask.
Why
A pinned section moved after the boxes were read. On a ScrollTrigger-pinned section, base vs base differed only when the player inside was masked, by a ±14–22 px band. In one shot the magenta box started 39 px above its overflow:hidden container. Unmasked, the route was clean in 3 runs × 5 widths, so the mask itself was the noise. The likely cause is the pinned section re-laying out after scrollTo(0,0), after the boxes were read.
Descendants painted outside the masked box. video.js draws .vjs-poster outside the player div: at 375 px it starts 44 px above it. Masking #player left an animated GIF strip showing, so every video.js mask needed #player .vjs-poster too. The second page with this only surfaced a full cycle later.
Activity
Masks: re-read boxes at every shot, clip to overflow, cover overflowi…