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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller.html

Issue 2310203002: Invalidate scrolling contents layer background when child invalidated. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype HTML> 1 <!doctype HTML>
2 <div id="scroller" style="width: 200px; height: 200px; overflow: scroll; backgro und: lightgray; will-change: transform"> 2 <div id="scroller" style="width: 200px; height: 200px; overflow: scroll; backgro und: lightgray local; will-change: transform">
3 <div style="width: 100px; height: 600px; background: lightblue; margin-bottom: 1 0px"></div> 3 <div style="width: 100px; height: 600px; background: lightblue; margin-bottom: 1 0px"></div>
4 <div id="target" style="width: 200px; height: 1000px; background: lightblue; mar gin-bottom: 10px">test</div> 4 <div id="target" style="width: 200px; height: 1000px; background: lightblue; mar gin-bottom: 10px">test</div>
5 </div> 5 </div>
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
7 <script> 7 <script>
8 scroller.scrollTop = 450;
9 function repaintTest() { 8 function repaintTest() {
10 var range = document.createRange(); 9 var range = document.createRange();
11 range.selectNode(target); 10 range.selectNode(target);
12 window.getSelection().addRange(range); 11 window.getSelection().addRange(range);
13 } 12 }
14 onload = runRepaintAndPixelTest; 13 onload = function() {
15 </script> 14 // Ensure the scroller has painted before we scroll.
15 requestAnimationFrame(function() {
16 requestAnimationFrame(function() {
17 scroller.scrollTop = 450;
18 runRepaintTest();
19 });
20 });
21 }
22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698