Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/nested-fixed-iframe-scrolled.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- Based on fast/repaint/nested-fixed-iframe-scrolled.html --> 1 <!-- Based on fast/repaint/nested-fixed-iframe-scrolled.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow DIV id='div'",
7 ];
8 function paintInvalidationTest() { 5 function paintInvalidationTest() {
9 frames[0].frames[0].document.getElementById('div').style.backgroundColor = 'gr een'; 6 frames[0].frames[0].document.getElementById('div').style.backgroundColor = 'gr een';
10 } 7 }
11 onload = function() { 8 onload = function() {
12 window.scrollTo(0, 400); 9 window.scrollTo(0, 400);
13 runPaintInvalidationTest(); 10 runPaintInvalidationTest();
14 }; 11 };
15 </script> 12 </script>
16 <body style="height: 2000px"> 13 <body style="height: 2000px">
17 Tests paint invalidation of contents of fixed-position iframe in another ifram e after main frame is scrolled. 14 Tests paint invalidation of contents of fixed-position iframe in another ifram e after main frame is scrolled.
18 Passes if there is a 100x100 green rectangle and no red in the inner-most ifra me. 15 Passes if there is a 100x100 green rectangle and no red in the inner-most ifra me.
19 <iframe style="position: absolute; top: 500px; left: 0" srcdoc=" 16 <iframe style="position: absolute; top: 500px; left: 0" srcdoc="
20 <iframe style='position: fixed; top: 10px; left: 10px; width: 150px; height: 150px' 17 <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; b ackground-color: red&quot;></div>'></iframe>"> 18 srcdoc='<div id=&quot;div&quot; style=&quot;width: 100px; height: 100px; b ackground-color: red&quot;></div>'></iframe>">
22 </iframe> 19 </iframe>
23 </body> 20 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698