- From: Gérard Talbot <www-style@gtalbot.org>
- Date: Sun, 08 Mar 2015 03:39:53 -0400
- To: Greg Whitworth <gwhit@microsoft.com>
- Cc: www-style list <www-style@w3.org>
Le 2015-03-08 03:23, Gérard Talbot a écrit : > 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. Initial padding value is 0; so doing this is compliant with the spec. > <td> have a default 1px padding. Another one is border-spacing. User agent style sheet of mainstream browser manufacturers use 'border-spacing: 2px' for <table> elements (like in appendix D) while a CSS table will not. Initial border-spacing value is 0. Gérard > 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:40:22 UTC