4 <title>Document::nodesFromRect : Allow child-frame content - bug
95204</title>
5 <script src=
"../../../resources/js-test.js"></script>
6 <script src=
"resources/nodesFromRect.js"></script>
18 box-sizing: border-box;
23 .rotate180 { transform: rotate(
180deg); }
24 .rotate90 { transform: rotate(
90deg); }
26 box-sizing: border-box;
29 border:
1px solid black;
36 <iframe id=
"iframe1" src=
"resources/child-frame.html"></iframe>
38 <div id=div1 class=box
></div>
39 <div id=div2 class=box
></div>
42 <p id='description'
></p>
43 <div id=
"console"></div>
44 <script type=
"application/javascript">
47 description(document.title);
49 // Set up shortcut access to elements
51 ['sandbox', 'layer'].forEach(function(a) {
52 e[a] = document.getElementById(a);
55 checkRect(
25,
25,
100,
100,
"DIV#div2, DIV#div1, DIV#sandbox");
56 checkRect(
220,
20,
70,
70,
"DIV#left");
57 checkRect(
250,
20,
100,
70,
"DIV#right, DIV#left, HTML");
59 checkRect(
150,
50,
100,
100,
"DIV#left, HTML, #document, IFRAME#iframe1, DIV#layer, DIV#div2, DIV#div1, DIV#sandbox");
61 e.layer.setAttribute('class', 'rotate180');
62 checkRect(
220,
20,
70,
70,
"DIV#right");
63 checkRect(
150,
50,
100,
100,
"DIV#right, HTML, #document, IFRAME#iframe1, DIV#layer, DIV#div2, DIV#div1, DIV#sandbox");
65 e.layer.setAttribute('class', 'rotate90');
66 checkRect(
250,
20,
100,
70,
"DIV#left");
67 checkRect(
150,
20,
200,
60,
"DIV#left, HTML, #document, IFRAME#iframe1, DIV#layer, DIV#div1, DIV#sandbox");
69 e.sandbox.display = 'none';
73 window.onload = runTest;