OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <link href="resources/flexbox.css" rel="stylesheet"> |
| 4 <style> |
| 5 .flexbox { |
| 6 border:5px solid green; |
| 7 position:relative; |
| 8 width:50px; |
| 9 } |
| 10 |
| 11 .inline-flexbox { |
| 12 border:5px solid green; |
| 13 position:relative; |
| 14 height:50px; |
| 15 } |
| 16 |
| 17 .overflow { |
| 18 border:1px solid red; |
| 19 overflow:auto; |
| 20 } |
| 21 </style> |
| 22 <script src="../../resources/check-layout.js"></script> |
| 23 <body onload="checkLayout('.flexbox'); checkLayout('.inline-flexbox')"> |
| 24 <div class="flexbox" data-expected-height="47"> |
| 25 <div class="overflow"><div style="width:100px; height:20px"></div></div> |
| 26 </div> |
| 27 |
| 28 <div class="flexbox row-reverse" data-expected-height="47"> |
| 29 <div class="overflow"><div style="width:100px; height:20px"></div></div> |
| 30 </div> |
| 31 |
| 32 <div class="inline-flexbox column" data-expected-width="32"> |
| 33 <div class="overflow"><div style="width:20px; height:100px"></div></div> |
| 34 </div> |
| 35 |
| 36 <div class="inline-flexbox column-reverse" data-expected-width="32"> |
| 37 <div class="overflow"><div style="width:20px; height:100px"></div></div> |
| 38 </div> |
| 39 </body> |
| 40 </html> |
OLD | NEW |