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

NEW
Unassigned

Status

()

7 years ago
7 years ago

People

(Reporter: nathan, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 563377 [details]
Demonstration of the bug

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
You need to log in before you can comment on or make changes to this bug.