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

Side by Side Diff: LayoutTests/compositing/overflow/opt-unclipped-descendants-into-composited-scrolling.html

Issue 22419002: Set up clip and scroll parents on the blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 .container { 4 .container {
5 width: 200px; 5 width: 200px;
6 height: 200px; 6 height: 200px;
7 overflow: scroll; 7 overflow: scroll;
8 margin: 20px; 8 margin: 20px;
9 border: 1px solid black; 9 border: 1px solid black;
10 position: relative; 10 position: relative;
(...skipping 25 matching lines...) Expand all
36 'overflow-scroll div\'s unclipped descendant g ets ' + 36 'overflow-scroll div\'s unclipped descendant g ets ' +
37 'its own composited layer, which is correctly ' + 37 'its own composited layer, which is correctly ' +
38 'parented under the overflow-div\'s composited layer.\n\n'; 38 'parented under the overflow-div\'s composited layer.\n\n';
39 var text = document.createTextNode(testDescription); 39 var text = document.createTextNode(testDescription);
40 pre.appendChild(text); 40 pre.appendChild(text);
41 41
42 if(window.internals) { 42 if(window.internals) {
43 var layerTree = window.internals.layerTreeAsText(document); 43 var layerTree = window.internals.layerTreeAsText(document);
44 text = document.createTextNode(layerTree + '\n'); 44 text = document.createTextNode(layerTree + '\n');
45 pre.appendChild(text); 45 pre.appendChild(text);
46 window.internals.settings.setCompositorDrivenAcceleratedScrollin gEnabled(false);
47 } 46 }
48 } 47 }
49 48
50 window.onload = doTest; 49 window.onload = doTest;
51 </script> 50 </script>
52 </head> 51 </head>
53 52
54 <body> 53 <body>
55 <div class='container'> 54 <div class='container'>
56 <div class='scrolled'></div> 55 <div class='scrolled'></div>
57 <div class='scrolled' style='position:fixed; top:150px'></div> 56 <div class='scrolled' style='position:fixed; top:150px'></div>
58 </div> 57 </div>
59 <pre id='console'></pre> 58 <pre id='console'></pre>
60 </body> 59 </body>
61 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698