W3C home > Mailing lists > Public > www-style@w3.org > December 2000

Empty elements

From: Jonas Sicking <sicking@bigfoot.com>
Date: Thu, 21 Dec 2000 04:37:35 +0100
Message-ID: <029f01c06aff$5ce52620$3110f7d4@ericsson.se>
To: <www-style@w3.org>
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

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:56 UTC