| <!DOCTYPE html> | |
| <html> | |
| <style> | |
| .flexbox { | |
| width: 600px; | |
| display: -webkit-flex; | |
| background-color: #aaa; | |
| position: relative; | |
| -webkit-flex-flow: column; | |
| } | |
| .flexbox :nth-child(1) { | |
| background-color: blue; | |
| } | |
| </style> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| </script> | |
| <script src="../../resources/check-layout.js"></script> | |
| <body onload="checkLayout('.flexbox')"> | |
| <div class="flexbox" data-expected-height=0> | |
| <div class="flexitem" data-expected-height=0 style="-webkit-flex: 100px"></div> | |
| </div> | |
| <div class="flexbox" data-expected-height=0> | |
| <div class="flexitem2" data-expected-height=0 style="-webkit-flex: 100px"></div> | |
| </div> | |
| <script> | |
| document.querySelector('.flexitem').offsetHeight; | |
| document.querySelector('.flexitem2').offsetHeight; | |
| document.querySelector('.flexitem').style.webkitFlex = "1"; | |
| document.querySelector('.flexitem2').style.webkitFlex = "1 auto"; | |
| </script> | |
| </body> | |
| </html> |