OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <body style="height: 1000px; width: 1000px"> |
| 3 <div id="cb"> |
| 4 <div id="child" style="height: 100%"> |
| 5 <iframe style="width: 100%; height: 100%" data-expected-height=6
04></iframe> |
| 6 <div>crbug.com/414532: Layout a percentage height replaced eleme
nt when it has anonymous wrapper and an ancestor changes height.</div> |
| 7 </div> |
| 8 </div> |
| 9 </div> |
| 10 </body> |
| 11 <script src="../../resources/check-layout.js"></script> |
| 12 <script> |
| 13 function runTest() { |
| 14 document.body.offsetTop; |
| 15 var cb = document.getElementById('cb'); |
| 16 cb.style.height = "600px"; |
| 17 document.body.offsetTop; |
| 18 checkLayout('iframe'); |
| 19 } |
| 20 |
| 21 window.onload = runTest; |
| 22 </script> |
OLD | NEW |