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 <!-- You should only see a green 'A' box. --> | 4 <!-- You should only see a green 'A' box. --> |
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">B</div> | 12 <div id="test">B</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 test.appendChild(document.createElement('div')); // This should cause 'A' to sto
p being a run-in and detach from 'B'. | 18 test.appendChild(document.createElement('div')); // This should cause 'A' to sto
p being a run-in and detach from 'B'. |
19 document.body.offsetTop; | 19 document.body.offsetTop; |
20 test.style.display = 'none'; // This helps to visualize that no run-in is part o
f 'B'. | 20 test.style.display = 'none'; // This helps to visualize that no run-in is part o
f 'B'. |
21 </script> | 21 </script> |
22 </html> | 22 </html> |
OLD | NEW |