Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <style> | |
| 4 #flex { | |
| 5 display: flex; | |
| 6 position: relative; | |
| 7 background: red; | |
| 8 width: 500px; | |
| 9 height: 200px; | |
| 10 } | |
| 11 | |
| 12 #item { | |
| 13 background: green; | |
| 14 left: 0; | |
| 15 right: 0; | |
| 16 top: 0; | |
| 17 bottom: 0; | |
| 18 } | |
| 19 </style> | |
| 20 | |
| 21 <script src="../../resources/testharness.js"></script> | |
| 22 <script src="../../resources/testharnessreport.js"></script> | |
| 23 <script src="../../resources/check-layout-th.js"></script> | |
| 24 | |
| 25 <script> | |
| 26 function update() { | |
| 27 var item = document.getElementById("item"); | |
| 28 item.offsetHeight; | |
| 29 item.style.position = "absolute"; | |
| 30 item.offsetHeight; | |
| 31 checkLayout("#flex"); | |
| 32 } | |
| 33 </script> | |
| 34 | |
| 35 <body onload="update();"> | |
| 36 | |
| 37 <div id="flex"> | |
| 38 <div id="item" data-expected-width="500"></div> | |
| 39 </div> | |
| OLD | NEW |