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
29 lines
636 B
HTML
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>
|