1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00
serenity/Tests/LibWeb/Layout/input/table/line-breaking-in-cells.html
Andi Gallo 3d7e788981 LibWeb: Improve the line breaking algorithm
Check the width of the next token after white space to decide line
breaks. The next width can also be the total width of multiple tokens.
This better follows the CSS Text specification and matches behavior of
other browsers.

Fixes #20388.
2023-08-21 19:31:00 +02:00

25 lines
No EOL
279 B
HTML

<style>
table {
border-collapse: collapse
}
td {
border: 1px solid black;
}
</style>
<table>
<tbody>
<tr>
<td style="width: 30%;">A
</td>
<td style="width: 40%;">
B
<br>C
</td>
<td style="width: 30%;">
D
</td>
</tr>
</tbody>
</table>