mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Add missing check if scrollable overflow defined for paintable
With 6a549f6270 we need to check if
optional scrollable overflow exists for paintable box, because it's not
computed for inline nodes.
Fixes crashing after navigating into direct messages screen on Discord.
This commit is contained in:
committed by
Alexander Kalenik
parent
27928cd28c
commit
629a3ac61e
Notes:
github-actions[bot]
2024-10-21 13:58:16 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/629a3ac61e5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1898
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<span id="empty-span"></span>
|
||||
<script src="include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const hiddenDiv = document.getElementById('empty-span');
|
||||
const scrollHeight = hiddenDiv.scrollHeight;
|
||||
const scrollWidth = hiddenDiv.scrollWidth;
|
||||
println(`Scroll Height: ${scrollHeight}px, Scroll Width: ${scrollWidth}px`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user