Skip to content

layout: Advance the containing block walk past boxless ancestors - #62330

Open
servo-wpt-sync wants to merge 1 commit into
web-platform-tests:masterfrom
servo:servo_export_47693
Open

layout: Advance the containing block walk past boxless ancestors#62330
servo-wpt-sync wants to merge 1 commit into
web-platform-tests:masterfrom
servo:servo_export_47693

Conversation

@servo-wpt-sync

@servo-wpt-sync servo-wpt-sync commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

containing_block_for_node walks up the flat tree, but assigns current_ancestor only at the bottom of the loop body. The early continue for an ancestor with no layout box therefore re-reads the same flat tree parent forever. It is an infinite loop in the script thread.

Testing: Two new tests in intersection-observer. Both timeout without this change.
Fixes: #45915
Reviewed in servo/servo#47693

Signed-off-by: mxmgorin <102797145+mxmgorin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants