W3C home > Mailing lists > Public > www-style@w3.org > January 2004

Re: empty table cell size

From: Bernd <bernd_mozilla@gmx.de>
Date: Mon, 26 Jan 2004 19:24:18 +0100
Message-ID: <40155B52.8040806@gmx.de>
To: www-style@w3.org
Cc: Ian Hickson <ian@hixie.ch>

Ian Hickson wrote:

> I tried to add this to the CSS2.1 issues list, but I couldn't work out
> what you meant. Could you propose wording changes and/or show us a test
> case that demonstrates what you are referring to?

I made a testcase at:


the main source is

<style type="text/css">
table {border-spacing:2px;
border:solid 5px green;}
td {
border:4px solid orange;
#t1 {width:10px}

How wide should the table below be?
<li>5px + 2px + 4px + 3px + 10px + 3px + 4px +2px + 4px + 3px + 3px + 
4px +2px +5px =54px; IE or
<li>5px + 2px + 4px + 3px + 10px + 3px + 4px +2px +3px +3px+2px +5px  = 
46px; (Moz)
<li>5px + 2px + 4px + 3px  + 3px + 4px +2px +2px+ 5px  = 30px; (Opera 7.20)
   <td id="t1">&nbsp;</td><td></td>

While IE seems reasonable to me, it just hides the empty cell but takes 
into account the border and the padding of the empty cell and the 
border-spacing around the empty cell. Opera looks like it is trying to 
hide the cell by not incorporating the border and the padding. What 
mozilla is trying to do doesnt make any sense.

So approximately I would be happy if there would be a line that even if 
a empty cell is hidden it will cover the same space as if 
empty-cells:show  would be defined for this cell.

Received on Monday, 26 January 2004 13:24:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:11 UTC