Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / nested-fixed-iframe-scrolled.html
blob209442571b0cf3a1e91e2fd90383cc1d9dbbb4b8
1 <!-- Based on fast/repaint/nested-fixed-iframe-scrolled.html -->
2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow DIV id='div'",
7 ];
8 function paintInvalidationTest() {
9 frames[0].frames[0].document.getElementById('div').style.backgroundColor = 'green';
11 onload = function() {
12 window.scrollTo(0, 400);
13 runPaintInvalidationTest();
15 </script>
16 <body style="height: 2000px">
17 Tests paint invalidation of contents of fixed-position iframe in another iframe after main frame is scrolled.
18 Passes if there is a 100x100 green rectangle and no red in the inner-most iframe.
19 <iframe style="position: absolute; top: 500px; left: 0" srcdoc="
20 <iframe style='position: fixed; top: 10px; left: 10px; width: 150px; height: 150px'
21 srcdoc='<div id=&quot;div&quot; style=&quot;width: 100px; height: 100px; background-color: red&quot;></div>'></iframe>">
22 </iframe>
23 </body>