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

[CSS21] Question on section 17.6.1 The separated borders model and width of inline-table

From: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 11 Jan 2011 16:39:38 -0800
Message-ID: <0336abd55faf5d78ffc3e19a1b8d3869.squirrel@cp3.shieldhost.com>
To: "W3C style mailing list" <www-style@w3.org>

I have one question on this testcase:


What should be the actual dimensions of such black square?

Firefox 3.6.13 renders a 26px by 26px black square: a 5px solid black
border and 16px content box (1em)

Chrome 8.0.552.224 renders a 16px by 16px black square: 16px border-box

I think Chrome 8.0.552.224 is correct in its display (the black box should
have a 16px by 16px dimensions) because

the width of the <table> element is the distance from the left border edge
to the right border edge.

therefore, the box-sizing should be set to border-box in such testcase.

Am I wrong?

FYI, Opera 11.0 does not display a black square and Konqueror 4.5.5
displays a 16px wide by 6px tall rectangle.

regards, Gérard
CSS 2.1 Test suite RC4 (December 10th 2010)

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Wednesday, 12 January 2011 00:40:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:34:46 UTC