Files
ladybird/Tests/LibWeb/Ref/expected/inspector-highlighted-text-node-with-scroll-offset-ref.html
InvalidUsernameException 27b88b7665 LibWeb: Apply visual context when painting non-boxes as well
When highlighting something that does not correspond to a
`PaintableBox`, we still need to apply `AccumulatedVisualContext`s. In
that case, search for the closest `PaintableBox` ancestor and apply its
`AccumulatedVisualContext`

This bug is most easily observed by highlighting a text node on a page
that has a scrollbar and is scrolled down at least a bit.

This fixes a regression from 009ddd4823.
2026-02-01 14:29:59 +01:00

13 lines
299 B
HTML

<!DOCTYPE html>
<style>
html {
height: calc(100vh + 200px);
scrollbar-width: none;
}
</style>
<div id="highlight-parent">Hello world</div>
<script>
const highlightParent = document.getElementById("highlight-parent");
window.internals.setHighlightedNode(highlightParent.childNodes[0]);
</script>