| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <script src="../../resources/ahem.js"></script> |
| 2 <style type="text/css"> | 3 <style type="text/css"> |
| 3 .ahem { font: 20px Ahem; } | 4 .ahem { font: 20px Ahem; } |
| 4 </style> | 5 </style> |
| 5 <script> | 6 <script> |
| 6 | 7 |
| 7 if (window.testRunner) | 8 if (window.testRunner) |
| 8 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 9 | 10 |
| 10 var onMacPlatform = navigator.userAgent.search(/\bMac OS X\b/) != -1; | 11 var onMacPlatform = navigator.userAgent.search(/\bMac OS X\b/) != -1; |
| 11 | 12 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 <div>Page up/down (option+page up/down on Mac) should move the move cursor and s
croll the content | 81 <div>Page up/down (option+page up/down on Mac) should move the move cursor and s
croll the content |
| 81 in contenteditable elements. This sample covers scroll position test of a) ifram
e element containing | 82 in contenteditable elements. This sample covers scroll position test of a) ifram
e element containing |
| 82 contenteditable body and b) content editable div element. Even though the cursor
will move exactly to | 83 contenteditable body and b) content editable div element. Even though the cursor
will move exactly to |
| 83 the same location on all platforms (covered by test option-page-up-down.html), p
lease note that Mac will | 84 the same location on all platforms (covered by test option-page-up-down.html), p
lease note that Mac will |
| 84 scroll the visible area by placing the cursor position in the middle. All other
platforms will scroll by | 85 scroll the visible area by placing the cursor position in the middle. All other
platforms will scroll by |
| 85 keeping the cursor aligned with the top edge of the visible area. </div> | 86 keeping the cursor aligned with the top edge of the visible area. </div> |
| 86 <iframe src="../resources/contenteditable-iframe-fixed-size-src.html" style="hei
ght:150px; padding: 0px;"></iframe> | 87 <iframe src="../resources/contenteditable-iframe-fixed-size-src.html" style="hei
ght:150px; padding: 0px;"></iframe> |
| 87 <div id="editable" contenteditable="true" class="ahem" style="height:150px; over
flow:auto; padding: 0px; margin: 0px;"></div> | 88 <div id="editable" contenteditable="true" class="ahem" style="height:150px; over
flow:auto; padding: 0px; margin: 0px;"></div> |
| 88 <div id="results"></div> | 89 <div id="results"></div> |
| 89 </body> | 90 </body> |
| OLD | NEW |