blob: ca0c4d9b2a0c62244d9c1bd5bd3a9a7ed884b8f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!DOCTYPE html>
<link rel="author" title="Google Inc." href="http://www.google.com/">
<style>
body {
position: relative;
width: 600px;
height: 800px;
}
#container {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
}
#top-bar {
background-color: green;
width: 100px;
}
#content {
background-color: blue;
width: 500px;
}
</style>
<div id="container">
<div id="top-bar">
Tests that percentage widths get resolved correctly when the flexbox is
</div>
<div id="content">
absolutely positioned without an explicit width. You should see no red.
</div>
</div>
|