Fix child disappearing with mixed overflow clip/visible.#43620
Conversation
|
Can you link the relevant WebRender logic? |
|
Hello @Loirooriol Please find it attached here |
|
@Loirooriol Please let me know if I'm missing something |
|
I can't reproduce the problem in the issue.
Is it cast to Instead of hardcoding |
|
@Messi002, can you confirm whether the issue is reproductible in your side? Also following Oriol's suggestion, please use For the PR description, we could use prefix |
Can you point where this happens for Windows, but not for Linux? The difference in behavior seems a bit weird. |
Signed-off-by: Messi002 <[email protected]>
|
@stevennovaryo |
|
@Loirooriol |
|
Waiting for updates from you |
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
|
Please use |
|
Ok! |
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
Loirooriol
left a comment
There was a problem hiding this comment.
A bit unfortunate that we can't add an automated test (#43696)
Fix child element disappearing when parent has mixed overflow clip/visible
When a parent element clips overflow on one axis but not the other (e.g. overflow-y: clip with overflow-x: visible), the non-clipped axis was using f32::MIN/f32::MAX. On screens with a device pixel ratio above 1, this causes child elements to disappear.
The fix uses LayoutRect::max_rect() instead.
Testing: Reproduced the bug using --device-pixel-ratio 2 on Linux and the child disappears on main branch but renders correctly with this fix.
fixes: #43599