OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <style> | |
3 .red { | |
4 position: absolute; | |
5 left:0px; | |
6 top:0; | |
7 width: 100px; | |
8 height: 100px; | |
9 background-color: red; | |
10 } | |
11 .abspos { | |
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 .relative { | |
24 position:relative; | |
25 left: 100px; | |
26 } | |
27 </style> | |
28 <p>crbug.com/517369: There should be no red. </p> | |
29 <div class="relative"> | |
30 <div class="red"></div> | |
31 <span class="relative-inline"> | |
32 <div style="margin-left: -100px;"> | |
33 <span class="relative-inline"> | |
34 <div class="abspos" id="inner"></div> | |
35 </span> | |
36 </div> | |
37 </span> | |
38 </div> | |
39 <script> | |
40 document.body.offsetLeft; | |
41 document.getElementById('inner').style.left = '100px'; | |
42 </script> | |
43 | |
OLD | NEW |