Files
ladybird/Tests/LibWeb/Ref/expected/inspector-highlighted-node-overlay-is-not-clipped-ref.html
InvalidUsernameException c810e99842 LibWeb: Do not clip inspector overlays
When painting inspector overlays for a highlighted node, we want to
ignore any clipping that may be going on due to explicit CSS properties,
stacking contexts or similar. That makes sure our overlay is not
obscured by the clipping.

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

25 lines
454 B
HTML

<!DOCTYPE html>
<style>
#outer {
position: relative;
top: 50px;
left: 50px;
width: 200px;
height: 200px;
background-color: blue;
}
#inner {
position: absolute;
left: 50px;
top: 50px;
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div id="outer"><div id="inner"></div></div>
<script>
const elementToHighlight = document.getElementById("inner");
window.internals.setHighlightedNode(elementToHighlight);
</script>