| OLD | NEW |
| 1 <style> | 1 <style> |
| 2 .parent { | 2 .parent { |
| 3 position: relative; | 3 position: relative; |
| 4 background-color: black; | 4 background-color: black; |
| 5 width: 100px; | 5 width: 100px; |
| 6 height: 100px; | 6 height: 100px; |
| 7 } | 7 } |
| 8 .child { | 8 .child { |
| 9 position: relative; | 9 position: relative; |
| 10 background-color: rgba(0,255,0,0.8); | 10 background-color: rgba(0,255,0,0.8); |
| 11 width: 100px; | 11 width: 100px; |
| 12 height: 100px; | 12 height: 100px; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 <div class=parent> | 15 <div class=parent> |
| 16 <div class=child> | 16 <div class=child> |
| 17 </div> | 17 </div> |
| 18 </div> | 18 </div> |
| 19 <div class=parent> | 19 <div class=parent> |
| 20 <div> | 20 <div> |
| 21 <div class=child> | 21 <div class=child> |
| 22 </div> | 22 </div> |
| 23 </div> | 23 </div> |
| 24 </div> | 24 </div> |
| 25 <script> | 25 <script> |
| 26 document.body.offsetTop; | 26 document.body.offsetTop; |
| 27 if (window.testRunner) | |
| 28 testRunner.display(); | |
| 29 var children = document.getElementsByClassName("child"); | 27 var children = document.getElementsByClassName("child"); |
| 30 children[0].style.backgroundColor = "rgba(0,255,0,0.5)"; | 28 children[0].style.backgroundColor = "rgba(0,255,0,0.5)"; |
| 31 children[1].style.backgroundColor = "rgba(0,255,0,0.5)"; | 29 children[1].style.backgroundColor = "rgba(0,255,0,0.5)"; |
| 32 </script> | 30 </script> |
| OLD | NEW |