ladybird
ladybird copied to clipboard
Scrollbar gutters don't respect scroll offset
Summary
When I have a scrollable element in ladybird with a visible scrollbar gutter and I scroll the page around it, the scrollbar gutter does not move.
Operating system
Linux
Steps to reproduce
- Open the reduced test case
- Click the red box's scrollbar so that it keeps showing the scrollbar gutter
- Scroll down the entire page
- Observe that the gutter stays in place
Expected behavior
The scrollbar gutter should scroll up.
Actual behavior
The scrollbar gutter stays in place.
URL for a reduced test case
N/A
HTML/SVG/etc. source for a reduced test case
<!DOCTYPE html>
<style>
body {
height: 200vh;
}
div {
width: 100px;
height: 100px;
background-color: red;
overflow-y: scroll;
}
</style>
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in purus tellus. Maecenas euismod hendrerit velit a lacinia. Maecenas id vestibulum nibh. Phasellus in justo at ante dignissim fringilla sit amet eget tellus. Fusce eget euismod lacus, non semper arcu. Fusce laoreet eleifend tincidunt. Donec efficitur dictum orci suscipit egestas. Ut interdum faucibus massa et finibus. </div>
Log output and (if possible) backtrace
None
Screenshots or screen recordings
https://github.com/user-attachments/assets/ab109546-3a89-4a37-b091-9c7a4d153d33
Build flags or config settings
None
Contribute a patch?
- [ ] I’ll contribute a patch for this myself.
Hi! @Psychpsyo I would like to submit a PR for this issue. The PR would be submitted soon.