mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00

We should calculate whether we need to truncate text with an ellipsis exclusive of any trailing collapsible whitespace. This was causing issues where an inline element was automatically sized (e.g. min-content) as we would calculate available width exclusive of trailing collapsible whitespace and then our text chunk would be wider, always inserting an ellipsis. Fixes the visual element of #4048 but we still are incorrect in how we collapse whitespace more generally
12 lines
319 B
HTML
12 lines
319 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="../expected/text-overflow-ellipsis-with-trailing-whitespace-ref.html" />
|
|
<style>
|
|
#foo {
|
|
display: inline-block;
|
|
width: min-content;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-wrap: nowrap;
|
|
}
|
|
</style>
|
|
<span id="foo">abc </span>
|