Open Bug 262577 Opened 20 years ago Updated 2 years ago

Outline for div:overflow elements does not honour browser.display.focus_ring_width preference.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: jasonb, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041001
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041001

This bug follows from bug 257938.  Specifically setting
browser.display.focus_ring_width to 0 removes outlines from all elements EXCEPT
for div:overflow.  Outlining on those elements should also pay attention to this
preference.

Reproducible: Always
Steps to Reproduce:
1. Using about:config set "browser.display.focus_ring_width" to 0.
2. Go to the referenced URL.
3. Click on the main content area.


Actual Results:  
Focus outline is displayed around the DIV.

Expected Results:  
No outline should have been displayed.

Filing this bug under the same component as bug 257938 - feel free to to move it
as necessary.
There are other things that don't currently obey that preference. Actually I was
thinking about removing these prefs eventually once we have a more reasonably
visible focus outline that 'just works' (see bug 251198). There's a Mac bug as
well somewhere.

If we fix the other complaints about dotted focus outlines around div overflow
stuff is this still necessary?
I suppose that if the presentation problems with div:overflow can get fixed,
then the *main* "problem" is gone and that I'd be okay with that.  However, I
should state that, as a purely personal observation, I've never been keen on the
outlining of any element (button, etc.) - and since using this preference for
the past few days I've enjoyed a much more satisfactory browsing experience.

(Oddly, some of the recent behaviour of things jumping around seems to have been
corrected, for me, by not having the outlining shown.  I haven't had a chance to
narrow this down but it seems as if the outline rendering has actually regressed
something recently.  I know, of course, that that's something quite different
from this bug here.)

As for bug 257938 - I have enough problem with the outlining as it is.  Making
it even MORE visible would be just ... wrong. <grin>  (In the case of keyboard
navigation anyway - but that's bug 262578, so I won't go into it any more here.)
You'll still be able to remove your outlines with userContent.css rules

Try something like

*:focus { -moz-outline: none !important; }

The !important is probably not necessary actually.
> *:focus { -moz-outline: none !important; }

That sounded good, but it didn't do anything (for any element).  Outlines are
still shown...
Blocks: 257938
Blocks: 262578
QA Contact: keyboard.navigation
Mass un-assigning bugs assigned to Aaron.
Assignee: aaronleventhal → nobody
Component: Keyboard: Navigation → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.