| <!DOCTYPE html> |
| <style> |
| .red { |
| position: absolute; |
| left:100px; |
| top:0; |
| width: 100px; |
| height: 100px; |
| background-color: red; |
| } |
| .block { |
| position: absolute; |
| left:0; |
| top:0; |
| width: 100px; |
| height: 100px; |
| background-color: green; |
| } |
| .relative-inline { |
| position:relative; |
| display: inline; |
| } |
| </style> |
| <p>crbug.com/517369: There should be no red. </p> |
| <div style="position: relative;"> |
| <div class="red"></div> |
| <span class="relative-inline"> |
| <div> |
| <span class="relative-inline"> |
| <div class="block" id="inner"></div> |
| </span> |
| </div> |
| </span> |
| </div> |
| <script> |
| document.body.offsetLeft; |
| document.getElementById('inner').style.left = '100px'; |
| </script> |
| |