| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/repaint/selection-change-in-iframe-with-relative-parent.html
--> | |
| 2 <!DOCTYPE html> | |
| 3 <style> | |
| 4 .container { | |
| 5 position: relative; | |
| 6 top: 180px; | |
| 7 } | |
| 8 </style> | |
| 9 | |
| 10 <!-- | |
| 11 This test checks that the selection in an iframe in a relative positioned co
ntainer | |
| 12 is correctly invalidated. | |
| 13 We should be able to manually select all the text. The invalidation rects sh
ould | |
| 14 be positioned correctly and encompass all the lines. | |
| 15 --> | |
| 16 <div class="container"> | |
| 17 <iframe src="../../../fast/repaint/resources/selection-change-in-iframe-with
-relative-parent-iframe.html"></iframe> | |
| 18 </div> | |
| 19 | |
| 20 <script src="resources/paint-invalidation-test.js" type="text/javascript"></scri
pt> | |
| 21 <script> | |
| 22 function paintInvalidationTest() | |
| 23 { | |
| 24 var iframe = document.getElementsByTagName("iframe")[0]; | |
| 25 iframe.contentWindow.getSelection().selectAllChildren(iframe.contentDocument
.body); | |
| 26 } | |
| 27 window.addEventListener("load", runPaintInvalidationTest, false); | |
| 28 </script> | |
| OLD | NEW |