REGRESSION(r230914) Selecting text on this apple.com page makes it vanish
[WebKit-https.git] / LayoutTests / fast / text / simple-line-layout-selection-with-overflow.html
1 <style>
2 div {
3     letter-spacing: -1px;
4     font-height: 10px;
5 }
6 </style>
7 <div id=textWithLetterSpacing>Pass if text does not disappear after the range selection.</div>
8 <script>
9 document.body.offsetHeight;
10
11 var range = document.createRange();
12 range.setStart(textWithLetterSpacing.firstChild, 0);
13 range.setEnd(textWithLetterSpacing.firstChild, 5);
14 window.getSelection().addRange(range);
15 </script>