OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;"> | 2 <html style="font-family: ahem; font-size: 50px; -webkit-font-smoothing: none;"> |
3 <!-- WebKit bug 86387 - Move run-in handling to addChild, instead of in layout.
--> | 3 <!-- WebKit bug 86387 - Move run-in handling to addChild, instead of in layout.
--> |
4 <!-- 'A' green box, followed by 'B' orange box, followed by 'C' purple box in th
e same line. --> | 4 <!-- 'A' green box, followed by 'B' orange box, followed by 'C' purple box in th
e same line. --> |
5 <style> | 5 <style> |
6 .runin { display: run-in; color: green; } | 6 .runin { display: run-in; color: green; } |
7 </style> | 7 </style> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <div> | 10 <div> |
11 <div class="runin">A</div> | 11 <div class="runin">A</div> |
12 <div id="test" style="color: purple">C</div> | 12 <div id="test" style="color: purple">C</div> |
13 </div> | 13 </div> |
14 </body> | 14 </body> |
15 <script> | 15 <script> |
16 document.body.offsetTop; | 16 document.body.offsetTop; |
17 test = document.getElementById('test'); | 17 test = document.getElementById('test'); |
18 span = document.createElement('span'); | 18 span = document.createElement('span'); |
19 span.appendChild(document.createTextNode('B')); | 19 span.appendChild(document.createTextNode('B')); |
20 span.style.color = 'orange'; | 20 span.style.color = 'orange'; |
21 test.insertBefore(span, test.firstChild); | 21 test.insertBefore(span, test.firstChild); |
22 </script> | 22 </script> |
23 </html> | 23 </html> |
OLD | NEW |