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

[CSS21] Question on section 17.5.2.1: optional recourse of the algorithm of 10.3.3

From: Gérard Talbot <www-style@gtalbot.org>
Date: Mon, 7 Nov 2011 10:33:00 -0800
Message-ID: <9202390f1e94ba1f3d497babc6e08e94.squirrel@cp3.shieldhost.com>
To: "Public W3C www-style mailing list" <www-style@w3.org>
Hello,

Section 17.5.2.1 Fixed table layout
states the following

[
The table's width may be specified explicitly with the 'width' property. A
value of 'auto' (for both 'display: table' and 'display: inline-table')
means use the automatic table layout algorithm. However, if the table is a
block-level table ('display: table') in normal flow, a UA may (but does
not have to) use the algorithm of 10.3.3
http://www.w3.org/TR/CSS21/visudet.html#blockwidth
to compute a width and apply fixed table layout even if the specified
width is 'auto'.

If a UA supports fixed table layout when 'width' is 'auto', the following
will create a table that is 4em narrower than its containing block:

table { table-layout: fixed;
        margin-left: 2em;
        margin-right: 2em }
]
http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout

but, as far as I can see this, no known browser implements the algorithm
of 10.3.3 so that the width of such table gets to be 4em narrower than its
containing block. If I'm wrong, then please demonstrate this with a
testcase: I would be very interested to see such.

Now, if no browser use the algorithm of 10.3.3, then why should such
possibility still be mentioned/remain in section 17.5.2.1 ?

I am for removing the whole block that starts with
"However, if the table"
to
"margin-right: 2em }"

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

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Monday, 7 November 2011 18:33:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT