mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibWeb: Improve span column width distribution
Compute the contributions to a spanning cell width from each cell in the span. This better handles uneven column widths, since each cell contribution is proportional with its own width as opposed to the own width of the first cell in the span. This better matches the behavior of other browsers and further aligns with the specification.
This commit is contained in:
parent
b37fbcb159
commit
ac6af51549
6 changed files with 118 additions and 62 deletions
|
@ -0,0 +1,18 @@
|
|||
<style>
|
||||
table,
|
||||
td {
|
||||
border: 1px solid black;
|
||||
border-spacing: 0px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width: 180px;">A</td>
|
||||
<td style="width: 20px;">B</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">C</td>
|
||||
</tr>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue