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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/relayout-justify-items-changed.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: 150px / 100px 100px; 5 grid: 100px 100px / 150px;
6 width: 150px; 6 width: 150px;
7 position: relative; 7 position: relative;
8 } 8 }
9 #fromStretch { justify-items: stretch; } 9 #fromStretch { justify-items: stretch; }
10 #toStretch { justify-items: end; } 10 #toStretch { justify-items: end; }
11 </style> 11 </style>
12 <script src="../../resources/check-layout.js"></script> 12 <script src="../../resources/check-layout.js"></script>
13 <p>Tests how a justify-items style change requires a relayout of the grid and pr eviously stretched items.</p> 13 <p>Tests how a justify-items style change requires a relayout of the grid and pr eviously stretched items.</p>
14 <p>The grid bellow had initially 'justify-items: end' and was changed to 'stretc h'.</p> 14 <p>The grid bellow had initially 'justify-items: end' and was changed to 'stretc h'.</p>
15 <div id="toStretch" class="grid"> 15 <div id="toStretch" class="grid">
(...skipping 12 matching lines...) Expand all
28 <div style="height: 50px;" class="secondRowFirstColumn" data-expected-width= "100" data-offset-x="25"> 28 <div style="height: 50px;" class="secondRowFirstColumn" data-expected-width= "100" data-offset-x="25">
29 <div style="width: 100px;"></div> 29 <div style="width: 100px;"></div>
30 </div> 30 </div>
31 </div> 31 </div>
32 <script> 32 <script>
33 document.body.offsetLeft; 33 document.body.offsetLeft;
34 document.getElementById("toStretch").style.justifyItems = "stretch"; 34 document.getElementById("toStretch").style.justifyItems = "stretch";
35 document.getElementById("fromStretch").style.justifyItems = "center"; 35 document.getElementById("fromStretch").style.justifyItems = "center";
36 checkLayout(".grid"); 36 checkLayout(".grid");
37 </script> 37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698