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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-local-background-expected.html

Issue 2068723002: Paint local attachment backgrounds into composited scrolling contents layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge and fix test expectations. Created 4 years, 3 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 <script> 1 <script>
2 onload = function() { 2 onload = function() {
3 document.getElementById('scroller').scrollTo(0, 200); 3 document.getElementById('scroller').scrollTop = 200;
4 } 4 }
5 </script> 5 </script>
6 <style> 6 <style>
7 #scroller { 7 #scroller {
8 background: gray local content-box; 8 background: gray local content-box;
9 border: 10px solid rgba(0, 255, 0, 0.5); 9 border: 10px solid rgba(0, 255, 0, 0.5);
10 overflow: scroll; 10 overflow: scroll;
11 padding: 10px; 11 padding: 10px;
12 width: 200px; 12 width: 200px;
13 height: 200px; 13 height: 200px;
14 } 14 }
15 15
16 .spacer { 16 .spacer {
17 height: 300px; 17 height: 300px;
18 } 18 }
19 </style> 19 </style>
20 <!-- #scroller has a locally attached background with padding so when it is 20 <!-- #scroller has a locally attached background with padding so when it is
21 scrolled we can see the background slide up. Doing this on a composited 21 scrolled we can see the background slide up. Doing this on a composited
22 element without repainting requires the background to be painted into 22 element without repainting requires the background to be painted into
23 the scrolling contents layer and correctly account for that layer not 23 the scrolling contents layer and correctly account for that layer not
24 including the border in its bounds. --> 24 including the border in its bounds. -->
25 <div id="scroller"> 25 <div id="scroller">
26 <div class="spacer"></div> 26 <div class="spacer"></div>
27 </div> 27 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698