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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 <style> 2 <style>
3 .mv-tile{ 3 .mv-tile{
4 display:inline-block; 4 display:inline-block;
5 height:50px; 5 height:50px;
6 position:relative; 6 position:relative;
7 width:100px; 7 width:100px;
8 margin-right:410px; 8 margin-right:410px;
9 } 9 }
10 </style> 10 </style>
11 <div style="position: absolute; width: 1000px; height: 1000px; transform: transl ateZ(0)"></div> 11 <div style="position: absolute; width: 1000px; height: 1000px; transform: transl ateZ(0)"></div>
12 <div id="container"> 12 <div id="container">
13 <div class="mv-tile" id="foo"></div> 13 <div class="mv-tile" id="foo"></div>
14 <div class="mv-tile" style="background-color: lightblue;"></div> 14 <div class="mv-tile" style="background-color: lightblue;"></div>
15 </div> 15 </div>
16 <div class="mv-tile" style="width: 1000px"></div> 16 <div class="mv-tile" style="width: 1000px"></div>
17 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 17 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
18 <script> 18 <script>
19 // This test verifies that a paint invalidation is correctly issued for both the old and new location of 19 // This test verifies that a paint invalidation is correctly issued for both the old and new location of
20 // the mv-tile element which is *not* removed from the DOM, but nevertheless mov es to the left as the other one 20 // the mv-tile element which is *not* removed from the DOM, but nevertheless mov es to the left as the other one
21 // is removed. 21 // is removed.
22 22
23 function repaintTest() { 23 function repaintTest() {
24 document.querySelector("#foo").remove(); 24 document.querySelector("#foo").remove();
25 } 25 }
26 26
27 runRepaintTest(); 27 runRepaintAndPixelTest();
28 28
29 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698