mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 09:22:53 +00:00
LibWeb: Implement scrollbar painting
Introduces the rendering of scroll thumbs in vertical and horizontal directions. Currently, the thumbs are purely graphical elements that do not respond to mouse events. Nevertheless, this is beneficial as it makes it easier to identify elements that should respond to scrolling events. Painting of scrollbars uncovers numerous bugs in the calculation of scrollable overflow rectangles highlighting all the places where elements are made scrollable whey they shouldn't be. Positively, this issue might motivate us to pay more attention to this problem to eliminate unnecessary scrollbars. Currently, the scrollbar style is uniform across all platforms: a semi-transparent gray rectangle with rounded corners. Also here we add `scrollbar-width: none` to all existing scrolling ref-tests, so they keep working with this change.
This commit is contained in:
parent
8d9e20cb03
commit
b821f7b283
Notes:
sideshowbarker
2024-07-16 21:45:42 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: b821f7b283
Pull-request: https://github.com/SerenityOS/serenity/pull/23381
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/trflynn89 ✅
16 changed files with 104 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
<style>
|
||||
* {
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
#container {
|
||||
width: 300px;
|
||||
height: 500px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue