ladybird/Tests/LibWeb/Ref/expected/text-overflow-ellipsis-with-trailing-whitespace-ref.html
Callum Law 027c9f53be LibWeb: Handle text-overflow: ellipsis with trailing whitespace
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
2025-08-18 11:00:26 +01:00

2 lines
33 B
HTML

<!DOCTYPE html>
<span>abc</span>