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

Side by Side Diff: LayoutTests/fast/repaint/fixed-after-scroll.html

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix nit Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="resources/default.css"> 3 <link rel="stylesheet" href="resources/default.css">
4 <script src="../../resources/run-after-display.js"></script>
4 <script src="resources/text-based-repaint.js"></script> 5 <script src="resources/text-based-repaint.js"></script>
5 <script> 6 <script>
6 if (window.testRunner) 7 if (window.testRunner) {
8 testRunner.waitUntilDone();
7 testRunner.dumpAsTextWithPixelResults(); 9 testRunner.dumpAsTextWithPixelResults();
10 }
11
12 window.onload = function()
13 {
14 window.scrollTo(0, 500);
15 runAfterDisplay(function() {
16 runRepaintTest();
17 testRunner.notifyDone();
18 });
19 }
8 20
9 function repaintTest() 21 function repaintTest()
10 { 22 {
11 document.getElementById('t').style.position = "fixed"; 23 document.getElementById('t').style.position = "fixed";
12 } 24 }
13 </script> 25 </script>
14 </head> 26 </head>
15 27
16 <body style="height:2000px;" onload="runRepaintTest()"> 28 <body style="height:2000px;">
17 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: RenderL ayer fixed position logic needs more basic testing --> 29 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: RenderL ayer fixed position logic needs more basic testing -->
18 <!-- You should see no red on this page. --> 30 <!-- You should see no red on this page. -->
19 <div style="top: 200px;" class="red fixed"></div> 31 <div style="top: 200px;" class="red fixed"></div>
20 <div id="t" style="top: 200px;" class="green absolute"></div> 32 <div id="t" style="top: 200px;" class="green absolute"></div>
21 <script>
22 window.scrollTo(0, 500);
23 </script>
24 </body> 33 </body>
25 </html> 34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/fixed.html ('k') | LayoutTests/fast/repaint/fixed-and-absolute-position-scrolled.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698