ladybird/Tests/LibWeb/Text/input/query-scroll-size-of-inline-node.html
Aliaksandr Kalenik 629a3ac61e 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.
2024-10-21 15:57:19 +02:00

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>