Files
ladybird/Tests/LibWeb/Ref/input/outline-stacking-order.html
Tim Ledbetter cc559048cc LibWeb: Paint element outlines during Foreground paint phase
Previously, outlines for elements without their own stacking context
were painted during the `FocusAndOverlay` phase, which runs after all
child stacking contexts. This caused outlines to incorrectly appear
on top of elements with higher z-index.
2026-01-20 15:38:54 +01:00

24 lines
475 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/outline-stacking-order-ref.html">
<style>
.outlined {
margin: 10px;
width: 50px;
height: 50px;
background: blue;
outline: 10px solid lime;
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 80px;
height: 80px;
background: red;
z-index: 1;
}
</style>
<div class="outlined"></div>
<div class="overlay"></div>