Re: [css-tables][css2.1] What should the measurement of the table be?

Le 2015-03-08 00:19, Greg Whitworth a écrit :

Greg, I have not examined your tests. But this statement got my 
attention:

> Personally, I think that any time you use CSS tables it should have
> the same end result as using actual tables

CSS table cells do not have a default 1px padding.
<td> have a default 1px padding.

Rules of user agent style sheets are accessible, viewable in Chrome, 
Firefox and Presto.

Also:

"
The width of the table is the distance from the left inner padding edge 
to the right inner padding edge (including the border spacing but 
excluding padding and border).

However, in HTML and XHTML1, the width of the <table> element is the 
distance from the left border edge to the right border edge.
"
17.6.1 The separated borders model
http://www.w3.org/TR/CSS21/tables.html#separated-borders

The "However" clearly suggests that the previous sentence was referring 
to a CSS table.

And the "excluding padding and border" refers to table padding and table 
border.

This part of spec is difficult to read, I would say.

http://lists.w3.org/Archives/Public/www-style/2011Feb/0652.html

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15530

Gérard

Received on Sunday, 8 March 2015 07:24:04 UTC