OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <div id="target" style=" | 2 <div id="target" style=" |
3 outline: dashed lightblue; | 3 outline: dashed lightblue; |
4 width: 400px; | 4 width: 400px; |
5 -webkit-columns: 2; | 5 -webkit-columns: 2; |
6 -webkit-column-gap: 0; | 6 -webkit-column-gap: 0; |
| 7 -webkit-column-fill: auto; |
| 8 columns: 2; |
| 9 column-gap: 0; |
| 10 column-fill: auto; |
7 height: 90px; | 11 height: 90px; |
8 font: 20px ahem; | 12 font: 20px ahem; |
9 ">Lorem ipsum dolor sit amet consectetur elit.</div> | 13 ">Lorem ipsum dolor sit amet consectetur elit.</div> |
10 <p id="result"> | 14 <p id="result"> |
11 FAIL: Test did not run. | 15 FAIL: Test did not run. |
12 </p> | 16 </p> |
13 <script> | 17 <script> |
14 if (window.testRunner) | 18 if (window.testRunner) |
15 testRunner.dumpAsText(); | 19 testRunner.dumpAsText(); |
16 | 20 |
17 // Clicking below the last line in the first column should not select anythi
ng from the first | 21 // Clicking below the last line in the first column should not select anythi
ng from the first |
18 // line on the second column. | 22 // line on the second column. |
19 var target = document.getElementById("target"); | 23 var target = document.getElementById("target"); |
20 var hitOffset = document.caretRangeFromPoint(target.offsetLeft + 45, target.
offsetTop + 87).startOffset; | 24 var hitOffset = document.caretRangeFromPoint(target.offsetLeft + 45, target.
offsetTop + 87).startOffset; |
21 document.getElementById("result").innerText = hitOffset === 26 || hitOffset
=== 24 ? "PASS" : "FAIL: hit offset " + hitOffset + "."; | 25 document.getElementById("result").innerText = hitOffset === 26 || hitOffset
=== 24 ? "PASS" : "FAIL: hit offset " + hitOffset + "."; |
22 </script> | 26 </script> |
OLD | NEW |