1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 20:25:08 +00:00
serenity/Tests/LibWeb/Layout/input/table/zero-columns-gridmax.html
Aliaksandr Kalenik 9fd51a59ff LibWeb: Fix division by zero in table columns width distribution
If total max columns width (grid_max) is zero then available width
should be divided equally between columns. Previously there was
division by zero: `column.max_width / grid_max`.
2023-04-29 06:46:45 +02:00

15 lines
No EOL
208 B
HTML

<style>
.table {
display: table;
width: 200px;
}
.row {
display: table-row;
}
.cell {
display: table-cell;
}
</style>
<div class="table"><div class="row"><div class="cell"></div></div></div>