Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #container { | |
| 4 position: relative; | |
| 5 width: 200px; | |
| 6 height: 200px; | |
| 7 background: red; | |
| 8 } | |
| 9 #parent { | |
| 10 position: absolute; | |
| 11 top: 0; | |
| 12 bottom: 0; | |
| 13 left: 0; | |
| 14 right: 0; | |
| 15 border: solid green; | |
| 16 border-width: 50px 50px; | |
| 17 } | |
| 18 #parent div { | |
| 19 position: absolute; | |
| 20 left: 0px; | |
| 21 top: 0px; | |
| 22 right: 0px; | |
| 23 bottom: 0px; | |
| 24 background-color:green; | |
| 25 } | |
| 26 </style> | |
| 27 <script src="../../../resources/check-layout.js"></script> | |
| 28 <p>crbug.com/581612: Changing block-direction border width on a positioned eleme nt with auto height should flex the height of its descendants. There should be n o red.</p> | |
| 29 <div id="console"></div> | |
| 30 <div id="container"> | |
| 31 <div id="parent"> | |
| 32 <div id="child" data-expected-height=140></div> | |
|
mstensho (USE GERRIT)
2016/02/17 10:19:42
There are tabs here.
| |
| 33 </div> | |
| 34 </div> | |
| 35 <script> | |
| 36 document.body.offsetTop; | |
| 37 document.getElementById('parent').style.borderTopWidth = '10px'; | |
| 38 checkLayout('#child', document.getElementById('console')); | |
| 39 </script> | |
| OLD | NEW |