Re: empty table cell size

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:

http://people.freenet.de/bernd_mozilla/empty_w3c.html

the main source is

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

<body>
<p>
How wide should the table below be?
<ol>
<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)
</ol>
<table>
  <tr>
   <td id="t1">&nbsp;</td><td></td>
  </tr>
</table>

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.


Bernd

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