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

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:31:53 UTC