<!DOCTYPE html> | |
<style> | |
a.trigger { | |
width: 337px; | |
height: 16px; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
display: inline-block; | |
border: 1px solid; | |
} | |
div{ | |
height: 16px; | |
width: 32px; | |
float: left; | |
} | |
</style> | |
<p>crbug.com/275883: Restore position of line box correctly after deleting ellipsis.</p> | |
<a class="trigger"> | |
<div></div> | |
<span id="span">This is shorter text</span> | |
</a> | |
<input type="button" id="input" value="Change Text" /> |