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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item-children.html

Issue 2039223002: [css-grid] Fix percentage height on grid item's children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New version using overrideLogicalContentHeight Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.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 <style>
5
6 .grid {
7 grid: 100px / 200px;
8 position: relative;
9 }
10
11 .fixedSize350 {
12 width: 350px;
13 height: 350px;
14 }
15
16 .percentSize100 {
17 width: 100%;
18 height: 100%;
19 }
20
21 .percentSize50 {
22 width: 50%;
23 height: 50%;
24 }
25
26 .positioned {
27 position: absolute;
28 grid-column: 1 / 2;
29 grid-row: 1 / 2;
30 }
31
32 .offsets {
33 left: 0;
34 right: 0;
35 top: 0;
36 bottom: 0;
37 }
38
39 </style>
40 <script src="../../resources/testharness.js"></script>
41 <script src="../../resources/testharnessreport.js"></script>
42 <script src="../../resources/check-layout-th.js"></script>
43 <body onload="checkLayout('.grid')">
44 <div id="log"></div>
45
46 <p>This test checks that percentages are properly resolved for grid items' child ren.</p>
47
48 <div class="grid">
49 <div data-expected-width="200" data-expected-height="100">
50 <div class="percentSize100" data-expected-width="200" data-expected-heig ht="100">
51 </div>
52 </div>
53 </div>
54
55 <div class="grid">
56 <div data-expected-width="200" data-expected-height="100">
57 <div class="percentSize50" data-expected-width="100" data-expected-heigh t="50">
58 </div>
59 </div>
60 </div>
61
62 <div class="grid itemsStart">
63 <div data-expected-width="0" data-expected-height="0">
64 <div class="percentSize100" data-expected-width="0" data-expected-height ="0">
65 </div>
66 </div>
67 </div>
68
69 <div class="grid itemsStart">
70 <div data-expected-width="0" data-expected-height="0">
71 <div class="percentSize50" data-expected-width="0" data-expected-height= "0">
72 </div>
73 </div>
74 </div>
75
76 <div class="grid">
77 <div class="fixedSize350" data-expected-width="350" data-expected-height="35 0">
78 <div class="percentSize100" data-expected-width="350" data-expected-heig ht="350">
79 </div>
80 </div>
81 </div>
82
83 <div class="grid">
84 <div class="fixedSize350" data-expected-width="350" data-expected-height="35 0">
85 <div class="percentSize50" data-expected-width="175" data-expected-heigh t="175">
86 </div>
87 </div>
88 </div>
89
90 <div class="grid">
91 <div class="percentSize100" data-expected-width="200" data-expected-height=" 100">
92 <div class="percentSize100" data-expected-width="200" data-expected-heig ht="100">
93 </div>
94 </div>
95 </div>
96
97 <div class="grid">
98 <div class="percentSize100" data-expected-width="200" data-expected-height=" 100">
99 <div class="percentSize50" data-expected-width="100" data-expected-heigh t="50">
100 </div>
101 </div>
102 </div>
103
104 <div class="grid">
105 <div class="percentSize50" data-expected-width="100" data-expected-height="5 0">
106 <div class="percentSize100" data-expected-width="100" data-expected-heig ht="50">
107 </div>
108 </div>
109 </div>
110
111 <div class="grid">
112 <div class="percentSize50" data-expected-width="100" data-expected-height="5 0">
113 <div class="percentSize50" data-expected-width="50" data-expected-height ="25">
114 </div>
115 </div>
116 </div>
117
118 <div class="grid">
119 <div class="positioned" data-expected-width="0" data-expected-height="0">
120 <div class="percentSize100" data-expected-width="0" data-expected-height ="0">
121 </div>
122 </div>
123 </div>
124
125 <div class="grid">
126 <div class="positioned" data-expected-width="0" data-expected-height="0">
127 <div class="percentSize50" data-expected-width="0" data-expected-height= "0">
128 </div>
129 </div>
130 </div>
131
132 <div class="grid">
133 <div class="positioned offsets" data-expected-width="200" data-expected-heig ht="100">
134 <div class="percentSize100" data-expected-width="200" data-expected-heig ht="100">
135 </div>
136 </div>
137 </div>
138
139 <div class="grid">
140 <div class="positioned offsets" data-expected-width="200" data-expected-heig ht="100">
141 <div class="percentSize50" data-expected-width="100" data-expected-heigh t="50">
142 </div>
143 </div>
144 </div>
145
146 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698