Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
michael@0 | 2 | <head><title>bug 76311 table empty-cells:hide</title> |
michael@0 | 3 | <style> |
michael@0 | 4 | table { |
michael@0 | 5 | empty-cells:hide; |
michael@0 | 6 | background-color:red; |
michael@0 | 7 | padding:0; |
michael@0 | 8 | border-spacing:0; |
michael@0 | 9 | } |
michael@0 | 10 | table.empty { |
michael@0 | 11 | background-color:green; |
michael@0 | 12 | } |
michael@0 | 13 | td { |
michael@0 | 14 | background-color:green; |
michael@0 | 15 | padding:0; |
michael@0 | 16 | color:green; |
michael@0 | 17 | } |
michael@0 | 18 | td.empty { |
michael@0 | 19 | background-color:red; |
michael@0 | 20 | } |
michael@0 | 21 | </style> |
michael@0 | 22 | </head> |
michael@0 | 23 | |
michael@0 | 24 | <body> |
michael@0 | 25 | <!-- empty elements should be marked as empty--> |
michael@0 | 26 | <table class="empty"> |
michael@0 | 27 | <tr><td class="empty"></td><td>X</td></tr> |
michael@0 | 28 | <tr><td>X</td><td class="empty"></td></tr> |
michael@0 | 29 | </table> |
michael@0 | 30 | <!-- collapsed whitespace: space + CR should be marked as empty--> |
michael@0 | 31 | <table class="empty"> |
michael@0 | 32 | <tr><td class="empty"> </td><td>X</td></tr> |
michael@0 | 33 | <tr><td>X</td><td class="empty"> |
michael@0 | 34 | |
michael@0 | 35 | |
michael@0 | 36 | </td></tr> |
michael@0 | 37 | </table> |
michael@0 | 38 | <!-- not collapsed whitespace: space + tab should not be marked as empty--> |
michael@0 | 39 | <table style="white-space: pre"> |
michael@0 | 40 | <tr><td> </td><td>X</td></tr> |
michael@0 | 41 | <tr><td>X</td><td> </td></tr> |
michael@0 | 42 | </table> |
michael@0 | 43 | |
michael@0 | 44 | |
michael@0 | 45 | <!-- div with whitespace, empty span - should not be marked as empty --> |
michael@0 | 46 | <table> |
michael@0 | 47 | <tr><td><div> </div></td><td>X</td></tr> |
michael@0 | 48 | <tr><td>X</td><td><span></span></td></tr> |
michael@0 | 49 | </table> |
michael@0 | 50 | |
michael@0 | 51 | <!--float empty or not should not be marked as empty --> |
michael@0 | 52 | <table> |
michael@0 | 53 | <tr><td><div style="float:left;">X</div></td><td>X</td></tr> |
michael@0 | 54 | <tr><td>X</td><td><div style="float:left;"></div></td></tr> |
michael@0 | 55 | </table> |
michael@0 | 56 | |
michael@0 | 57 | <!-- position:fixed and position:absolute - both should be marked as empty --> |
michael@0 | 58 | <table class="empty"> |
michael@0 | 59 | <tr><td class="empty"><div style="position:fixed; left: 30px;">X</div></td><td>X</td></tr> |
michael@0 | 60 | <tr><td>X</td><td class="empty"><div style="position:absolute; left: 30px;">X</div></td></tr> |
michael@0 | 61 | </table> |
michael@0 | 62 | <!-- font size 0 makes textframes with no extent --> |
michael@0 | 63 | <table> |
michael@0 | 64 | <tr><td style="font-size:0">xxxx</td><td>X</td></tr> |
michael@0 | 65 | <tr><td>X</td><td><img src="" style="width:0; height:0"></td></tr> |
michael@0 | 66 | </table> |
michael@0 | 67 | |
michael@0 | 68 | </body> |
michael@0 | 69 | </html> |