OLD | NEW |
| 1 <!-- The blue and green text boxes should not overlap --> |
1 <html> | 2 <html> |
2 <body style="font: 1em/1 Ahem, sans-serif;"> | 3 <body style="font: 1em/1 Ahem, sans-serif;"> |
3 <style> | 4 <style> |
4 #test | 5 #test |
5 { | 6 { |
6 color: blue; | 7 color: blue; |
7 display: table; | 8 display: table; |
8 } | 9 } |
9 </style> | 10 </style> |
10 <div id="test"> | 11 <div id="test"> |
11 ABCD | 12 ABCD |
12 </div> | 13 </div> |
13 <div style="font-size: 800%; color: green"> | 14 <div style="font-size: 800%; color: green"> |
14 EFGH | 15 EFGH |
15 </div> | 16 </div> |
16 <script> | 17 <script> |
17 document.body.offsetTop; | 18 document.body.offsetTop; |
18 var test = document.getElementById("test"); | 19 var test = document.getElementById("test"); |
19 test.style.fontSize = "800%"; | 20 test.style.fontSize = "800%"; |
20 </script> | 21 </script> |
21 </body> | 22 </body> |
22 </html> | 23 </html> |
OLD | NEW |