Skip to content

webapi: Improve ResizeObserver#3000

Merged
karlseguin merged 2 commits into
mainfrom
resize-observer
Jul 22, 2026
Merged

webapi: Improve ResizeObserver#3000
karlseguin merged 2 commits into
mainfrom
resize-observer

Conversation

@karlseguin

Copy link
Copy Markdown
Collaborator

This gives ResizeObserver a touch up that brings it on par with how the more flushed out IntersectionObserver behaves. While it's impossible to fully implement this in a headless world, we can correctly emit ResizeObserverEntry in a number of important cases, e.g. visibility change, and style width/height changes.

Most importantly, we not execute the callback on the initial observe, which can unlock some cases.

This aims to improve the rendering raised in #1507.

This gives ResizeObserver a touch up that brings it on par with how the more
flushed out IntersectionObserver behaves. While it's impossible to fully
implement this in a headless world, we can correctly emit ResizeObserverEntry
in a number of important cases, e.g. visibility change, and style width/height
changes.

Most importantly, we not execute the callback on the initial observe, which can
unlock some cases.
@karlseguin
karlseguin merged commit 95ed505 into main Jul 22, 2026
26 checks passed
@karlseguin
karlseguin deleted the resize-observer branch July 22, 2026 23:48
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant