Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-grid-layout / minmax-fixed-logical-height-only.html
blob07e62d4c5d3d53882e6ec075b7a99e0d677a55df
1 <!DOCTYPE html>
2 <html>
3 <link href="resources/grid.css" rel="stylesheet">
4 <style>
5 .grid {
6 width: 100px;
7 height: 200px;
10 #grid1 {
11 grid-template-columns: 30px;
12 grid-template-rows: minmax(20px, 80px) 160px;
15 #grid2 {
16 grid-template-columns: 30px;
17 grid-template-rows: minmax(50%, 120px) minmax(20px, 40%);
20 #grid3 {
21 grid-template-columns: 30px;
22 /* Overlapping range. */
23 grid-template-rows: minmax(10px, 180px) minmax(30px, 150px);
26 #grid4 {
27 grid-template-columns: 30px;
28 grid-template-rows: minmax(20px, 80px) 60px;
29 -webkit-writing-mode: vertical-rl;
32 #grid5 {
33 grid-template-columns: 30px;
34 /* 90% > 80px, 80px should be ignored. */
35 grid-template-rows: minmax(90%, 80px) minmax(10px, 60%);
36 -webkit-writing-mode: vertical-lr;
39 #grid6 {
40 /* Overlapping range. */
41 grid-template-columns: 30px;
42 grid-template-rows: minmax(10px, 180px) minmax(30px, 150px);
43 -webkit-writing-mode: horizontal-bt;
46 .firstRowFirstColumn {
47 width: 100%;
48 height: 100%;
51 .secondRowFirstColumn {
52 width: 100%;
53 height: 100%;
55 </style>
56 <script src="../../resources/check-layout.js"></script>
57 <body onload="checkLayout('.grid')">
59 <p><a href="https://webkit.org/b/104700">Bug 104700<a>: [CSS Grid Layout] Implement grid items sizing for fixed minmax grid tracks</p>
60 <p>Checks that a grid element with fixed minmax properly compute the logical height in several writing-mode.</p>
62 <div class="grid" id="grid1" data-expected-width="100" data-expected-height="200">
63 <div class="firstRowFirstColumn" data-expected-height="40" data-expected-width="30"></div>
64 <div class="secondRowFirstColumn" data-expected-height="160" data-expected-width="30"></div>
65 </div>
67 <div class="grid" id="grid2" data-expected-width="100" data-expected-height="200">
68 <div class="firstRowFirstColumn" data-expected-height="120" data-expected-width="30"></div>
69 <div class="secondRowFirstColumn" data-expected-height="80" data-expected-width="30"></div>
70 </div>
72 <div class="grid" id="grid3" data-expected-width="100" data-expected-height="200">
73 <div class="firstRowFirstColumn" data-expected-height="90" data-expected-width="30"></div>
74 <div class="secondRowFirstColumn" data-expected-height="110" data-expected-width="30"></div>
75 </div>
77 <div class="grid" id="grid4" data-expected-width="100" data-expected-height="200">
78 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="40"></div>
79 <div class="secondRowFirstColumn" data-expected-height="30" data-expected-width="60"></div>
80 </div>
82 <div class="grid" id="grid5" data-expected-width="100" data-expected-height="200">
83 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="90"></div>
84 <div class="secondRowFirstColumn" data-expected-height="30" data-expected-width="10"></div>
85 </div>
87 <div class="grid" id="grid6" data-expected-width="100" data-expected-height="200">
88 <div class="firstRowFirstColumn" data-expected-height="90" data-expected-width="30"></div>
89 <div class="secondRowFirstColumn" data-expected-height="110" data-expected-width="30"></div>
90 </div>
92 </body>
93 </html>