OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/flexbox.css" rel="stylesheet"> | 3 <link href="resources/flexbox.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 .flexbox { | 5 .flexbox { |
6 width: 500px; | 6 width: 500px; |
7 height:100px; | 7 height:100px; |
8 background: green; | 8 background: green; |
9 } | 9 } |
10 | 10 |
11 .flexbox > div { | 11 .flexbox > div { |
12 flex: 1 0% 1; | |
13 width: 50px; | 12 width: 50px; |
14 background: yellow; | 13 background: yellow; |
15 } | 14 } |
16 </style> | 15 </style> |
17 <script src="../../resources/check-layout.js"></script> | 16 <script src="../../resources/check-layout.js"></script> |
18 <body onload="checkLayout('.flexbox')"> | 17 <body onload="checkLayout('.flexbox')"> |
19 <div class="flexbox"> | 18 <div class="flexbox"> |
20 <div data-expected-width="50"></div> | 19 <div data-expected-width="50" style="flex: 1 0% 1"></div> |
21 <div data-expected-width="50"></div> | 20 <div data-expected-width="50" style="flex: 1 0% 1"></div> |
22 <div data-expected-width="50"></div> | 21 <div data-expected-width="50" style="flex: 1 0% 1"></div> |
| 22 </div> |
| 23 |
| 24 <div class="flexbox"> |
| 25 <div data-expected-width="50" style="flex: 1 auto 1"></div> |
| 26 <div data-expected-width="50" style="flex: 1 auto 1"></div> |
| 27 <div data-expected-width="50" style="flex: 1 auto 1"></div> |
23 </div> | 28 </div> |
24 </body> | 29 </body> |
25 </html> | 30 </html> |
OLD | NEW |