blob: 8b91b7235a01a4994f7aaf33a7d54fc6a122bb26 [file] [log] [blame]
<!-- webkit-test-runner [ InlineFormattingContextIntegrationEnabled=false ] -->
<style>
body{
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>