Skip to content

Clip scrollable_overflow to border box for overflow:hidden/clip - #604

Closed
jerry4718 wants to merge 1 commit into
DioxusLabs:mainfrom
jerry4718:main
Closed

Clip scrollable_overflow to border box for overflow:hidden/clip#604
jerry4718 wants to merge 1 commit into
DioxusLabs:mainfrom
jerry4718:main

Conversation

@jerry4718

@jerry4718 jerry4718 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

When an element has overflow:hidden or overflow:clip on an axis, its scrollable_overflow now gets clipped to the border box on that axis. This prevents hit testing from matching children that are visually clipped, which caused incorrect cursor and hover state when a child with a transform escaped its parent's overflow:hidden clipping.

WPT results

No changes in test results compared to main.

Generated by the WPT workflow.

When an element has overflow:hidden or overflow:clip on an axis, its
scrollable_overflow now gets clipped to the border box on that axis.
This prevents hit testing from matching children that are visually
clipped, which caused incorrect cursor and hover state when a child
with a transform escaped its parent's overflow:hidden clipping.
@jerry4718
jerry4718 deleted the branch DioxusLabs:main August 5, 2026 12:28
@jerry4718 jerry4718 closed this Aug 5, 2026
@jerry4718
jerry4718 deleted the main branch August 5, 2026 12:28
@jerry4718
jerry4718 restored the main branch August 5, 2026 12:30
@jerry4718
jerry4718 deleted the main branch August 5, 2026 12:31
@jerry4718
jerry4718 restored the main branch August 5, 2026 12:31
@nicoburns

Copy link
Copy Markdown
Member

I definitely want to fix this, but I'm not convinced this is the right place. I think the fix probably ought to go in the hit testing code. Because the scrollable_overflow is also used for actual scrolling (which applies to Overflow::Hidden nodes which are programmatically scrollable!)

@jerry4718

jerry4718 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

I reopened it at #612

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

Successfully merging this pull request may close these issues.

2 participants