Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-grid-layout / relayout-justify-items-changed.html
blobec5b08d48de9fcb32813b282317350ad6a2c668c
1 <!DOCTYPE HTML>
2 <link href="resources/grid.css" rel="stylesheet">
3 <style>
4 .grid {
5 grid: 150px / 100px 100px;
6 width: 150px;
7 position: relative;
9 #fromStretch { justify-items: stretch; }
10 #toStretch { justify-items: end; }
11 </style>
12 <script src="../../resources/check-layout.js"></script>
13 <p>Tests how a justify-items style change requires a relayout of the grid and previously stretched items.</p>
14 <p>The grid bellow had initially 'justify-items: end' and was changed to 'stretch'.</p>
15 <div id="toStretch" class="grid">
16 <div style="height: 50px;" class="firstRowFirstColumn" data-expected-width="150" data-offset-x="0">
17 <div style="width: 50px;"></div>
18 </div>
19 <div style="height: 50px;" class="secondRowFirstColumn" data-expected-width="150" data-offset-x="0">
20 <div style="width: 100px;"></div>
21 </div>
22 </div>
23 <p>The grid bellow was initially stretched and it has now 'justify-items: center'.</p>
24 <div id="fromStretch" class="grid">
25 <div style="height: 50px;" class="firstRowFirstColumn" data-expected-width="50" data-offset-x="50">
26 <div style="width: 50px;"></div>
27 </div>
28 <div style="height: 50px;" class="secondRowFirstColumn" data-expected-width="100" data-offset-x="25">
29 <div style="width: 100px;"></div>
30 </div>
31 </div>
32 <script>
33 document.body.offsetLeft;
34 document.getElementById("toStretch").style.justifyItems = "stretch";
35 document.getElementById("fromStretch").style.justifyItems = "center";
36 checkLayout(".grid");
37 </script>