Tapping after CSS-based table casues an infinite loop in wordRangeFromPosition
[WebKit-https.git] / LayoutTests / editing / text-iterator / table-at-end-of-document.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta name="viewport" content="width=device-width, initial-scale=1">
5 <script>
6
7 if (window.testRunner)
8     testRunner.dumpAsText();
9
10 window.onload = () => {
11     let result = document.getElementById('container').innerText;
12     document.getElementById('result').textContent = result;
13     document.getElementById('pass-fail').textContent = result == 'X\nY' ? 'PASS' : 'FAIL';
14 }
15
16 </script>
17 </head>
18 <body>
19 <p>This tests getting the plain text of a CSS table followed by a text.
20 You should see X and Y in two seprate lines below twice:</p>
21 <div id="pass-fail"></div>
22 <pre><span id="result" style="background: #3cf;"></span></pre>
23 <div id="container" style="width:100%; height: 100%'">
24   <div style="display: table">
25     <div style="display: table-row">
26       <div id="cell" style="display: table-cell">
27         X
28       </div>
29     </div>
30   </div>
31   Y
32 </div>
33 </body>
34 </html>