OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 |
| 3 <link href="resources/flexbox.css" rel="stylesheet"> |
| 4 |
| 5 <style> |
| 6 body { |
| 7 width: 800px; |
| 8 height: 600px; |
| 9 } |
| 10 |
| 11 .green { |
| 12 background: green; |
| 13 } |
| 14 |
| 15 .blue { |
| 16 background: blue; |
| 17 } |
| 18 |
| 19 .inner { |
| 20 height: 200px; |
| 21 } |
| 22 |
| 23 .small { |
| 24 height: 100px; |
| 25 } |
| 26 </style> |
| 27 |
| 28 <script src="../../resources/testharness.js"></script> |
| 29 <script src="../../resources/testharnessreport.js"></script> |
| 30 <script src="../../resources/check-layout-th.js"></script> |
| 31 |
| 32 <script> |
| 33 onload = function() { |
| 34 document.body.offsetWidth; |
| 35 document.getElementById("target").classList.add("small"); |
| 36 |
| 37 checkLayout("body"); |
| 38 }; |
| 39 </script> |
| 40 |
| 41 <body class="flexbox column"> |
| 42 |
| 43 <div class="flexbox column flex-one-one-auto"> |
| 44 <div class="flex-one-one-auto green" data-expected-height="250" id="target"> |
| 45 <div class="inner"></div> |
| 46 </div> |
| 47 <div class="flex-one-one-auto blue" data-expected-height="350"> |
| 48 <div class="inner"></div> |
| 49 </div> |
| 50 </div> |
| 51 |
| 52 <div id=log></div> |
OLD | NEW |