mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 07:02:54 +00:00
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.
11 lines
355 B
HTML
11 lines
355 B
HTML
<!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>
|