mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00

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.
25 lines
No EOL
279 B
HTML
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> |