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

[CSS21] [§17.4 Tables in the visual formatting model] percentage on width on a table caption

From: Gérard Talbot <www-style@gtalbot.org>
Date: Sat, 15 Nov 2014 04:31:21 -0500
To: W3C www-style mailing list <www-style@w3.org>
Cc: Public CSS Test suite mailing list <public-css-testsuite@w3.org>
Message-ID: <112e71003d368aabdbd773396be5587e@gtalbot.org>
Hello,

"
Percentages on 'width' and 'height' on the table are relative to the 
table wrapper box's containing block, not the table wrapper box itself.
"
§17.4 Tables in the visual formatting model
http://www.w3.org/TR/CSS21/tables.html#model

The same should be true for table caption box; the same should apply to 
table caption box. Maybe the spec should clarify this.


Test:

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/caption-100pct-width-001.xht

Firefox 33 passes this test.

IE11, Chrome 38.0.2125.122 and Opera 12.16 fail this test.

This layout bug can be found in Appendix C's "Vertical Scripts in 
Unicode" table at
http://www.w3.org/TR/css-writing-modes-3/#script-orientations

See line 572 of
http://www.w3.org/TR/css-writing-modes-3/default.css
.data caption {width: 100%;}

+CC: Public CSS Test Suite mailing list

Gérard
Received on Saturday, 15 November 2014 09:32:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:26 UTC