| OLD | NEW |
| 1 <!DOCTYPE html5> | 1 <!DOCTYPE html5> |
| 2 <html> | 2 <html> |
| 3 <style> | 3 <style> |
| 4 .outside { | 4 .outside { |
| 5 margin-top: 20px; | 5 margin-top: 20px; |
| 6 overflow: hidden; | 6 overflow: hidden; |
| 7 background: #ddd; | 7 background: #ddd; |
| 8 } | 8 } |
| 9 | 9 |
| 10 .inside { | 10 .inside { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 <div id="second" class="inside"></div> | 25 <div id="second" class="inside"></div> |
| 26 </div> | 26 </div> |
| 27 <div id="console"></div> | 27 <div id="console"></div> |
| 28 <script> | 28 <script> |
| 29 if (document.getElementById("first").offsetTop == document.getElementById("s
econd").offsetTop) | 29 if (document.getElementById("first").offsetTop == document.getElementById("s
econd").offsetTop) |
| 30 document.getElementById("console").innerText = "PASSED"; | 30 document.getElementById("console").innerText = "PASSED"; |
| 31 else | 31 else |
| 32 document.getElementById("console").innerText = "FAILED"; | 32 document.getElementById("console").innerText = "FAILED"; |
| 33 </script> | 33 </script> |
| 34 </html> | 34 </html> |
| OLD | NEW |