Skip to content

[css-overflow] What is the expected behavior of scrollable overflow in case of non-rectangular descendant area due to transforms? #12112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
stevennovaryo opened this issue Apr 23, 2025 · 0 comments

Comments

@stevennovaryo
Copy link

stevennovaryo commented Apr 23, 2025

The overflow spec defines how scrollable overflow area calculated in a recursive manner. Basically, the spec would consider the union of children's area for each layer of recursion. In which, could be non-rectangular due to transform.

On the other hand, implementations uses the smallest bounding rectangle of these union in each layer of recursion for the calculation of a scrollable overflow area. This causes inaccuracy where the scrollable overflow of the element could extend beyond the farthest point of it's descendants if it have nested transforms that results in non-rectangular shapes. As shown by scrollable overflow of an element with nested rotated descendant example.

cc: @xiaochengh @Loirooriol

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

No branches or pull requests

1 participant