LibWeb: Implement iterative percentage size for spanning table cells

Follow the computing column measures section of the specification, which
gives an algorithm for setting intrinsic percentage widths when spanning
columns are involved.
This commit is contained in:
Andi Gallo 2023-07-17 01:22:11 +00:00 committed by Andreas Kling
commit 268355c759
Notes: sideshowbarker 2024-07-16 22:58:46 +09:00
4 changed files with 260 additions and 14 deletions

View file

@ -0,0 +1,20 @@
<style>
table,
td {
border: 1px solid black;
border-spacing: 0px;
text-align: center;
}
</style>
<table width="420px">
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
<tr>
<td>D</td>
<td colspan="2" width="80%">E</td>
</tr>
</table>