Files
sousa-gecko/testing/web-platform/tests/css/css-grid/subgrid/subgrid-scroller-auto-height-padding-ref.html
T
Emilio Cobos Álvarez d3ec7a6a5f Bug 2045329 - Fix subgrid border/margin/padding computation for scrollers. r=layout-reviewers,dholbert
It used to be accounted for via the padding: inherit that was removed in
the regressing bug, but that was a bit action at a distance and was not
tested at all it seems...

Simplify the code, since this used to deal with buttons as well but
button anonymous boxes were removed a while ago.

Differential Revision: https://phabricator.services.mozilla.com/D305028
2026-06-08 22:43:31 +00:00

29 lines
636 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<style>
.grid {
display: grid;
grid-template-columns: 220px;
grid-auto-rows: auto auto;
}
.box {
display: grid;
grid-template-rows: auto auto;
grid-row: span 2;
overflow: hidden;
padding: 0 60px;
background: #eee;
}
.item { grid-row: 1; line-height: 24px; }
.footer { grid-row: 2; margin: 0; background: tomato; }
</style>
<div class="grid">
<div class="box">
<div class="item"><div>wrapping wrapping wrapping wrapping wrapping wrapping wrapping</div></div>
<p class="footer">FOOTER</p>
</div>
</div>