Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #square { | |
| 4 width: 50px; | |
| 5 height: 20px; | |
| 6 background-color: green; | |
| 7 display: inline-block; | |
| 8 } | |
| 9 #inline-container { | |
| 10 display: inline; | |
| 11 position: relative; | |
| 12 } | |
| 13 #abspos { | |
| 14 position: absolute; | |
| 15 background-color: green; | |
| 16 } | |
| 17 </style> | |
| 18 <p> crbug.com/548017: A positioned element inside a relatively positioned inline should use the width of the inline, rather than the anonymous block created to accomodate block-flow parents, when determining its own width. There should be a green square below</p> | |
| 19 <div id="inline-container"> | |
| 20 <div> | |
| 21 <div id="abspos" data-expected-width=50><div id="square"></div><div id=" square"></div></div> | |
| 22 </div> | |
| 23 </div> | |
| 24 <script src="../../../resources/check-layout.js"></script> | |
| 25 <script type="text/javascript"> | |
| 26 window.checkLayout("#abspos"); | |
| 27 </script> | |
| OLD | NEW |