| OLD | NEW |
| 1 <body style="margin: 0"> | 1 <body style="margin: 0"> |
| 2 <div style="margin: 50px; background-color: lightblue; width: 800px; height: 200
px; -webkit-column-width:185px; -webkit-column-gap:15px; column-width:185px; col
umn-gap:15px; column-fill:auto; font-family: Ahem; font-size: 50px; line-height:
1;"> | 2 <div style="margin: 50px; background-color: lightblue; width: 800px; height: 200
px; -webkit-column-width:185px; -webkit-column-gap:15px; column-width:185px; col
umn-gap:15px; column-fill:auto; font-family: Ahem; font-size: 50px; line-height:
1; orphans:1; widows:1;"> |
| 3 123<div style="background-color: blue; height: 70px;"></div>abc<br>def<div s
tyle="background-color: blue; height: 60px;"></div>ghi<br>jkl<div style="backgro
und-color: blue; height: 110px;"></div>mno</div> | 3 123<div style="background-color: blue; height: 70px;"></div>abc<br>def<div s
tyle="background-color: blue; height: 60px;"></div>ghi<br>jkl<div style="backgro
und-color: blue; height: 110px;"></div>mno</div> |
| 4 <pre id="console" style="display: none;"></pre> | 4 <pre id="console" style="display: none;"></pre> |
| 5 <script> | 5 <script> |
| 6 if (window.internals) | 6 if (window.internals) |
| 7 internals.settings.setEditingBehavior("mac"); | 7 internals.settings.setEditingBehavior("mac"); |
| 8 function characterAtPoint(x, y) | 8 function characterAtPoint(x, y) |
| 9 { | 9 { |
| 10 var range = document.caretRangeFromPoint(x, y); | 10 var range = document.caretRangeFromPoint(x, y); |
| 11 if (range.startContainer.nodeType !== Node.TEXT_NODE) | 11 if (range.startContainer.nodeType !== Node.TEXT_NODE) |
| 12 return null; | 12 return null; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 42 test(550, 275, "m"); | 42 test(550, 275, "m"); |
| 43 test(750, 275, null); | 43 test(750, 275, null); |
| 44 | 44 |
| 45 test(150, 475, "d"); | 45 test(150, 475, "d"); |
| 46 test(350, 475, "j"); | 46 test(350, 475, "j"); |
| 47 test(550, 475, "m"); | 47 test(550, 475, "m"); |
| 48 test(750, 475, null); | 48 test(750, 475, null); |
| 49 | 49 |
| 50 document.getElementById("console").style.display = "block"; | 50 document.getElementById("console").style.display = "block"; |
| 51 </script> | 51 </script> |
| OLD | NEW |