Files
ladybird/Tests/LibWeb/Layout/input/grid/gfc-between-relpos-gfc-and-abspos-item.html
Aliaksandr Kalenik d94b33e205 LibWeb: Handle correctly case when abspos and relpos GFC is interleaved
...by another GFC. When searching for grid item that contains an
abspos box positioned relative to GFC, it's incorrect to assume that the
closest ancestor box whose parent establishes GFC is always the one we
are looking for, because there may be non-positioned GFC in between.

Fixes regression introduced in 80c8e78.
2025-08-19 09:28:45 +02:00

5 lines
200 B
HTML

<!DOCTYPE html><style>
.outer { display: grid; position: relative; }
.middle { display: grid; }
.abs { position: absolute; }
</style><div class="outer"><div class="middle"><div><div class="abs"></div>