Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / selection-change-in-iframe-with-relative-parent.html
blob8e54f7066e80d896651299babe7a16fa0ff7acb9
1 <!DOCTYPE html>
2 <style>
3 .container {
4 position: relative;
5 top: 180px;
7 </style>
9 <!--
10 This test checks that the selection in an iframe in a relative positioned container
11 is correctly invalidated.
12 We should be able to manually select all the text. The invalidation rects should
13 be positioned correctly and encompass all the lines.
14 -->
15 <div class="container">
16 <iframe src="resources/selection-change-in-iframe-with-relative-parent-iframe.html"></iframe>
17 </div>
19 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
20 <script>
21 function repaintTest()
23 var iframe = document.getElementsByTagName("iframe")[0];
24 iframe.contentWindow.getSelection().selectAllChildren(iframe.contentDocument.body);
26 window.addEventListener("load", runRepaintTest, false);
27 </script>