Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <link href="resources/flexbox.css" rel="stylesheet"> | |
| 4 | |
| 5 <script src="../../resources/testharness.js"></script> | |
| 6 <script src="../../resources/testharnessreport.js"></script> | |
| 7 <script src="../../resources/check-layout-th.js"></script> | |
| 8 | |
| 9 <style> | |
| 10 body, html { | |
| 11 height: 100%; | |
| 12 margin: 0; | |
| 13 } | |
| 14 | |
| 15 .flexbox.column { | |
| 16 min-height: min-content; | |
| 17 background: green; | |
| 18 height: 100%; | |
| 19 } | |
| 20 | |
| 21 #content { | |
| 22 height: 1000px; | |
| 23 max-height: 100%; | |
| 24 } | |
| 25 </style> | |
| 26 | |
| 27 <script> | |
| 28 onload = function() { | |
|
eae
2016/05/12 19:24:55
No need to use onload, place the script tag after
cbiesinger
2016/05/12 19:49:45
Done.
| |
| 29 document.body.offsetHeight; | |
| 30 document.documentElement.style.height = '100px'; | |
| 31 | |
| 32 checkLayout('.flexbox'); | |
| 33 }; | |
| 34 </script> | |
| 35 | |
| 36 <div id="log"></div> | |
| 37 | |
| 38 <div class="flexbox column justify-content-center align-items-center" data-expec ted-height="100"> | |
| 39 <div id="content" data-expected-height="100"></div> | |
| 40 </div> | |
| OLD | NEW |