<style>
div {
  font-size: 20px;
  font-family: Monospace;
  width: 400px;
  border: 1px solid;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>
<div style="text-align: right;">PASS if truncate&#x2026;</div>
<div style="text-align: left;">PASS if NOT truncated&#x2026;</div>
