1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 17:05:07 +00:00
serenity/Tests/LibWeb/Layout/input/text-align-overflow.html
FalseHonesty de9604212f LibWeb: Avoid text-aligning content that is too long for its line box
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.
2023-06-02 05:21:22 +02:00

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!