ladybird/Tests/LibWeb/Layout/input/grid/min-height-from-text.html
BenJilks ef037b4152 LibWeb: Use the correct dimension when computing the max grid size
When deciding if the grid containers min size should be limited by a
max size. Check for a max height or width depending on the dimension,
instead of just always checking for a max width.
2024-09-04 22:41:15 +02:00

26 lines
628 B
HTML

<!DOCTYPE html>
<style>
body {
display: flex;
flex-direction: column;
height: 50px;
}
.content {
display: grid;
max-width: 100%;
}
.footer {
background: black;
color: white;
}
</style>
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam dignissim elit eget arcu accumsan imperdiet vulputate
a justo. Phasellus tincidunt sem non tellus tristique hendrerit quis eu eros. Morbi dolor erat, posuere ut feugiat
rhoncus, vestibulum vel tortor.
</div>
<div class="footer">Lorem ipsum dolor sit amet.</div>