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

Side by Side Diff: LayoutTests/fast/css-grid-layout/relayout-align-items-changed.html

Issue 1228983003: [CSS Grid Layout] Do not stretch always grid items with auto width (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied suggested changes. Created 5 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
(Empty)
1 <!DOCTYPE HTML>
2 <link href="resources/grid.css" rel="stylesheet">
3 <style>
4 .grid {
5 grid: 100px 100px / 150px;
6 position: relative;
7 }
8 #fromStretch { align-items: stretch; }
9 #toStretch { align-items: end; }
10 </style>
11 <script src="../../resources/check-layout.js"></script>
12 <p>Tests how a align-items style change requires a relayout of the grid and prev iously stretched items.</p>
13 <p>The grid bellow had initially 'align-items: end' and was changed to 'stretch' .</p>
14 <div id="toStretch" class="grid">
15 <div style="width: 50px;" class="firstRowFirstColumn" data-expected-height=" 150" data-offset-y="0">
16 <div style="height: 50px"></div>
17 </div>
18 <div style="width: 50px;" class="firstRowSecondColumn" data-expected-height= "150" data-offset-y="0">
19 <div style="height: 100px"></div>
20 </div>
21 </div>
22 <p>The grid bellow was initially stretched and it has now 'align-items: center'. </p>
23 <div id="fromStretch" class="grid">
24 <div style="width: 50px;" class="firstRowFirstColumn" data-expected-height=" 50" data-offset-y="50">
25 <div style="height: 50px"></div>
26 </div>
27 <div style="width: 50px;" class="firstRowSecondColumn" data-expected-height= "100" data-offset-y="25">
28 <div style="height: 100px"></div>
29 </div>
30 </div>
31 <script>
32 document.body.offsetLeft;
33 document.getElementById("toStretch").style.alignItems = "stretch";
34 document.getElementById("fromStretch").style.alignItems = "center";
35 checkLayout(".grid");
36 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698