Closed Bug 325940 Opened 14 years ago Closed 13 years ago

width of positioned element increases when links get focus

Categories

(Core :: Layout: Positioned, defect)

defect
Not set

Tracking

()

VERIFIED FIXED

People

(Reporter: weiss, Unassigned)

References

Details

(Whiteboard: [reflow-refactor])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1

A <div> in an HTML document is positioned with "position: absolute; width:auto", and contains another <div> that with "position:relative; width:100%", two links, and a <select> element. When one of the links gets focus, or when the selected option in the form element is changed, the width of the outer <div> increases, causing changes in the page layout.

I'm going to upload an self-contained example which demonstrates the effect.

Reproducible: Always

Steps to Reproduce:
1. Load attached example
2. Use <tab> to jump between the links.
 - OR -
   Click the links with the mouse.
 - OR -
   Change the selected <option> with mouse or keyboard.
Actual Results:  
The width of the #content div increases.

Expected Results:  
(no change in page layout)

The bug was reproduced on at least three different installations of FF 1.5, but I don't think that it was present in FF 1.0 (can't check that now though).
Confirming with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060124 Firefox/1.6a1 ID:2006012405
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: General → Layout: Block and Inline
Product: Firefox → Core
Version: unspecified → Trunk
QA Contact: general → layout.block-and-inline
Regression between 05-Dec-2004.07 and 06-Dec-2004.07.
Checkin for bug 201897 perhaps?
Component: Layout: Block and Inline → Layout: R & A Pos
QA Contact: layout.block-and-inline → layout.r-and-a-pos
Whiteboard: [reflow-refactor[
Whiteboard: [reflow-refactor[ → [reflow-refactor]
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20061208 Minefield/3.0a1 ID:2006120812 [cairo]

seems fixed after reflow branch landing
Bug occurs in SeaMonkey 2006120701 on Linux.
It does not occur in SeaMonkey 2006120801 on Linux.

-> FIXED (by reflow branch landing)
Status: NEW → RESOLVED
Closed: 13 years ago
Depends on: reflow-refactor
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Adding in-testsuite? nomination per bz's request in m.d.t.l. Sorry for the bugspam.
Flags: in-testsuite?
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.