1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

LibWeb: Fix empty slot finding in table formation algorithm

The algorithm which finds the first free slot must run for every cell,
not for every row.
This commit is contained in:
Andi Gallo 2023-06-19 05:55:08 +00:00 committed by Andreas Kling
parent 282e8357ed
commit 205f9c75d9
3 changed files with 122 additions and 2 deletions

View file

@ -0,0 +1,31 @@
<style>
table {
border: 1px solid black;
border-collapse: collapse;
border-spacing: 0px;
}
td {
padding: 10px;
border: 1px solid black;
}
</style>
<table>
<tr>
<td>0</td>
<td rowspan="2">A</td>
<td rowspan="3">X</td>
</tr>
<tr>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td rowspan="2">B</td>
</tr>
<tr>
<td>3</td>
<td>C</td>
</tr>
</table>