Closed Bug 491663 Opened 16 years ago Closed 16 years ago

Focussing an anchor inside a container with overflow:auto causes a scrollbar to appear, and the anchor to jump and not be activated

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 286368

People

(Reporter: dan, Unassigned)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090505 Minefield/3.6a1pre If I click on the link in the test harness, the focus rectangle causes a scrollbar to appear, and the link to jump. This stops the link from being visited. If you then click anywhere else / tab off the link so that it loses focus, it jumps back into place. This only seems to happen inside a container with overflow:auto and a max-height, however in this case, the scrollbar should not appear IMHO as the max-height has clearly not been reached. Reproducible: Always Steps to Reproduce: 1. Visit the test harness page http://www.soterm.com/dan/bugs/Firefox_Link_Focus_Bug.html 2. Click the 'Visit Google' link Actual Results: A scrollbar appears, the anchor jumps down and the page linked to is not loaded. Expected Results: No scrollbar should appear, the anchor should not jump, and the page linked to should be loaded. This has been confirmed as being an issue using: The latest nightly build of Minefield (3.6a1pre) (Windows XP SP2) Firefox 3.0.10 (Windows XP SP3) Firefox 3.0.10 (Windows Vista SP1) Firefox 3.0.10 (Mac OS X 10.5) Firefox 3.0.10 (Linux) Firefox 2.0.0.13 (Linux) Firefox 2.0.0.12 (Linux) Mozilla 1.8b (Linux) SeaMonkey 1.1.16 (Linux) This issue doesn't happen in any other browser I tried (IE6, IE7, IE8, Chrome, Safari, Opera). On the nightly build, I was using an 'out-of-the-box' install with no special themes, and no plugins. The issue can be partially resolved by giving the anchor 1px of padding, but this only works around the issue by forcing the scrollbar into play - again, IMHO, when it should not as the max-height still is not reached.
Summary: Focussing an anchor inside a container with overflow:auto causes the a scrollbar to appear, and the anchor to jump and not be activated → Focussing an anchor inside a container with overflow:auto causes a scrollbar to appear, and the anchor to jump and not be activated
You can also work around the issue by giving the 'pod' a padding-bottom of 1px... but again, IMHO, I don't feel this should be necessary to work around this issue.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Old bug :(
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: