Empty elements

I have brought up this issue before but have never recieved an answer so
here goes again:

According to the CSS2 spec section 17.5.1 [1] point 6 empty cells should be
transparent. The 'empty-cells' property [2] states that empty cells should
have borders (per default).

I see three problems with this.

1. It is not possible to display backgrounds on empty cells.

I.e. the following rule would still not make give the cell a green
background.

TD#AnEmptyCell { empty-cells: show; background: green }

2. CSS tables is incompatible with HTML tables.

HTML has no special rules for empty cells so they should have backgrounds
just as any other HTML element.

3. 'empty-cells: show' is not a very good name

It gives the impression that empty cells should be shown when in fact the
cell is hidden with exception of it's borders.

Was this done intentionally, or where the intent that only table cells with
'empty-cells: hidden' should have their backgrounds removed?

/ Jonas Sicking

[1] http://www.w3.org/TR/CSS2/tables.html#table-layers
[2] http://www.w3.org/TR/CSS2/tables.html#propdef-empty-cells

Received on Wednesday, 20 December 2000 22:37:48 UTC