| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| if (window.internals) { |
| internals.settings.setUserInterfaceDirectionPolicy("View"); |
| internals.settings.setSystemLayoutDirection("RTL"); |
| } |
| </script> |
| </head> |
| <body> |
| <iframe id="iframe" style="position: absolute; width: 100px; height: 100px; left: 0px; top: 0px; margin: 0px; border: solid black 0px; padding: 0px;" |
| srcdoc="<!DOCTYPE html> |
| <head> |
| </head> |
| <body style='margin: 0px;'> |
| <div id='text' style='font: 20px Ahem;'><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>ppp</div> |
| <div style='width: 1px; height: 2000px; position: absolute; left: 0px; top: 0px;'></div> |
| <script> |
| window.scrollTo(0, 1000); |
| var text = document.getElementById('text').childNodes[50]; |
| var selection = window.getSelection(); |
| selection.removeAllRanges(); |
| var range = document.createRange(); |
| range.setStart(text, 0); |
| range.setEnd(text, 1); |
| selection.addRange(range); |
| </script> |
| </body> |
| </html>"></iframe> |
| <script> |
| document.getElementById("iframe").focus(); |
| </script> |
| <div style="position: absolute; left: 8px; top: 100px;">This test makes sure that hit testing in iframes works correctly.</div> |
| </body> |
| </html> |