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:show; |
michael@0 | 6 | background-color:red; |
michael@0 | 7 | padding:0; |
michael@0 | 8 | border-spacing:0; |
michael@0 | 9 | } |
michael@0 | 10 | |
michael@0 | 11 | td { |
michael@0 | 12 | background-color:green; |
michael@0 | 13 | padding:0; |
michael@0 | 14 | color:green; |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | </style> |
michael@0 | 18 | </head> |
michael@0 | 19 | |
michael@0 | 20 | <body> |
michael@0 | 21 | <!-- empty elements should be marked as empty--> |
michael@0 | 22 | <table class="empty"> |
michael@0 | 23 | <tr><td class="empty"></td><td>X</td></tr> |
michael@0 | 24 | <tr><td>X</td><td class="empty"></td></tr> |
michael@0 | 25 | </table> |
michael@0 | 26 | <!-- collapsed whitespace: space + CR should be marked as empty--> |
michael@0 | 27 | <table class="empty"> |
michael@0 | 28 | <tr><td class="empty"> </td><td>X</td></tr> |
michael@0 | 29 | <tr><td>X</td><td class="empty"> |
michael@0 | 30 | |
michael@0 | 31 | |
michael@0 | 32 | </td></tr> |
michael@0 | 33 | </table> |
michael@0 | 34 | <!-- not collapsed whitespace: space + tab should not be marked as empty--> |
michael@0 | 35 | <table style="white-space: pre"> |
michael@0 | 36 | <tr><td> </td><td>X</td></tr> |
michael@0 | 37 | <tr><td>X</td><td> </td></tr> |
michael@0 | 38 | </table> |
michael@0 | 39 | |
michael@0 | 40 | |
michael@0 | 41 | <!-- div with whitespace, empty span - should not be marked as empty --> |
michael@0 | 42 | <table> |
michael@0 | 43 | <tr><td><div> </div></td><td>X</td></tr> |
michael@0 | 44 | <tr><td>X</td><td><span></span></td></tr> |
michael@0 | 45 | </table> |
michael@0 | 46 | |
michael@0 | 47 | <!--float empty or not should not be marked as empty --> |
michael@0 | 48 | <table> |
michael@0 | 49 | <tr><td><div style="float:left;">X</div></td><td>X</td></tr> |
michael@0 | 50 | <tr><td>X</td><td><div style="float:left;"></div></td></tr> |
michael@0 | 51 | </table> |
michael@0 | 52 | |
michael@0 | 53 | <!-- position:fixed and position:absolute - both should be marked as empty --> |
michael@0 | 54 | <table class="empty"> |
michael@0 | 55 | <tr><td class="empty"><div style="position:fixed; left: 30px;">X</div></td><td>X</td></tr> |
michael@0 | 56 | <tr><td>X</td><td class="empty"><div style="position:absolute; left: 30px;">X</div></td></tr> |
michael@0 | 57 | </table> |
michael@0 | 58 | <!-- font size 0 makes textframes with no extent --> |
michael@0 | 59 | <table> |
michael@0 | 60 | <tr><td style="font-size:0">xxxx</td><td>X</td></tr> |
michael@0 | 61 | <tr><td>X</td><td><img src="" style="width:0; height:0"></td></tr> |
michael@0 | 62 | </table> |
michael@0 | 63 | </body> |
michael@0 | 64 | </html> |