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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid.html

Issue 1709963002: [css-align] New CSS Value 'normal' for Self Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Getting back the FullScreen fix, missed during the rebase. Created 4 years, 4 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.getElementsByClassName('item1')[0].style.alignSelf = 'stretch';
6 document.getElementsByClassName('item2')[0].style.alignSelf = 'stretch';
6 } 7 }
7 onload = runRepaintAndPixelTest; 8 onload = runRepaintAndPixelTest;
8 </script> 9 </script>
9 <style> 10 <style>
10 body { 11 body {
11 margin: 0; 12 margin: 0;
12 } 13 }
13 #container { 14 #container {
14 display: grid; 15 display: grid;
15 grid: 300px / 100px; 16 align-items: start;
17 grid: 300px / 100px 100px;
16 width: 200px; 18 width: 200px;
17 height: 300px; 19 height: 300px;
18 background-color: red; 20 background-color: red;
19 } 21 }
20 .item { 22 .item1 {
21 grid-row: 1; 23 grid-row: 1;
22 grid-column: 1; 24 grid-column: 1;
23 align-self: start; 25 height: 300px;
26 background-color: green;
27 }
28 .item2 {
29 grid-row: 1;
30 grid-column: 2;
31 height: 300px;
24 background-color: green; 32 background-color: green;
25 } 33 }
26 </style> 34 </style>
27 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p> 35 <p style="height: 20px">There should be no invalidations because align-self styl e change causes no visual change.</p>
28 <div id="container"> 36 <div id="container">
29 <div class="item"> 37 <div id="item1" class="item1"></div>
30 <div style="height: 300px"></div> 38 <div id="item2" class="item2"></div>
31 </div>
32 </div> 39 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698