Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 .red { | |
| 4 position: absolute; | |
| 5 left:100px; | |
| 6 top:0; | |
| 7 width: 100px; | |
| 8 height: 100px; | |
| 9 background-color: red; | |
| 10 } | |
| 11 .block { | |
| 12 position: absolute; | |
| 13 left:0; | |
| 14 top:0; | |
| 15 width: 100px; | |
| 16 height: 100px; | |
| 17 background-color: green; | |
| 18 } | |
| 19 .relative-inline { | |
| 20 position:relative; | |
| 21 display: inline; | |
| 22 } | |
| 23 </style> | |
| 24 <p>crbug.com/517369: There should be no red. </p> | |
| 25 <div style="position: relative;"> | |
| 26 <div class="red"></div> | |
| 27 <span class="relative-inline"> | |
| 28 <div> | |
| 29 <span class="relative-inline"> | |
| 30 <div class="block" id="inner"></div> | |
| 31 </span> | |
| 32 </div> | |
| 33 </span> | |
| 34 </div> | |
| 35 <script> | |
| 36 document.body.offsetLeft; | |
| 37 document.getElementById('inner').style.left = '100px'; | |
| 38 </script> | |
| 39 | |
| OLD | NEW |