Absolutely positioned elements set background-color when contenteditable is true

UNCONFIRMED
Unassigned

Status

()

Core
Editor
UNCONFIRMED
9 years ago
9 years ago

People

(Reporter: Sam Goody, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

If postion:absolute, the element is accorded a property _moz_abspos="white"
And the background-color is changed to white.

This is only true on position:absolute, other positioning has no problem.
This is not a problem if inside an absolutely positioned element if not actually positioned itself.

Reproducible: Always

Steps to Reproduce:
1. create a webpage with a background color
<body style="background-color:red">
2. Add such an element:
<div style="position:absolute;" contenteditable="true">Lorem Ipsum</div>
2. Open page, select text
3. The background-color should be apparent

Actual Results:  
the background-color is changed to white.

Expected Results:  
The background color should not change when contenteditable is set to true.
This is true for all non absolutely-positioned elements.

This may be related to the multiple bug reports about absolutely positioned elements getting the property _moz_resizing="true"
And thereby becoming resizable and repositionable.
Component: General → Editor
Product: Firefox → Core
QA Contact: general → editor
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.