Closed Bug 551923 Opened 14 years ago Closed 14 years ago

wrong absolute positioning in button tags

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 437722

People

(Reporter: joergschiller, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100218 Gentoo Firefox/3.6
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100218 Gentoo Firefox/3.6

Trying to position an child element of button with absolute centers top:0 vertically in button.

bottom:0 also doesn't work as expected.

Reproducible: Always

Steps to Reproduce:
1. html: <button><div>foo</div></button>
2. css: button { position: relative }
3. css: button div { position: absolute; top: 0; left: 0; }

Actual Results:  
<div> is position vertically centered in <button>

Expected Results:  
<div> should be position top in <button>
Attached file Testcase in XHTML
Precisely.
Status: UNCONFIRMED → RESOLVED
Closed: 14 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: