[Bug 13915] The suggested presentation differs from the common (if not universal) browser behavior for a table when no attributes and no author style sheets are used. The common default is to render the table with no borders. However, the CSS rules described here imp

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13915

--- Comment #9 from L. David Baron <dbaron@dbaron.org> 2011-10-14 01:01:37 UTC ---
I asked fantasai to look at these comments in a bit more detail.  However, to
respond to just one of them:

(In reply to comment #7)
> - :-moz-table-border-nonzero: why do you treat border=0 differently than
> border=1, other than for the width being mapped to 0 rather than 1? This seems
> to only be done by Opera and Gecko, and Opera's behaviour is buggy in other
> ways so I'm not sure it really counts:
> http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1197

There are two uses of :-moz-table-border-nonzero, and I believe both of them
are required for interop as shown in this page:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Ctable%20style%3D%22border-style%3Asolid%22%3E%3Ctr%3E%3Ctd%3Eborder-style%3Asolid%3C%2Ftable%3E%0A%3Ctable%20border%3D%220%22%20style%3D%22border-style%3Asolid%22%3E%3Ctr%3E%3Ctd%3Eborder%3D%220%22%20border-style%3Asolid%3C%2Ftable%3E%0A%3Ctable%20border%3D%225%22%20style%3D%22border-style%3Asolid%22%3E%3Ctr%3E%3Ctd%3Eborder%3D%225%22%20border-style%3Asolid%3C%2Ftable%3E%0A%3Ctable%20style%3D%22border-width%3A5px%22%3E%3Ctr%3E%3Ctd%3Eborder-width%3A5px%3C%2Ftable%3E%0A%3Ctable%20border%3D%220%22%20style%3D%22border-width%3A5px%22%3E%3Ctr%3E%3Ctd%3Eborder%3D%220%22%20border-width%3A5px%3C%2Ftable%3E%0A%3Ctable%20border%3D%225%22%20style%3D%22border-width%3A5px%22%3E%3Ctr%3E%3Ctd%3Eborder%3D%225%22%20border-width%3A5px%3C%2Ftable%3E

The first use sets border-style:outset on the table only when
:-moz-table-border-nonzero.  If this rule applied whenever the border attribute
was present, the fifth of the six tables would have a visible border (which it
does not in Gecko or WebKit).  (There's also a border-width:thin in that rule
that's (a) always overridden and thus pointless.)

The second use is what sets the borders on the cells.  Making border="0" lead
to cell borders would be an extremely obvious Web compatibility regression;
using simply [border] in those cases would cause cell borders in the second and
fifth of the six tables and on countless tables all over the Web that don't
expect cell borders.  (All nonzero values of the border attribute apply the
given number to the table border and lead to 1 pixel cell borders.)

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 14 October 2011 01:01:44 UTC