Currently we treat a caption independently from its table. For example, a long caption can be longer than its table, unlike other browers (in most cases). Opera (and to some degree IE) consider the caption as constrained by the table in many cases rather than the table's containing block as we do. For example, in Opera <table style="margin-left:10px"><caption style="margin-left:10px"> would give the table a 10px left margin relative to the table's containing block and the caption a 10px left margin relative to the table.
Reassigning to Bernd for additional test cases. I may have been mistaken about a longer caption extending beyond the table (at least I can't seem to construct the appropriate test case for it).
Assignee: karnaze → bernd.mielke
Created attachment 74629 [details] Floated tables with top-captions Demonstrates floating of tables with captions. Four cases: left/right floated 50% width tables with 1cm flow-side margins on caption and table, or table only.
Created attachment 153892 [details] Table with caption and margin This testcase shows table caption being seperated from the table content because of the margin value of the table element.
Is there anything that is wrong with the testcase ( attachment 153892 [details] ), especially when looking at http://www.w3.org/TR/2004/CR-CSS21-20040225/tables.html#q5 ?
Comment on attachment 153892 [details] Table with caption and margin No, not when looking at that URL :-) Sorry, and thanks for clearing that up.
Attachment #153892 - Attachment is obsolete: true
> Four cases: left/right floated 50% width tables with 1cm flow-side margins on > caption and table, or table only. My earlier test case seems to work out fine now, by my own description. I suggest you cross it out, and re-evaluate this bug. It might well be fixed as a whole. Version: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.5a) Gecko/20030721 Mozilla Firebird/0.6 .
(In reply to comment #0) > Currently we treat a caption independently from its table. For example, a long > caption can be longer than its table, unlike other browers (in most cases). > Opera (and to some degree IE) consider the caption as constrained by the table > in many cases rather than the table's containing block as we do. For example, in > Opera <table style="margin-left:10px"><caption style="margin-left:10px"> would > give the table a 10px left margin relative to the table's containing block and > the caption a 10px left margin relative to the table. I've been using captions on tabeles on www.cptn.com and it looks odd in firefox. I prefer it to be apart of the talbe. Since the <caption></caption> is within the table element. The idea of a long caption, would just have to be a heading with a description outside of the table. The captions are supposed to be the table titles and not the full summaries or translations of something. There is a table summary attribute that handles such things.
we are going for a css 2.1, css3 compliance
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.