On 9/5/2008 10:41 PM, Bernd wrote: > I looked at the following code > > <table border style="height:300px"> > <tr> > <td> > <table border style="height:90%"> > <tr><td>foo</td></tr> > </table> > </td> > </tr> > </table> > > in strict mode. From my reading of the spec I would assume that the > percentage height for the inner table computes to auto as the containing > table cell is auto. > > However we look trough and use the 300px from the table. > > The CSS 2.1 spec tells explicitly that a table forms a containing block, > what about the other table elements? > Does a table cell form a containing block? If not, why do we use then > the height if specified on the table cell as the basis for the computation. > > The really funny thing about this test case is that IE7 in quirks mode > does what mozilla does but in standards mode makes the inner table auto > height. Not that they are consistent with heights but thats SEP. > > Bernd >
You have a table nested within a table. While that does not violate the HTML 4.01 specification, some browsers -- especially audio browsers for the blind -- have trouble rendering such constructs properly. Since tables are supposed to be used only for displaying tabular information, nesting of tables should be quite rare (having a tabular presentation within a single cell of a larger tabular presentation). -- David E. Ross <http://www.rossde.com/> Go to Mozdev at <http://www.mozdev.org/> for quick access to extensions for Firefox, Thunderbird, SeaMonkey, and other Mozilla-related applications. You can access Mozdev much more quickly than you can Mozilla Add-Ons. _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

