In Chrome, the indented (text-indent) version of an item with text-overflow no longer behaves the same as it used to.
Previous to the Chrome version 77.0.3865.75, indented text would still show an ellipsis. I can see that in the changes they've modified the way text-overflow works in the Chromium project.
In Firefox, Safari, and Edge, the indentation still works the same as it used to (see Codepens below for testing)
My questions:
- Any ideas about a good way to solve this issue?
- For my own education, is this a Chromium bug or are the other browsers not following spec?
Examples:
Given this HTML:
<div>
<h1>A long title over a character limit</h1>
<h1 class="indent">A long title over a character limit</h1>
</div>
And CSS:
div {
width: 25em;
background: #ccc;
padding: 1em;
}
h1 {
max-width: 100%;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
h1.indent {
text-indent: 2em;
}
We see that in Chromium-based browsers, the h1.indent version of the title does not have an ellipsis.
Again in Firefox and other browsers, the text-overflow works as expected. In newer Chromium-based browsers it doesn't.
Screenshot:

Here is a copy of the HTML/CSS in a codepen: https://codepen.io/camsjams/pen/yLBGBvP
Here is a codepen showing this in an HTML table: https://codepen.io/camsjams/pen/dybwbWr
