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

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.
This commit is contained in:
Andi Gallo 2023-07-12 03:03:16 +00:00 committed by Andreas Kling
parent 13687085dd
commit 030b1a197b
5 changed files with 93 additions and 14 deletions

View file

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