Closed Bug 346192 Opened 18 years ago Closed 18 years ago

Textbox nested into 2 divs with absolute doesn't show default value

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 325486

People

(Reporter: alexmipego, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5

Using the this HTML:

<div style='position:absolute;'>
<div style='position:absolute;'>
<input type='text' value='Test' />
</div>
</div>

The textbox will have 2 strange behaviours:
1. Doesn't display the default text
2. It doesn't show the caret, even clicking on the target area, but if you click and then type something, the text will appear as nothing wrogn had happened.

Reproducible: Always

Steps to Reproduce:
<div style='position:absolute;'>
<div style='position:absolute;'>
<input type='text' value='Test' />
</div>
</div>

Actual Results:  
No text is displayed

Expected Results:  
To display the text...

This only happens if you have 2 divs with absolute positioning and if you don't setup a width on any of them. If you change one to relative, add a width, or remove one of them, all works fine (AFAIK).

*** This bug has been marked as a duplicate of 325486 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.