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

Side by Side Diff: LayoutTests/fast/repaint/align-items-change-keeping-geometry.html

Issue 1136283006: [CSS Grid Layout] Avoid using StyleAdjuster to resolve 'auto' values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed some layout tests failures. Created 5 years, 7 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 <script src="resources/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; 5 document.getElementById('container').style.alignItems = 'stretch';
6 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch';
7 } 6 }
8 onload = runRepaintTest; 7 onload = runRepaintTest;
9 </script> 8 </script>
10 <style> 9 <style>
11 .flex { 10 .flex {
12 display: flex; 11 display: flex;
13 align-items: flex-start; 12 align-items: flex-start;
14 width: 200px; 13 width: 200px;
15 height: 300px; 14 height: 300px;
16 background-color: red; 15 background-color: red;
17 } 16 }
18 .item { 17 .item {
19 background-color: green; 18 background-color: green;
20 border: solid thin blue; 19 border: solid thin blue;
21 width: 100px; 20 width: 100px;
22 height: 300px; 21 height: 300px;
23 } 22 }
24 </style> 23 </style>
25 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p> 24 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p>
26 <div class="flex"> 25 <div id="container" class="flex">
27 <div class="item"></div> 26 <div class="item"></div>
28 <div class="item"></div> 27 <div class="item"></div>
29 </div> 28 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698