Open Bug 690325 Opened 13 years ago Updated 2 years ago

position:relative and display: -moz-box don't play well together

Categories

(Firefox :: General, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: nathan, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Build ID: 20110902133214

Steps to reproduce:

Apply `display: -moz-box;` (and associated box settings, bug still occurs with all settings I've tried) to a block element. Apply `position: relative; top: 20px; left: 20px;` to an element inside it.


Actual results:

The child element stayed in the flow of the document as if relative positioning hadn't been used. Works as expected in Webkit.


Expected results:

The child element should have been moved down by 20 pixels and to the left by 20 pixels.
I can confirm this on the latest Nightly using the test case attached in the Description:
Mozilla/5.0 (Windows NT 5.1; rv:10.0a1) Gecko/20111010 Firefox/10.0a1

The expected behavior is encountered on other browsers (Opera 11.51, Safari 5.0.5 and Chrome 14.0).
This issue is reproducible ever since Firefox 3.6.16.

Setting the resolution of this issue to NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: 6 Branch → Trunk
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: