OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
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.
--> | |
4 <!-- 'A' should be on its own line, followed by run-in 'B' and 'C' in the next l
ine --> | |
5 <style> | |
6 .runin { display: run-in; } | |
7 </style> | |
8 </head> | |
9 <body> | |
10 <div> | |
11 <div id="div3" style="color: purple">C</div> | |
12 </div> | |
13 </body> | |
14 <script> | |
15 document.body.offsetTop; | |
16 div1 = document.createElement('div'); | |
17 div1.setAttribute('class', 'runin'); | |
18 div1.style.color = 'green'; | |
19 div1.appendChild(document.createTextNode('A')); | |
20 div2 = document.createElement('div'); | |
21 div2.setAttribute('class', 'runin'); | |
22 div2.style.color = 'orange'; | |
23 div2.appendChild(document.createTextNode('B')); | |
24 div3 = document.getElementById('div3'); | |
25 document.body.offsetTop; | |
26 div3.parentNode.insertBefore(div2, div3); | |
27 document.body.offsetTop; | |
28 div3.parentNode.insertBefore(div1, div2); | |
29 </script> | |
30 </html> | |
OLD | NEW |