Skip to content

layout: Add a query for getting the effective overflow of an element and use it in script#57481

Merged
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_42251
Mar 5, 2026
Merged

layout: Add a query for getting the effective overflow of an element and use it in script#57481
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_42251

Conversation

@servo-wpt-sync
Copy link
Collaborator

@servo-wpt-sync servo-wpt-sync commented Feb 2, 2026

In layout calculation within script, Instead of relying on the computed values for overflow, query the overflow from layout for its used value to accurately reflect whether an element establish a scroll container. This query will be used for IntersectionObserver as well.

Testing: There are new IntersectionObserver WPT failures:

  • intersection-observer/isIntersecting-change-events.html
  • intersection-observer/containing-block.html

The failures are more than likely a false positive because intersection observation steps wasn't supposed to trigger a reflow, but it was before. It could be caused by the implementation of IntersectionObserver in major UAs being a little bit different from the spec in the calculation of threshold and isIntersecting .
Reviewed in servo/servo#42251

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_42251 branch 3 times, most recently from 4639b56 to 26e0cff Compare February 2, 2026 15:45
@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_42251 branch 4 times, most recently from b057c4f to 118b64e Compare February 26, 2026 10:10
@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_42251 branch 2 times, most recently from 04d36cd to 958e22a Compare March 5, 2026 09:46
@servo-wpt-sync servo-wpt-sync changed the title script: Add query for effective overflow layout: Add a query for getting the effective overflow of an element and use it in script Mar 5, 2026
Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com>
Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com>
@servo-wpt-sync servo-wpt-sync merged commit 34cb8f3 into web-platform-tests:master Mar 5, 2026
25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_42251 branch March 5, 2026 12:16
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.

3 participants