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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/align-self-change-keeping-geometry.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-keeping-geometry.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 .flex { 14 .flex {
12 display: flex; 15 display: flex;
13 align-items: flex-start; 16 align-items: flex-start;
14 width: 200px; 17 width: 200px;
15 height: 300px; 18 height: 300px;
16 background-color: red; 19 background-color: red;
17 } 20 }
18 .item { 21 .item {
19 background-color: green; 22 background-color: green;
20 border: solid thin blue; 23 border: solid thin blue;
21 width: 100px; 24 width: 100px;
22 height: 300px; 25 height: 300px;
23 } 26 }
24 </style> 27 </style>
25 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p> 28 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p>
26 <div class="flex"> 29 <div class="flex">
27 <div class="item"></div> 30 <div class="item"></div>
28 <div class="item"></div> 31 <div class="item"></div>
29 </div> 32 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698