W3C home > Mailing lists > Public > www-style@w3.org > March 2015

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

From: Gérard Talbot <www-style@gtalbot.org>
Date: Sun, 08 Mar 2015 03:23:35 -0400
To: Greg Whitworth <gwhit@microsoft.com>
Cc: www-style list <www-style@w3.org>
Message-ID: <bb103c8ed23992efd0d27b2b01c21438@gtalbot.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC