-
Notifications
You must be signed in to change notification settings - Fork 0
/
row-005.html
115 lines (102 loc) · 2.85 KB
/
row-005.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#intrinsic-sizes">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<meta name="assert" content="" />
<style>
.zero-width {
width: 0px;
height: 100px;
margin-bottom: 20px;
}
.floating-flexbox {
display: flex;
outline: 5px solid blue;
height: 100px;
float: left;
}
.floating-flexbox>div:nth-child(1) {
background: yellow;
}
.floating-flexbox>div:nth-child(2) {
background: orange;
}
.floating-flexbox>div>div {
width: 100px;
}
</style>
<body onload="checkLayout('.floating-flexbox')">
<main>
<div class="zero-width">
<div class="floating-flexbox" data-expected-width="300">
<div style="flex: 1 1 200px; width:50px;">
<div></div>
</div>
<div style="flex: 1 1 400px; width:50px;">
<div></div>
</div>
</div>
</div>
<div class="zero-width">
<div class="floating-flexbox" data-expected-width="225">
<div style="flex: 1 1 200px; width:50px;">
<div></div>
</div>
<div style="flex: 1 2 400px; width:50px;">
<div></div>
</div>
</div>
</div>
<div class="zero-width">
<div class="floating-flexbox" data-expected-width="225">
<div style="flex: 1 1 200px; width:50px; min-width: 0px;">
<div></div>
</div>
<div style="flex: 1 2 400px; width:50px; min-width: 0px;">
<div></div>
</div>
</div>
</div>
<div class="zero-width">
<div class="floating-flexbox" data-expected-width="600">
<div style="flex: 1 0 200px; width:50px;">
<div></div>
</div>
<div style="flex: 1 1 400px; width:50px;">
<div></div>
</div>
</div>
</div>
<div class="zero-width">
<div class="floating-flexbox" data-expected-width="200">
<div style="flex: 0 0 50px; width: 200px;">
<div></div>
</div>
<div style="flex: 0 0 50px; width: 200px;">
<div></div>
</div>
</div>
</div>
<div class="zero-width">
<div class="floating-flexbox" data-expected-width="600">
<div style="flex: 1 0 50px; width: 200px;">
<div></div>
</div>
<div style="flex: 2 0 100px; width: 200px;">
<div></div>
</div>
</div>
</div>
<div class="zero-width">
<div class="floating-flexbox" data-expected-width="400">
<div style="flex: 0 1 200px; width: 50px;">
<div></div>
</div>
<div style="flex: 2 0 100px; width: 200px;">
<div></div>
</div>
</div>
</div>
</main>