Closed Bug 544212 Opened 14 years ago Closed 14 years ago

Absolute positioning inside <button> elements doesn't work as intended

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 437722

People

(Reporter: rimas, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

If I have a relatively positioned <button> element, and create an absolutely positioned element inside it, its position is calculated improperly.

This issue is important, because absolutely positioned <span> within a relatively positioned <button> is probably the easiest way of implementing scalable styled buttons... This works in Safari, Opera, IE6/7 (sadly, not 8), but fails in Firefox:
in 3.6/Mac and 3.7a1/Win, the span is offset depending on padding values of the button;
in 3.0/Win, it's not only offset, but also hidden from view.
Attached file Testcase
Rimas, thanks for the testcase....  This is unfortunately a longstanding issue dating back to a very early (poor) design decision in Gecko.  :(  We would like to fix it, but no timeframe yet.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Would love to see something done with this. As we're more able to use things like pseudo-elements, having the ability to absolutely position them (reliably) within their parent is very important. Can we request that this is escalated?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: