- From: Mike Bremford <mike-css@bfo.co.uk>
- Date: Tue, 28 Mar 2006 10:51:16 +0100
- To: www-style@w3.org
Yes, it's using the strict layout rules. Here's the HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> table { border:5px solid green; height:200px; font-size:20px; margin- bottom:10px } td { border:5px solid red } </style> </head> <body> <table id="table1"> <tr style="height:50px"><td>Cell1</td></tr> <tr style="height:50px"><td>Cell2</td></tr> </table> <table id="table2"> <tr style="height:70%"><td>Cell1</td></tr> <tr style="height:30%"><td>Cell2</td></tr> </table> </body> </html> * With "table1", the rows are expanded to fill the table even though their height and that of the table are lengths - http://www.w3.org/TR/ CSS21/tables.html#height-layout * With "table2", the percentage heights on the rows are used, even though the specification says they should be ignored - same link as above, second paragraph. This was tested in Safari 2.0, Firefox 1.5 and Opera 8.5. Cheers... Mike On 28 Mar 2006, at 05:28, Bernd wrote: > Mike Bremford wrote: > >> Moreover, the phrase "Percentage heights on table cells, table >> rows, and table row groups compute to 'auto'" from the next >> paragraph also doesn't match the behaviour, at least not for a >> table-row. They're used as an indication of how to distribute the >> difference between a tables specified height and the minimum >> height required to contain all the rows. >> > You are sure that you look at documents with strict doctypes? > Otherwise you will trigger the quirks mode rendering (http:// > developer.mozilla.org/en/docs/Mozilla's_Quirks_Mode) which gives > the people what they "want" in a not standard compliant way, but it > pretty often works cross browser. > > > Bernd
Received on Tuesday, 28 March 2006 09:51:26 UTC