| 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; | |
| 5 -webkit-columns: 2; | 4 -webkit-columns: 2; |
| 6 -webkit-column-gap: 0; | 5 -webkit-column-gap: 0; |
| 6 columns: 2; |
| 7 column-gap: 0; |
| 8 column-fill: auto; |
| 9 width: 400px; |
| 7 height: 80px; | 10 height: 80px; |
| 8 font: 20px ahem; | 11 font: 20px ahem; |
| 9 line-height: 2; | 12 line-height: 2; |
| 10 ">Lorem ipsum dolor sit amet</div> | 13 ">Lorem ipsum dolor sit amet</div> |
| 11 <pre id="console"></pre> | 14 <pre id="console"></pre> |
| 12 <script> | 15 <script> |
| 13 if (window.testRunner) | 16 if (window.testRunner) |
| 14 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
| 15 | 18 |
| 16 function log(message) | 19 function log(message) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 | 36 |
| 34 // Clicking above the last line in the first column should not select anythi
ng from the first | 37 // Clicking above the last line in the first column should not select anythi
ng from the first |
| 35 // line on the second column. | 38 // line on the second column. |
| 36 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 190, target.off
setTop + 3).startOffset; | 39 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 190, target.off
setTop + 3).startOffset; |
| 37 log(hitOffset === 11 ? "PASS" : "FAIL: hit offset " + hitOffset + "."); | 40 log(hitOffset === 11 ? "PASS" : "FAIL: hit offset " + hitOffset + "."); |
| 38 | 41 |
| 39 // Clicking below the first line in the second column should not snap to the
beginning of the line. | 42 // Clicking below the first line in the second column should not snap to the
beginning of the line. |
| 40 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 250, target.off
setTop + 78).startOffset; | 43 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 250, target.off
setTop + 78).startOffset; |
| 41 log(hitOffset === 14 ? "PASS" : "FAIL: hit offset " + hitOffset + "."); | 44 log(hitOffset === 14 ? "PASS" : "FAIL: hit offset " + hitOffset + "."); |
| 42 </script> | 45 </script> |
| OLD | NEW |