1 <html id='iframe-root'
>
7 border:
1px solid black;
12 background-color: red;
18 background-color: blue;
24 if (window
.testRunner
)
25 testRunner
.dumpAsText();
29 var pre
= document
.getElementById('iframe-console');
34 var divs
= ['iframe-div', 'iframe-abs-div', 'iframe-fixed-div', 'iframe-root'];
35 for (var i
= 0; i
< divs
.length
; i
++) {
36 var div1
= document
.getElementById(divs
[i
]);
37 for (var j
= 0; j
< divs
.length
; j
++) {
38 var div2
= document
.getElementById(divs
[j
]);
39 var scrollsWithRespectTo
= window
.internals
.scrollsWithRespectTo(div1
, div2
);
41 var successText
= scrollsWithRespectTo
? 'scrolls with respect to' : 'does not scroll with respect to';
42 var messageText
= div1
.id
+ ' ' + successText
+ ' ' + div2
.id
;
43 tosend
+= messageText
+ '\n';
46 window
.top
.postMessage(tosend
, '*');
49 window
.onload
= doTest
;
54 <div id='iframe-div' style='overflow:scroll'
></div>
55 <div id='iframe-abs-div'
></div>
56 <div id='iframe-fixed-div'
></div>
61 <pre id='iframe-console'
></pre>