| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 |
| 3 <style> |
| 4 html { line-height: 1; font-size: 18px; } |
| 5 #relpos { position: relative; top: 1px; } |
| 6 .flex { flex: 1; } |
| 7 .flex { min-height: 0; } |
| 8 .layout, .layout-column, .layout-row { display: flex; } |
| 9 .layout-column { flex-direction: column; } |
| 10 </style> |
| 11 |
| 12 <script src="../../resources/testharness.js"></script> |
| 13 <script src="../../resources/testharnessreport.js"></script> |
| 14 <script src="../../resources/check-layout-th.js"></script> |
| 15 |
| 16 <script> |
| 17 function update() { |
| 18 document.body.offsetHeight; |
| 19 document.getElementById("relpos").innerText = " "; |
| 20 checkLayout("#container"); |
| 21 } |
| 22 </script> |
| 23 |
| 24 <body onload="update();"> |
| 25 <p>XXX and YYY should be on separate lines and not overlap, i.e. the height of |
| 26 .flex should not be 0.</p> |
| 27 <div class="layout-column" id="container"> |
| 28 <div class="layout-row"> |
| 29 <div class="layout-column"> |
| 30 <div class="flex" data-expected-height="18">XXX<span id="relpos"></span>
</div> |
| 31 <div>YYY</div> |
| 32 </div> |
| 33 </div> |
| 34 </div> |
| OLD | NEW |