|
2 | 2 | .flexbox {
|
3 | 3 | display: flex;
|
4 | 4 | }
|
5 |
| -.column, .column .fixed { |
| 5 | +.column { |
6 | 6 | height: 50px;
|
7 | 7 | }
|
8 |
| -.row, .row .fixed { |
| 8 | +.row { |
9 | 9 | width: 50px;
|
10 | 10 | }
|
11 | 11 | .container > div {
|
12 | 12 | outline: 2px solid blue;
|
13 | 13 | }
|
14 | 14 | .row > div > div {
|
15 | 15 | height: 20px;
|
16 |
| -} |
17 |
| -.flexbox > div { |
18 | 16 | flex: 0 0 auto;
|
19 | 17 | }
|
20 | 18 | .column > .flexbox {
|
|
39 | 37 | <body onload="checkLayout('.flexbox')">
|
40 | 38 | <div id=log></div>
|
41 | 39 |
|
| 40 | +<div>CompatMode: <script>document.write(document.compatMode)</script></div> |
| 41 | + |
42 | 42 | <div class="container row">
|
43 | 43 | <div class="flexbox">
|
44 | 44 | <div style='width: 10px; min-width: 50%;' data-expected-width=25></div>
|
|
48 | 48 | </div>
|
49 | 49 | </div>
|
50 | 50 |
|
51 |
| -<div class="container row" style='width: 100px'> |
52 |
| - <div class="flexbox fixed"> |
53 |
| - <div style='width: 10px; min-width: 50%;' data-expected-width=25></div> |
54 |
| - <div style='width: 50%;' data-expected-width=25></div> |
55 |
| - <div style='width: 10px; max-width: 50%;' data-expected-width=10></div> |
56 |
| - <div style='min-width: 10px; width: 100px; max-width: 50%;' data-expected-width=25></div> |
57 |
| - </div> |
58 |
| -</div> |
59 |
| - |
60 |
| -<div class="container column" style='margin-bottom: 100px'> |
61 |
| - <div class="flexbox" style="height: auto"> |
62 |
| - <div style='height: 10px; min-height: 50%;' data-expected-height=10></div> |
63 |
| - <div style='height: 50%;' data-expected-height=0></div> |
64 |
| - <div style='height: 10px; max-height: 50%;' data-expected-height=10></div> |
65 |
| - <div style='min-height: 10px; height: 100px; max-height: 50%;' data-expected-height=100></div> |
66 |
| - </div> |
67 |
| -</div> |
68 |
| - |
69 |
| -<div class="container column"> |
70 |
| - <div class="flexbox fixed"> |
| 51 | +<div class="container column" style='margin-bottom: 50px'> |
| 52 | + <div class="flexbox"> |
71 | 53 | <div style='height: 10px; min-height: 50%;' data-expected-height=25></div>
|
72 | 54 | <div style='height: 50%;' data-expected-height=25></div>
|
73 | 55 | <div style='height: 10px; max-height: 50%;' data-expected-height=10></div>
|
|
83 | 65 |
|
84 | 66 | <div class="container column">
|
85 | 67 | <div class="flexbox">
|
86 |
| - <div style="flex: 0 0 50%" data-expected-height=0></div> |
87 |
| - </div> |
88 |
| -</div> |
89 |
| - |
90 |
| -<div class="container row"> |
91 |
| - <div class="flexbox fixed"> |
92 |
| - <div style="flex: 0 0 50%" data-expected-width=25></div> |
93 |
| - </div> |
94 |
| -</div> |
95 |
| - |
96 |
| -<div class="container column"> |
97 |
| - <div class="flexbox fixed"> |
98 | 68 | <div style="flex: 0 0 50%" data-expected-height=25></div>
|
99 | 69 | </div>
|
100 | 70 | </div>
|
|
0 commit comments