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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/align-self-change-keeping-geometry-grid.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-grid.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 } 9 }
7 onload = runRepaintTest; 10 onload = runPaintInvalidationTest;
8 </script> 11 </script>
9 <style> 12 <style>
10 body { 13 body {
11 margin: 0; 14 margin: 0;
12 } 15 }
13 #container { 16 #container {
14 display: grid; 17 display: grid;
15 grid: 100px / 300px; 18 grid: 100px / 300px;
16 width: 200px; 19 width: 200px;
17 height: 300px; 20 height: 300px;
18 background-color: red; 21 background-color: red;
19 } 22 }
20 .item { 23 .item {
21 grid-row: 1; 24 grid-row: 1;
22 grid-column: 1; 25 grid-column: 1;
23 align-self: start; 26 align-self: start;
24 background-color: green; 27 background-color: green;
25 } 28 }
26 </style> 29 </style>
27 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p> 30 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p>
28 <div id="container"> 31 <div id="container">
29 <div class="item"> 32 <div class="item">
30 <div style="height: 300px"></div> 33 <div style="height: 300px"></div>
31 </div> 34 </div>
32 </div> 35 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698