1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:35:06 +00:00
serenity/Tests/LibWeb/Layout/input/table/table-max-content-width.html
Aliaksandr Kalenik 4676b288a2 LibWeb: Set table width to GRIDMAX if calculated value is max-content
If the width of the table container is specified as max-content, then
it seems sensible to resolve it as the sum of the maximum widths of the
columns.
2023-10-31 18:13:14 +01:00

7 lines
No EOL
232 B
HTML

<!DOCTYPE html><style type="text/css">
.table {
width: max-content;
background-color: magenta;
border: 10px solid gold;
}
</style><table class="table"><tr style="height: 100px"><td style="width: 100px"></td></tr></table>