mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +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.
13 lines
No EOL
230 B
HTML
13 lines
No EOL
230 B
HTML
<style>
|
|
.fixed_width {
|
|
max-width: 50px;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
.nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
<div class="fixed_width">
|
|
<span class="nowrap">ABC</span><span> </span><span class="nowrap">ABC</span>
|
|
</div> |