Skip to content

Commit 7058baa

Browse files
tonikitoochromium-wpt-export-bot
authored andcommitted
[css-flexbox] Migrate flexbox-height-with-overflow-auto.html to WPT
As part of this move, the test was renamed to flexbox-overflow-auto-002.html. BUG=1063749 [email protected] Change-Id: I35b258bed47050051139020a1fc3147d08333fbd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2120544 Commit-Queue: Antonio Gomes <[email protected]> Reviewed-by: Christian Biesinger <[email protected]> Cr-Commit-Position: refs/heads/master@{#754006}
1 parent e0ed4e0 commit 7058baa

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<title>CSS Flexbox: Height with overflow: auto.</title>
4+
<link href="support/flexbox.css" rel="stylesheet">
5+
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property">
6+
<link rel="help" href="https://www.w3.org/TR/css-overflow-4/#classic-scrollbars">
7+
<meta name="assert" content="This test ensures that flexbox with 'flex-direction: row|row-reverse' and a flex item child with 'overflow: auto' has the proper height."/>
8+
<style>
9+
.flexbox {
10+
border: 5px solid green;
11+
position: relative;
12+
width: 50px;
13+
}
14+
15+
.inline-flexbox {
16+
border: 5px solid green;
17+
position: relative;
18+
height: 50px;
19+
}
20+
21+
.overflow {
22+
border: 1px solid red;
23+
overflow: auto;
24+
min-width: 0;
25+
min-height: 0;
26+
}
27+
28+
.vertical {
29+
writing-mode: vertical-rl;
30+
}
31+
</style>
32+
<script src="/resources/testharness.js"></script>
33+
<script src="/resources/testharnessreport.js"></script>
34+
<script src="/resources/check-layout-th.js"></script>
35+
<body onload="checkLayout('.flexbox, .inline-flexbox')">
36+
<div id=log></div>
37+
<div class="flexbox" data-expected-height="47">
38+
<div class="overflow"><div style="width: 100px; height: 20px"></div></div>
39+
</div>
40+
41+
<div class="flexbox row-reverse" data-expected-height="47">
42+
<div class="overflow"><div style="width: 100px; height: 20px"></div></div>
43+
</div>
44+
45+
<div class="flexbox vertical" data-expected-height="47">
46+
<div class="overflow"><div style="width: 100px; height: 20px"></div></div>
47+
</div>
48+
49+
<div class="flexbox row-reverse vertical" data-expected-height="47">
50+
<div class="overflow"><div style="width: 100px; height: 20px"></div></div>
51+
</div>
52+
53+
<div class="flexbox" data-expected-height="47">
54+
<div class="overflow align-self-baseline"><div style="width: 100px; height: 20px"></div></div>
55+
</div>
56+
57+
<div class="flexbox row-reverse" data-expected-height="47">
58+
<div class="overflow align-self-baseline"><div style="width: 100px; height: 20px"></div></div>
59+
</div>
60+
61+
<div class="flexbox vertical" data-expected-height="32">
62+
<div class="overflow align-self-baseline"><div style="width: 100px; height: 20px"></div></div>
63+
</div>
64+
65+
<div class="flexbox row-reverse vertical" data-expected-height="32">
66+
<div class="overflow align-self-baseline"><div style="width: 100px; height: 20px"></div></div>
67+
</div>
68+
69+
<div class="inline-flexbox column" data-expected-width="47">
70+
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
71+
</div>
72+
73+
<div class="inline-flexbox column-reverse" data-expected-width="47">
74+
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
75+
</div>
76+
77+
<div class="inline-flexbox column vertical" data-expected-width="47">
78+
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
79+
</div>
80+
81+
<div class="inline-flexbox column-reverse vertical" data-expected-width="47">
82+
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
83+
</div>
84+
85+
<div class="inline-flexbox column" data-expected-width="47">
86+
<div class="overflow align-self-baseline"><div style="width: 20px; height: 100px"></div></div>
87+
</div>
88+
89+
<div class="inline-flexbox column-reverse" data-expected-width="47">
90+
<div class="overflow align-self-baseline"><div style="width: 20px; height: 100px"></div></div>
91+
</div>
92+
93+
<div class="inline-flexbox column vertical" data-expected-width="32">
94+
<div class="overflow align-self-baseline"><div style="width: 20px; height: 100px"></div></div>
95+
</div>
96+
97+
<div class="inline-flexbox column-reverse vertical" data-expected-width="32">
98+
<div class="overflow align-self-baseline"><div style="width: 20px; height: 100px"></div></div>
99+
</div>
100+
</body>
101+
</html>

0 commit comments

Comments
 (0)