REGRESSION(r230914) Selecting text on this apple.com page makes it vanish
[WebKit-https.git] / LayoutTests / fast / text / simple-line-layout-selection-with-overflow-expected.html
1 <style>
2 body{
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 if (window.internals)
10     internals.settings.setSimpleLineLayoutEnabled(false);
11 document.body.offsetHeight;
12
13 var range = document.createRange();
14 range.setStart(textWithLetterSpacing.firstChild, 0);
15 range.setEnd(textWithLetterSpacing.firstChild, 5);
16 window.getSelection().addRange(range);
17 </script>