1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 08:05:07 +00:00
serenity/Tests/LibWeb/Layout/input/table/width-distribution-of-max-width-increment.html
Andi Gallo 030b1a197b LibWeb: Don't use the preferred increment as reference for distribution
The specification says we should distribute excess width proportionally
to the width of the cell, not to the preferred increment. Doing the
latter leads to distributing all excess width to just the cells which
demand some increment, even if it's very modest. Moreover, there's code
which partially implements the correct criteria just below the one we
remove here.
2023-07-22 07:06:50 +02:00

24 lines
No EOL
361 B
HTML

<style>
td {
border: 1px solid black;
}
table {
border-collapse: collapse;
}
</style>
<table width="100%">
<tbody>
<tr>
<td>
A
</td>
<td>
B
</td>
<td>
C D
</td>
</tr>
</tbody>
</table>