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

Side by Side Diff: LayoutTests/fast/repaint/absolute-position-changed.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 <style>
5 html {
6 overflow: scroll;
7 }
8 </style>
9 <script src="../../resources/run-after-display.js"></script>
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 10 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
5 <script type="text/javascript"> 11 <script type="text/javascript">
6 if (window.testRunner) 12 if (window.testRunner) {
13 testRunner.waitUntilDone();
7 testRunner.dumpAsTextWithPixelResults(); 14 testRunner.dumpAsTextWithPixelResults();
15 }
16
17 window.onload = function()
18 {
19 window.scrollTo(0, 500);
20 runAfterDisplay(function() {
21 runRepaintTest();
22 if (window.testRunner)
23 testRunner.notifyDone();
24 });
25 }
26
8 function repaintTest() 27 function repaintTest()
9 { 28 {
10 document.getElementById('absoluteDiv').style.top = '700px'; 29 document.getElementById('absoluteDiv').style.top = '700px';
11 } 30 }
12 </script> 31 </script>
13 </head> 32 </head>
14 <body style="height:2000px;" onload="runRepaintTest()"> 33 <body style="height:2000px;">
15 <!-- You should see 1 green rectangle in the output and no red. --> 34 <!-- You should see 1 green rectangle in the output and no red. -->
16 <div style="top: 200px; left: 100px;" class="fixed red"></div> 35 <div style="top: 200px; left: 100px;" class="fixed red"></div>
17 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green" ></div></div> 36 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green" ></div>
18 <script>
19 window.scrollTo(0, 500);
20 </script>
21 </body> 37 </body>
22 </html> 38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/squashing/squash-above-fixed-3.html ('k') | LayoutTests/fast/repaint/fixed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698