1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:27:35 +00:00

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.
This commit is contained in:
Aliaksandr Kalenik 2023-10-31 17:41:41 +01:00 committed by Andreas Kling
parent 387ab57eb1
commit 4676b288a2
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<!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>