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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/repaint-via-layout-offset.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 <!-- Based on compositing/squashing/repaint-via-layout-offset.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
3 <style> 4 <style>
4 #container { 5 #container {
5 position: absolute; 6 position: absolute;
6 z-index: 0; 7 z-index: 0;
7 left: 50px; 8 left: 50px;
8 top: 50px; 9 top: 50px;
9 } 10 }
10 11
11 .child { 12 .child {
12 position: absolute; 13 position: absolute;
13 width: 40px; 14 width: 40px;
14 height: 40px; 15 height: 40px;
15 background-color: red; 16 background-color: red;
16 } 17 }
17 18
18 .embiggen { 19 .embiggen {
19 width: 50px; 20 width: 50px;
20 height: 50px; 21 height: 50px;
21 background-color: green; 22 background-color: green;
22 } 23 }
23 </style> 24 </style>
24 <div style="width:200px; height:200px; transform: translateZ(0px); background-co lor: lightblue"></div> 25 <div style="width:200px; height:200px; transform: translateZ(0px); background-co lor: lightblue"></div>
25 <div id="container"> 26 <div id="container">
26 <span class="child"></span> 27 <span class="child"></span>
27 <span class="child"></span> 28 <span class="child"></span>
28 </div> 29 </div>
29 <script> 30 <script>
30 function repaintTest() { 31 window.expectedPaintInvalidationObjects = [
32 "LayoutBlockFlow (positioned) SPAN class='child embiggen'",
33 ];
34 function paintInvalidationTest() {
31 document.querySelectorAll('.child')[1].classList.add('embiggen'); 35 document.querySelectorAll('.child')[1].classList.add('embiggen');
32 } 36 }
33 runRepaintTest(); 37 runPaintInvalidationTest();
34 </script> 38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698