Closed Bug 1043294 Opened 10 years ago Closed 10 years ago

Figcaption with table-caption as display is not counted in height calculation

Categories

(Core :: Layout: Tables, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 820891

People

(Reporter: santhosh.thottingal, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: testcase)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36

Steps to reproduce:

URL to reproduce the issue: http://codepen.io/santhoshtr/pen/ehHnB




Actual results:

The height of the figure calculated in Firefox(version 31, Linux) is less than the height calculated in chrome.  Firefox is not including the height of figcaption element. This happens only when figcaption has display:table-caption style and outer figure element with display:table style


Expected results:

The height returned should include the height of figcaption, as chrome does.
Attached file testcase
This likely Gecko's usual table hight calculation (not incuding <caption>) ...
Keywords: testcase
Whiteboard: [dupme]
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Whiteboard: [dupme]
Hmm, probably not a duplicate of 320809
Status: RESOLVED → UNCONFIRMED
Component: Untriaged → Layout: Tables
OS: Linux → All
Product: Firefox → Core
Hardware: x86_64 → All
Resolution: DUPLICATE → ---
Version: 31 Branch → Trunk
Why not?  I think it pretty likely is.

That said, this needs checking what the spec says, because there's a good chance Chrome's behavior is not following the spec here.
Depends on: 320809
The same problem with plain HTML tables
(In reply to Boris Zbarsky [:bz] from comment #4)
> Why not?  I think it pretty likely is.

Bug 320809 talks about missing <tbody> in XHTML.
But this here turns out to be more general, the same bug with any HTML table.
... and therefore its a dup of ...
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: