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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/invalidations-with-large-negative-margin.html

Issue 1992303002: Test pixel results for repaint tests changing scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <div style="height:200px;width:600px;overflow:scroll"> 2 <div style="height:200px;width:600px;overflow:scroll">
3 <div style="position:relative"> 3 <div style="position:relative">
4 <div style="height:400px;margin-bottom:-400px;position:relative"> 4 <div style="height:400px;margin-bottom:-400px;position:relative">
5 <div id="chip" style="width:50px;height:50px;position:absolute;background: lightblue;margin:0"></div> 5 <div id="chip" style="width:50px;height:50px;position:absolute;background: lightblue;margin:0"></div>
6 </div> 6 </div>
7 </div> 7 </div>
8 </div> 8 </div>
9 9
10 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 10 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
11 <script> 11 <script>
12 // Test that moving a Layer that is squashed relative to its squashing container repaints correctly. 12 // Test that moving a Layer that is squashed relative to its squashing container repaints correctly.
13 // In particular, the repaint rect needs to be recorded in the correct position relative to the squashing GraphicsLayer. 13 // In particular, the repaint rect needs to be recorded in the correct position relative to the squashing GraphicsLayer.
14 function repaintTest() 14 function repaintTest()
15 { 15 {
16 document.getElementById('chip').style.left = "400px"; 16 document.getElementById('chip').style.left = "400px";
17 } 17 }
18 18
19 runRepaintTest(); 19 runRepaintAndPixelTest();
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698