| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <style> #tableId, #trId, #tdId {display: inline;}</style> | |
| 4 <body> | |
| 5 <h3>Test for chromium bug : <a href="https://code.google.com/p/chromium/issues/d
etail?id=53693">53693</a>. Tables with display:inline rendered in wrong position
.</h3> | |
| 6 <h4>Table was created as Inline renderer and another table renderer is created f
or table's content. So It was displayed as block element and all it's style prop
erties also associated with inline renderer and was not applied to table.</h4> | |
| 7 | |
| 8 case 1: The two blocks below should present in same line, first block with green
background color and second block with blue background color. | |
| 9 <br/><br/> | |
| 10 | |
| 11 <table style="display:inline; background: green; width: 100px;"> | |
| 12 <tr><td>inline table 1</td></tr> | |
| 13 </table> | |
| 14 | |
| 15 <table style="display:inline; background: blue; width: 100px;"> | |
| 16 <tr><td>inline table 2</td></tr> | |
| 17 </table> | |
| 18 | |
| 19 <br/><br/> | |
| 20 | |
| 21 case 2: 'Hello' and 'World' should present in same line. | |
| 22 | |
| 23 <br/><br/> | |
| 24 | |
| 25 <div>Hello <table style="display:inline;"><tr><td>World</td></tr></table> </div> | |
| 26 | |
| 27 <br/> | |
| 28 | |
| 29 <div>Hello <table id="tableId"><tr id="trId"><td id="tdId">World</td></tr></tabl
e> </div> | |
| 30 | |
| 31 <br/> | |
| 32 | |
| 33 case 3: 'before', 'inside table' and 'after' should present in same line. | |
| 34 | |
| 35 <br/><br/> | |
| 36 | |
| 37 <table> | |
| 38 <tbody id="y"> | |
| 39 <tr><td>inside table</td></tr> | |
| 40 </tbody> | |
| 41 </table> | |
| 42 | |
| 43 <span> | |
| 44 before | |
| 45 <div id="x"></div> | |
| 46 after | |
| 47 <span> | |
| 48 | |
| 49 <script> | |
| 50 var x = document.getElementById('x'); | |
| 51 x.parentNode.replaceChild(document.getElementById('y'), x); | |
| 52 </script> | |
| 53 | |
| 54 <br/><br/> | |
| 55 | |
| 56 <span> | |
| 57 before | |
| 58 <tr><td>inside table</td></tr> | |
| 59 after | |
| 60 <span> | |
| 61 | |
| 62 </body> | |
| 63 </html> | |
| OLD | NEW |