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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-margins-and-orthogonal-flows.html

Issue 2543193002: [css-grid] Use child's marginLogicalWidth to compute content-sized track (Closed)
Patch Set: Compute margins if child needs layout. Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <link href="resources/grid.css" rel="stylesheet">
3 <link href="resources/grid-alignment.css" rel="stylesheet">
4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel ="stylesheet">
5 <style>
6 .grid { font: 20px/1 Ahem; }
7 .item { margin: 10px 5px 5px 15px; }
8 </style>
9 <script src="../../resources/testharness.js"></script>
10 <script src="../../resources/testharnessreport.js"></script>
11 <script src="../../resources/check-layout-th.js"></script>
12
13 <body onload="checkLayout('.grid')">
14 <div id="log"></div>
15 <p>This test checks that grid items' margin is computed correctly for content-si zed tracks when using different writing modes.</p>
16
17 <div style="position: relative">
18 <div class="grid fit-content itemsStart" data-expected-width="40" data-expec ted-height="140">
19 <div class="item verticalLR" data-offset-x="15" data-offset-y="10" data -expected-width="20" data-expected-height="20">X</div>
20 <div class="item verticalLR" data-offset-x="15" data-offset-y="45" data -expected-width="20" data-expected-height="20">X</div>
21 <div class="item verticalLR" data-offset-x="15" data-offset-y="80" data -expected-width="20" data-expected-height="20">X</div>
22 <div class="item verticalLR" data-offset-x="15" data-offset-y="115" data -expected-width="20" data-expected-height="20">X</div>
23 </div>
24 </div>
25
26 <br>
27
28 <div style="position: relative">
29 <div class="grid gridAutoFlowColumnSparse fit-content itemsStart" data-expec ted-width="160" data-expected-height="35">
30 <div class="item verticalLR" data-offset-x="15" data-offset-y="10" data -expected-width="20" data-expected-height="20">X</div>
31 <div class="item verticalLR" data-offset-x="55" data-offset-y="10" data -expected-width="20" data-expected-height="20">X</div>
32 <div class="item verticalLR" data-offset-x="95" data-offset-y="10" data -expected-width="20" data-expected-height="20">X</div>
33 <div class="item verticalLR" data-offset-x="135" data-offset-y="10" data -expected-width="20" data-expected-height="20">X</div>
34 </div>
35 </div>
36
37 <br>
38
39 <div style="position: relative">
40 <div class="grid fit-content verticalLR itemsStart" data-expected-width="160 " data-expected-height="35">
41 <div class="item horizontalTB" data-offset-x="15" data-offset-y="10" da ta-expected-width="20" data-expected-height="20">X</div>
42 <div class="item horizontalTB" data-offset-x="55" data-offset-y="10" da ta-expected-width="20" data-expected-height="20">X</div>
43 <div class="item horizontalTB" data-offset-x="95" data-offset-y="10" da ta-expected-width="20" data-expected-height="20">X</div>
44 <div class="item horizontalTB" data-offset-x="135" data-offset-y="10" da ta-expected-width="20" data-expected-height="20">X</div>
45 </div>
46 </div>
47
48 <br>
49
50 <div style="position: relative">
51 <div class="grid gridAutoFlowColumnSparse fit-content verticalLR itemsStart" data-expected-width="40" data-expected-height="140">
52 <div class="item horizontalTB" data-offset-x="15" data-offset-y="10" da ta-expected-width="20" data-expected-height="20">X</div>
53 <div class="item horizontalTB" data-offset-x="15" data-offset-y="45" da ta-expected-width="20" data-expected-height="20">X</div>
54 <div class="item horizontalTB" data-offset-x="15" data-offset-y="80" da ta-expected-width="20" data-expected-height="20">X</div>
55 <div class="item horizontalTB" data-offset-x="15" data-offset-y="115" da ta-expected-width="20" data-expected-height="20">X</div>
56 </div>
57 </div>
58
59 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698