5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
7 <link href="resources/grid.css" rel="stylesheet">
15 grid-template-columns: minmax(20px, 80px) 60px;
16 grid-template-rows: 30px;
20 /* First minmax more constraining than available logical width. */
21 grid-template-columns: minmax(50%, 60px) minmax(10px, 40%);
22 grid-template-rows: 30px;
26 /* Overlapping range. */
27 grid-template-columns: minmax(10px, 80px) minmax(20px, 50px);
28 grid-template-rows: 30px;
32 grid-template-columns: minmax(20px, 80px) 160px;
33 grid-template-rows: 30px;
34 -webkit-writing-mode: vertical-rl;
38 /* 50% > 80px, 80px should be ignored. */
39 grid-template-columns: minmax(50%, 80px) minmax(10px, 60%);
40 grid-template-rows: 30px;
41 -webkit-writing-mode: vertical-lr;
45 /* Overlapping range. */
46 grid-template-columns: minmax(10px, 180px) minmax(30px, 150px);
47 grid-template-rows: 30px;
48 -webkit-writing-mode: horizontal-bt;
51 .firstRowFirstColumn {
56 .firstRowSecondColumn {
61 <script src="../../resources/check-layout.js"></script>
62 <body onload="checkLayout('.grid')">
64 <p><a href="https://webkit.org/b/104700">Bug 104700<a>: [CSS Grid Layout] Implement grid items sizing for fixed minmax grid tracks</p>
65 <p>Checks that a grid element with fixed minmax properly compute the logical width in several writing-mode.</p>
67 <div class="grid" id="grid1" data-expected-width="100" data-expected-height="200">
68 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="40"></div>
69 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="60"></div>
72 <div class="grid" id="grid2" data-expected-width="100" data-expected-height="200">
73 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="60"></div>
74 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="40"></div>
77 <div class="grid" id="grid3" data-expected-width="100" data-expected-height="200">
78 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="50"></div>
79 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="50"></div>
82 <div class="grid" id="grid4" data-expected-width="100" data-expected-height="200">
83 <div class="firstRowFirstColumn" data-expected-height="40" data-expected-width="30"></div>
84 <div class="firstRowSecondColumn" data-expected-height="160" data-expected-width="30"></div>
87 <div class="grid" id="grid5" data-expected-width="100" data-expected-height="200">
88 <div class="firstRowFirstColumn" data-expected-height="100" data-expected-width="30"></div>
89 <div class="firstRowSecondColumn" data-expected-height="100" data-expected-width="30"></div>
92 <div class="grid" id="grid6" data-expected-width="100" data-expected-height="200">
93 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="40"></div>
94 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="60"></div>