Skip to content

Keep Responsive-Design content visibility wait live - #51

Merged
issackjohn merged 1 commit into
responsive-designfrom
responsive-design-cv-liveness
Jun 1, 2026
Merged

Keep Responsive-Design content visibility wait live#51
issackjohn merged 1 commit into
responsive-designfrom
responsive-design-cv-liveness

Conversation

@issackjohn

@issackjohn issackjohn commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Keep the Responsive-Design async step from hanging when Safari overscrolls the chat section.

Safari stable can overscroll the chat element in this workload, tracked in WebKit#525. When that happens, the benchmark can wait forever for video-grid-content-visibility-complete, which is emitted from a contentvisibilityautostatechange handler.

That native event only fires when the browser changes the element's skipped state. If no skipped-state transition occurs, the benchmark has already forced layout for the preceding interactions and should wait for rendering to settle rather than blocking forever.

This keeps the content-visibility completion signal when it happens, and falls back to a double requestAnimationFrame for liveness.

@issackjohn
issackjohn force-pushed the responsive-design-cv-liveness branch from ebfa5e3 to 4c12f26 Compare June 1, 2026 23:23
Safari stable can overscroll the chat element in this workload, tracked in WebKit#525. When that happens, the video grid's contentvisibilityautostatechange event may never arrive.

Keep the content-visibility completion signal when it happens, and fall back to a double requestAnimationFrame so the async step remains live after forced layout work has settled.
@issackjohn
issackjohn force-pushed the responsive-design-cv-liveness branch from 4c12f26 to 81c2fb5 Compare June 1, 2026 23:25
@issackjohn
issackjohn marked this pull request as ready for review June 1, 2026 23:26
@issackjohn
issackjohn merged commit 1419aa2 into responsive-design Jun 1, 2026
@issackjohn
issackjohn deleted the responsive-design-cv-liveness branch June 1, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant