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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/align-self-change-no-flex.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 fast/repaint/align-self-change-no-flex.html -->
1 <!DOCTYPE HTML> 2 <!DOCTYPE HTML>
2 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
3 <script> 4 <script>
4 function repaintTest() { 5 window.expectedPaintInvalidationObjects = [
6 ];
7 function paintInvalidationTest() {
5 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; 8 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch';
6 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; 9 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch';
7 } 10 }
8 onload = runRepaintTest; 11 onload = runPaintInvalidationTest;
9 </script> 12 </script>
10 <style> 13 <style>
11 .container { 14 .container {
12 width: 200px; 15 width: 200px;
13 height: 300px; 16 height: 300px;
14 background-color: blue; 17 background-color: blue;
15 } 18 }
16 .item { 19 .item {
17 background-color: green; 20 background-color: green;
18 border: solid thin blue; 21 border: solid thin blue;
19 } 22 }
20 </style> 23 </style>
21 There should be no invalidations when align-self changes on a non-flex container . 24 There should be no invalidations when align-self changes on a non-flex container .
22 <div id="container"> 25 <div id="container">
23 <div class="item"> 26 <div class="item">
24 <div style="height: 100px"></div> 27 <div style="height: 100px"></div>
25 </div> 28 </div>
26 <div class="item"> 29 <div class="item">
27 <div style="height: 150px"></div> 30 <div style="height: 150px"></div>
28 </div> 31 </div>
29 </div> 32 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698