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 see a green 'A' box, followed by orange 'B' box in the same line
. --> | 4 <!-- You should see a green 'A' box, followed by orange 'B' box in the same line
. --> |
5 <style> | 5 <style> |
6 .runin { display: run-in; } | 6 .runin { display: run-in; } |
7 </style> | 7 </style> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <div> | 10 <div> |
11 <div class="runin" style="color: green">A</div> | 11 <div class="runin" style="color: green">A</div> |
12 <div id="test2" class="runin" style="color: orange">B</div> | 12 <div id="test2" class="runin" style="color: orange">B</div> |
13 <div id="test">C</div> | 13 <div id="test">C</div> |
14 </div> | 14 </div> |
15 </body> | 15 </body> |
16 <script> | 16 <script> |
17 document.body.offsetTop; | 17 document.body.offsetTop; |
18 test = document.getElementById('test'); | 18 test = document.getElementById('test'); |
19 test.appendChild(document.createElement('div')); // This should cause 'B' to sto
p being a run-in, detach from 'C' and let 'A' run-in into 'B'. | 19 test.appendChild(document.createElement('div')); // This should cause 'B' to sto
p being a run-in, detach from 'C' and let 'A' run-in into 'B'. |
20 document.body.offsetTop; | 20 document.body.offsetTop; |
21 test.style.display = 'none'; // This helps to visualize that no run-in is part o
f 'C'. | 21 test.style.display = 'none'; // This helps to visualize that no run-in is part o
f 'C'. |
22 test2.style.display = 'block'; // This should cause 'A' to run-in into 'B'. | 22 test2.style.display = 'block'; // This should cause 'A' to run-in into 'B'. |
23 </script> | 23 </script> |
24 </html> | 24 </html> |
OLD | NEW |