Re: [CSS21] Height of cell box should not be influenced by 'height'

> http://www.w3.org/TR/2007/CR-CSS21-20070719/tables.html#height-layout
> contains the sentence:
> # In CSS 2.1, the height of a cell box is the maximum of the table
> # cell's 'height' property and the minimum height required by the
> # content (MIN).
> I believe this is incorrect

Incorrect in what sense? For ten years it used to be correct and people implemented it, adding 'in' on CR stage is not approapriate IMHO.

>  and should be changed to:
> # In CSS 2.1, the height of a cell box is the minimum height
> # required by the content (MIN). 

What if I want to center content vertically within cell?

> # The table cell's 'height' property
> # can influence the height of the row, but it does not increase the
> # size of the cell box.

Then it is table row's 'height' property, isn't it?

> I think it also
> provides a more useful behavior for authors, since it allows authors
> to use vertical-align to align cells with specified heights

This changes meaning of table cell's vertical-align property. Currently it defines vertical alignment of content withing table cell, you want it to change to something that defines vertical alignment of cell within table row. Note that presentationwise you actually remove important functionality. Because today you can achive what you want by wrapping cell content in block container and in the same time those who need to align content within cell can do it easily. While after making proposed change one could only align cell within row and that's it.

> If the height of the cell box is influenced by the 'height'
> property, then the cell box fills the entire row and there is
> nothing to center according to the 'vertical-align' property.

That property currently centers content of the cell. Not the cell itself.

> The following browsers center it vertically within the box:
>  Firefox trunk (slightly after 3 beta 2), Linux
>  Opera 9.25, Linux
>  Konqeror 3.5.8-9.fc7, Linux
>  IE 7.0.5730.11, Windows XP
>  Safari 3.0.4 (523.12), Mac OS X 10.4.11
> Those were all the browsers I tested; I didn't encounter any that
> placed the text at the top.

One more reason to preserve current behaviour.

-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

Received on Wednesday, 2 January 2008 11:17:37 UTC