In article <[EMAIL PROTECTED]>,
Paul Vigay <[EMAIL PROTECTED]> wrote:
> In a dim and distant universe <[EMAIL PROTECTED]>,
> Michael Drake <[EMAIL PROTECTED]> enlightened us thusly:
> > Test case:
> > <table>
> > <tr bgcolor="yellow"><td>yellow background</td></tr>
> > <tr><td>no background</td></tr>
> > </table>
> I think it always inherits the /first/ colour defined
Yes. The first bgcolour is getting added to the implied row group, which
surrounds all the rows. To see what's happening:
1) Load that test case in NetSurf
2) Press F9 to dump the box tree
3) Assuming Zap, make the width really wide with ctrl+w 8000
4) You'll see: the row group incorrectly has background-color: #00fffff;
the 1st row correctly has background-color: #00fffff;
the 2nd row correctly has background-color: transparent;
--
Michael Drake (tlsa) http://www.netsurf-browser.org/