<style> | |
div { | |
letter-spacing: -1px; | |
font-height: 10px; | |
} | |
</style> | |
<div id=textWithLetterSpacing>Pass if text does not disappear after the range selection.</div> | |
<script> | |
document.body.offsetHeight; | |
var range = document.createRange(); | |
range.setStart(textWithLetterSpacing.firstChild, 0); | |
range.setEnd(textWithLetterSpacing.firstChild, 5); | |
window.getSelection().addRange(range); | |
</script> |