Closed Bug 382366 Opened 17 years ago Closed 8 years ago

<caption> incorrect width when floated; should be inline with table beneath it

Categories

(Core :: Layout: Tables, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: samuel.sidler+old, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(2 files)

Attached file Testcase 5
(Morphed out of bug 297252. Filing as UNCO since I'm not sure this is not actually expected behavior.)

Loading the testcase will show that the <caption> tag is showing as ~double the width of the table content beneath it. This behavior is different than on branch, where both the <caption> and the <tr><td> are the same width.
Flags: blocking1.9?
Screenshot showing behavior of Testcase 5 above.
Hmm, interesting: WebKit and Opera 9.21 have basically the same behaviour: the floated div is twice as wide as the table.

Per CSS 2.1: 10.2
http://www.w3.org/TR/CSS21/visudet.html#propdef-width
the resulting layout is undefined in this case.

If the width of the floated block is the expected behaviour, then the width of the caption is consistent with bug 363248.
Flags: blocking1.9? → blocking1.9+
Flags: blocking1.9+ → blocking1.9-
Minusing because of comment 2, basically.  (Sorry for hitting the wrong button the first time around.)
Is this a WONTFIX then?
Firefox: 45.0.1, Build ID  20160315153207
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0

Hi,

I have tested this issue on the latest Firefox (45.0.1) release, latest Nightly (48.0a1 - Build ID: 20160322030417) build, but I could not reproduce it. The "<caption>" tag has the same dimension like the width of table. 

Considering this I will close this bug as Resolved - WFM. If anyone can still reproduce it, feel free to reopen the issue and provide more information.

Thanks,
Cosmin,
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: