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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/invalidations-with-large-negative-margin.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on compositing/squashing/invalidations-with-large-negative-margin.htm l --> 1 <!-- Based on compositing/squashing/invalidations-with-large-negative-margin.htm l -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <div style="height:200px;width:600px;overflow:scroll"> 3 <div style="height:200px;width:600px;overflow:scroll">
4 <div style="position:relative"> 4 <div style="position:relative">
5 <div style="height:400px;margin-bottom:-400px;position:relative"> 5 <div style="height:400px;margin-bottom:-400px;position:relative">
6 <div id="chip" style="width:50px;height:50px;position:absolute;background: lightblue;margin:0"></div> 6 <div id="chip" style="width:50px;height:50px;position:absolute;background: lightblue;margin:0"></div>
7 </div> 7 </div>
8 </div> 8 </div>
9 </div> 9 </div>
10 10
11 <script src="resources/paint-invalidation-test.js"></script> 11 <script src="resources/paint-invalidation-test.js"></script>
12 <script> 12 <script>
13 // Test that moving a Layer that is squashed relative to its squashing container repaints correctly. 13 // Test that moving a Layer that is squashed relative to its squashing container repaints correctly.
14 // In particular, the repaint rect needs to be recorded in the correct position relative to the squashing GraphicsLayer. 14 // In particular, the repaint rect needs to be recorded in the correct position relative to the squashing GraphicsLayer.
15 window.expectedPaintInvalidationObjects = [
16 "LayoutBlockFlow (positioned) DIV id='chip'",
17 ];
18 function paintInvalidationTest() 15 function paintInvalidationTest()
19 { 16 {
20 document.getElementById('chip').style.left = "400px"; 17 document.getElementById('chip').style.left = "400px";
21 } 18 }
22 19
23 runPaintInvalidationTest(); 20 runPaintInvalidationTest();
24 </script> 21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698