mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Fix document element's .scrollHeight
and .scrollWidth
We were using the viewport's size as the viewport scrolling area, but those are completely different things.
This commit is contained in:
parent
8f139d065c
commit
e8e6dbcee0
Notes:
github-actions[bot]
2025-06-17 16:18:46 +00:00
Author: https://github.com/gmta
Commit: e8e6dbcee0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5121
Reviewed-by: https://github.com/tcl3 ✅
8 changed files with 36 additions and 16 deletions
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
#a {
|
||||
background: red;
|
||||
height: 1432px;
|
||||
width: 1234px;
|
||||
}
|
||||
</style>
|
||||
<div id="a"></div>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println(`document.documentElement.scrollWidth: ${document.documentElement.scrollWidth}`);
|
||||
println(`document.documentElement.scrollHeight: ${document.documentElement.scrollHeight}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue