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 Mar 5, 2026
Merged
Conversation
wpt-pr-bot
approved these changes
Feb 2, 2026
Collaborator
wpt-pr-bot
left a comment
There was a problem hiding this comment.
The review process for this patch is being conducted in the Servo project.
4639b56 to
26e0cff
Compare
b057c4f to
118b64e
Compare
04d36cd to
958e22a
Compare
script
958e22a to
8f8932b
Compare
Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com>
Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com>
8f8932b to
a9d410c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
IntersectionObserveras well.Testing: There are new
IntersectionObserverWPT failures:intersection-observer/isIntersecting-change-events.htmlintersection-observer/containing-block.htmlThe 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
IntersectionObserverin major UAs being a little bit different from the spec in the calculation ofthresholdandisIntersecting.Reviewed in servo/servo#42251