Closed Bug 261897 Opened 20 years ago Closed 14 years ago

Focusing the top image link causes a scrollbar

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 286368

People

(Reporter: martijn.martijn, Unassigned)

References

()

Details

(Keywords: regression, testcase)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a4) Gecko/20040926 Firefox/0.9.1+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a4) Gecko/20040926 Firefox/0.9.1+

When you focus the top link (which is the large image at the top), you get a
horizontal scrollbar to appear.
I suspect this is happening after bug 151375 was fixed.

It looks like the scrollbar is created for the outline that is painted at the
right of that image link.
I don't think this is good behavior. I would normally not expect to see suddenly
scrollbars when I focus something.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Attached file Testcase
Blocks: 261196
WFM, Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10

Have you tried a newer version of Firefox?
(In reply to comment #2)
> WFM, Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10
> 
> Have you tried a newer version of Firefox?

As the bug shows, this is a problem on the Trunk, not on the FF Aviary branch.
I'm not sure what, if anything, we should do about this. The scrollbars are
appearing so that you can see the outline that appears around the A element
(which has been deliberately sized as big as the viewport). We could conceivably
make scrollbars only appear when there's overflow *excluding* outlines, but that
would be a) painful to implement and b) wouldn't look good in some situations, I
think. I'll attach a testcase.
If you size your window just right (so that making it any narrower adds a
horizontal scrollbar), then tab to the image, you'll see that we add a
scrollbar so you can scroll right to see the right outline edge.

If we didn't do that, I think this testcase would suffer.
Attached file Testcase
This testcase shows that also right aligned links can cause a scrollbar, when
focusing those links.

I knew this bug was/is controversial. So if this is going to be INVALID,
WONTFIX, that's fine with me. 

> If we didn't do that, I think this testcase would suffer.
Personally, I don't think the testcase would suffer. I don't care that much
about the right focus outline. If the image was at the top-left, you would not
see a top and left focus outline either (but that's probably a bug. I don't
know the bug number right now, but I think I have seen a bug about this issue)
The testcase in comment 1 would be fixed by not creating scrollbars when the
overflow is in a direction to which we can't scroll, which I think is the right
thing to do.
Why can't you scroll right in testcase #1?
Mozilla Windows Trunk Nightly Build Regression Window
Pass: 2004071609
Fail: 2004071808
Keywords: regression, testcase
*** Bug 274982 has been marked as a duplicate of this bug. ***
Another page that is affected by this:
http://www.bbc.co.uk/radio/aod/mainframe.shtml?http://www.bbc.co.uk/radio/aod/index.shtml?button
I can't click on the "View Compact Size" link at the right bottom of the page, a
horizontal scrollbar gets in the way.
Note that this is basically the same as bug 286368.

I'd like to do something about this but I don't know what to do.
Depends on: 286368
Fwiw, this makes it impossible to click on the "Photo Gallery>>>" link on this page:
http://news.xinhuanet.com/english/2007-09/19/content_6753266.htm
Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101019 Firefox/4.0b8pre

fixed with bug 542595
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: