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

Side by Side Diff: LayoutTests/fast/layers/scroll-descendant-with-cached-cliprects.html

Issue 1294063005: Recalculate intrinsic widths in the old containing block chain when going out of flow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make fast/layers/scroll-descendant-with-cached-cliprects.html NOT depend on the bug that this CL fi… Created 5 years, 4 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner) {
4 window.enablePixelTesting = true; 4 window.enablePixelTesting = true;
5 window.testRunner.waitUntilDone(); 5 window.testRunner.waitUntilDone();
6 } 6 }
7 function repaintTest() { 7 function repaintTest() {
8 window.scrollBy(0,200); 8 window.scrollBy(0,200);
9 document.getElementById("scrollpanel").style.position = "fixed"; 9 document.getElementById("scrollpanel").style.position = "fixed";
10 } 10 }
11 </script> 11 </script>
12 <script type="text/javascript" src="../repaint/resources/text-based-repaint.js"> </script> 12 <script type="text/javascript" src="../repaint/resources/text-based-repaint.js"> </script>
13 <script type="text/javascript" src="../../resources/run-after-layout-and-paint.j s"></script> 13 <script type="text/javascript" src="../../resources/run-after-layout-and-paint.j s"></script>
14 <style> 14 <style>
15 .left { 15 .left {
16 float: left; 16 float: left;
17 min-height: 1843px; 17 min-height: 1843px;
18 } 18 }
19 19
20 .right { 20 .right {
21 float: right; 21 float: right;
22 width: 100px;
22 } 23 }
23 24
24 .container { 25 .container {
25 position: relative; 26 position: relative;
26 overflow: hidden; 27 overflow: hidden;
27 } 28 }
28 29
29 #ul { 30 #ul {
30 position: relative; 31 position: relative;
31 } 32 }
32 33
33 #scrollpanel { 34 #scrollpanel {
34 position: inherit; 35 position: inherit;
35 } 36 }
36 </style> 37 </style>
37 <body onload="runAfterLayoutAndPaint(runRepaintTest);"> 38 <body onload="runAfterLayoutAndPaint(runRepaintTest);">
38 <p> When you scroll down the red square should have no painting glitches. </ p> 39 <p> When you scroll down the red square should have no painting glitches. </ p>
39 <div class="left"></div> 40 <div class="left"></div>
40 <div class="right"> 41 <div class="right">
41 <div id="scrollpanel"> 42 <div id="scrollpanel">
42 <div class="container"> 43 <div class="container">
43 <div id="ul"> 44 <div id="ul">
44 <div style="background-color: red; width: 100px; height:100p x;"></div> 45 <div style="background-color: red; width: 100px; height:100p x;"></div>
45 </div> 46 </div>
46 </div> 47 </div>
47 48
48 </div> 49 </div>
49 </div> 50 </div>
50 </body> 51 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf-expected.txt ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698