mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 17:05:07 +00:00

Previously, we would always respect the `text-align` property, even if the text being aligned was too long for its line box and would be clipped. This led to seeing the clipped middle/end of strings when we should instead always see the beginning of the text.
13 lines
No EOL
284 B
HTML
13 lines
No EOL
284 B
HTML
<!DOCTYPE html><style>
|
|
.outer {
|
|
margin-left: 10px;
|
|
width: 80px;
|
|
}
|
|
|
|
.text {
|
|
display: block;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
</style><div class="outer"><span class="text">My super long message! |