W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2011

Re: abspos-containing-block-initial-004d

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sat, 8 Oct 2011 12:30:31 -0400
Message-ID: <8634f7b1e563f5351f360ae632fa3d5f.squirrel@gtalbot.org>
To: "Robert Hogan" <lists@roberthogan.net>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>

Le Sam 8 octobre 2011 7:23, Robert Hogan a écrit :
> Hi there,
>
> http://test.csswg.org/harness/test/CSS21_DEV/abspos-containing-block-
> initial-004d/
>
> It looks like FF treats the border on a block with display:table the
> same
> way it treats the border on a block with display:block. And this has
> informed the size of the box in the reference result.
>
> WebKit obeys display:table by positioning the border as though it were
> on a
> <table> element, resulting in a block that looks smaller because the
> border
> is painted 'inside' the dimensions of the block. Which seems correct to
> me.

Robert,

HTML <table> elements and CSS table (display: table) are not treated the
same when dealing with set width and set height in 'border-collapse:
separate' situations and when sum of columns is less than set width.

Section 17.6.1 states:

"
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.
"
http://www.w3.org/TR/CSS21/tables.html#separated-borders

The statement should explicitly mention "excluding table padding and
table border": I have asked in
http://lists.w3.org/Archives/Public/www-style/2011Feb/0652.html
for such editorial addition along with a correction in a diagram in
section 17.6.1.


Also, section 17.5.3 states
"
The height of a table is given by the 'height' property for the 'table'
or 'inline-table' element.
"
http://www.w3.org/TR/CSS21/tables.html#height-layout

Nowhere does it say that a set height on a table should include the
table borders.

Here, in abspos-containing-block-initial-004d, the minimum height
required by the anonymous table-row content is less than the specified
height for the 'display: table' element.

----------

Testcases with regards to your question:

http://test.csswg.org/suites/css2.1/nightly-unstable/html4/height-width-inline-table-001.htm

http://test.csswg.org/harness/test/CSS21_DEV/height-width-inline-table-001/

http://test.csswg.org/suites/css2.1/nightly-unstable/html4/height-width-table-001.htm

http://test.csswg.org/harness/test/CSS21_DEV/height-width-table-001/

----------

www-style discussion on your question:

[CSS21] Question on section 17.6.1 The separated borders model and width
of inline-table
http://lists.w3.org/Archives/Public/www-style/2011Jan/0178.html

regards, Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Saturday, 8 October 2011 16:31:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 8 October 2011 16:31:16 GMT