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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/relayout-indefinite-heights.html

Issue 1702013003: [css-grid] Swap columns and rows in grid-template shorthand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swap columns and rows in tests under fast/repaint/ Created 4 years, 10 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 <link href="resources/grid.css" rel="stylesheet"> 2 <link href="resources/grid.css" rel="stylesheet">
3 <style> 3 <style>
4 .grid { 4 .grid {
5 grid: 50px / minmax(5px, 1fr) minmax(5px, 2fr); 5 grid: minmax(5px, 1fr) minmax(5px, 2fr) / 50px;
6 } 6 }
7 7
8 #fromIndefinite { height: auto; } 8 #fromIndefinite { height: auto; }
9 #toIndefinite { height: 90px; } 9 #toIndefinite { height: 90px; }
10 </style> 10 </style>
11 <script src="../../resources/check-layout.js"></script> 11 <script src="../../resources/check-layout.js"></script>
12 <p>Tests how a change in grid's height requires evaluating again whether the gri d has indefinite or definite height.</p> 12 <p>Tests how a change in grid's height requires evaluating again whether the gri d has indefinite or definite height.</p>
13 13
14 <p>The grid bellow had initially 'height: auto' (indefinite) and has been change d to '90px' (definite).</p> 14 <p>The grid bellow had initially 'height: auto' (indefinite) and has been change d to '90px' (definite).</p>
15 <div class="constrainedContainer"> 15 <div class="constrainedContainer">
(...skipping 12 matching lines...) Expand all
28 <div class="secondRowFirstColumn" data-expected-width="50" data-expected -height="10"></div> 28 <div class="secondRowFirstColumn" data-expected-width="50" data-expected -height="10"></div>
29 </div> 29 </div>
30 </div> 30 </div>
31 31
32 <script> 32 <script>
33 document.body.offsetLeft; 33 document.body.offsetLeft;
34 document.getElementById("toIndefinite").style.height = "auto"; 34 document.getElementById("toIndefinite").style.height = "auto";
35 document.getElementById("fromIndefinite").style.height = "90px"; 35 document.getElementById("fromIndefinite").style.height = "90px";
36 checkLayout(".grid"); 36 checkLayout(".grid");
37 </script> 37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698