W3C home > Mailing lists > Public > www-style@w3.org > January 2012

Re: [CSS21] Default table border width in collapsing border model

From: Christian Roth <roth@visualclick.de>
Date: Wed, 4 Jan 2012 18:07:10 +0100
Message-Id: <488B1894-AE79-4EF6-A253-EC17C7E631B4@visualclick.de>
To: www-style Mailing List <www-style@w3.org>

On 04.01.2012, at 17:17, Boris Zbarsky wrote:

> In this testcase, that border segment has only one border along it: the border of the table, right?


> What rendering were you expecting?  A 25px thick red line?


> If so, I think you may be misreading the "winning" border style is used as-is, without any admixture from other border styles....

That is the part I do not understand. Is the "initial left [...] border width of the table" that needs to be calculated per 17.6.2 not used (as the initial and then further computed value) for a table border that does not explicitly specify a width (as in my case)? I read this passage as effectively saying: "For tables using the collapsing border model, the initial border-left-width of the table is half of the first cell's collapsed border (i.e., not 'medium')."

Obviously, I am wrong here. But then, I do not understand what for an initial table border width needs to be calculated at all, and where it matters in the rendering.

Also, why cannot the initial table border width be the (full) width of the first cell's collapsed border, when all those borders are centered on the grid lines anyway? As it is, even the first cell's border would already spill in the margin area of the table, since it extends beyond the (centered) initial table border which is only half of its size.

I guess I am overlooking some simple key info to understand it, but haven't found it yet...

Received on Wednesday, 4 January 2012 17:10:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:09 UTC