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

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
parent 1f3fca996c
commit 268355c759
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>