New issue
Advanced search Search tips

Issue 684575 link

Starred by 5 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature
Team-Accessibility



Sign in to add a comment

HTML5's autofocus should be optional for accessibility

Reported by m...@openconcept.ca, Jan 24 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Steps to reproduce the problem:
1. Try to enable HTML5's autofocus
2. There is no UI or config to allow this to happen
3. autofocus is difficult for screen reader users to understand context.

What is the expected behavior?
You should be able to disable autofocus for people with disabilities. 

What went wrong?
We can't.

Did this work before? N/A 

Chrome version: 55.0.2883.95  Channel: stable
OS Version: OS X 10.12.2
Flash Version: Shockwave Flash 24.0 r0

http://webaim.org/blog/future-web-accessibility-html5-input-extensions/
 
Labels: Needs-Triage-M55

Comment 2 by tapted@chromium.org, Jan 25 2017

Components: UI>Accessibility Blink>Input
The W3C HTML specification has the following warning and user agent requirement:

Use of the autofocus attribute can reduce usability and accessibility for users. Users of assistive technology can be adversively affected because its use overrides the default behaviour of assistive technology to display content at the top of a document in the viewport or announce content from the start of the document. Users with cognitive disabilites can also be disorientated by unexpected focus movement upon page load.

https://w3c.github.io/html/sec-forms.html#autofocusing-a-form-control-the-autofocus-attribute

User agents should provide a method for users to disable the autofocus attribute behaviour.
Components: -Blink>Input Blink>Focus

Comment 5 by kochi@chromium.org, Feb 20 2017

Status: Available (was: Unconfirmed)
Maybe having a "Turn off autofocus behavior" flag on accessibility setting?
Type=Feature seems legit for this bug.

Comment 6 by m...@openconcept.ca, Feb 20 2017

In Firefox you can access it via about:config but that's not sufficient:
  https://bugzilla.mozilla.org/show_bug.cgi?id=1333425
Labels: NewComponent-Accessibility-Blink NewComponent-Accessibility
Components: Blink>Accessibility
Components: -UI>Accessibility
Labels: -newcomponent-accessibility-blink -newcomponent-accessibility
Labels: triage-dominic
Labels: -Pri-2 -OS-Mac -Via-Wizard-Other -Needs-Triage-M55 -triage-dominic Pri-3
This is one of those cases where I'm not convinced a setting is the right solution. Browsers already have too many settings; how many affected users would actually think to find the setting and change it? I'd suspect that users adept enough to do that would be the ones the least bothered by autofocus.

One alternative idea: perhaps we could communicate autofocus to AT somehow - i.e. let it know the focus reason - and let AT decide whether it wants to ignore autofocus?

I can think of a lot of more interesting settings I'd rather see before this one - for example bringing the focus highlight feature we have on Chrome OS to other platforms too.


> perhaps we could communicate autofocus to AT somehow - i.e. let it know the focus reason - and let AT decide whether it wants to ignore autofocus?

The disadvantages of this are the "detecting AT" issues (privacy and detection-problem concerns) (assuming this means detection)? and additionally:
- we have speech rec which so far as been pretty bad at even following ARIA developments let alone browser options. Dragon seems pretty reliant on its plugin(s).
- 2 places of implementation: as users we need to wait for both a browser implementation of a message and then also all the AT need to be able to understand it and do something with it. This isn't impossible (it's how new ARIA-foo attributes are done currently) but it's now 2 places users need to pester to get anything working instead of one. 
- we have people affected by autofocus who are not running (software) AT. 

A similar argument has been made for text-enlarge: people don't know they can do it in the browser so developers should build text-enlarge widgets. I don't agree with this due to it causing completely different experiences per web page and relying on developers/authors for whether or not we (users) have control over our browsing. Browsers do these sorts of things better than web authors, more consistently.

Honestly there's a small pile of irritating-to-debilitating things that would be great if we could block without turning off/blocking all Javascript (which just isn't an option nowadays anymore): irritating/vertigo-inducing animations (the new media query is awesome though totally in the hands of the authors), scrolljacking, autofocus, parallax, crazy fonts. But autofocus is one that's done by the browser via an attribute, so here's a single place where we could offer user choice.
Components: Blink>HTML>Focus
Components: -Blink>Focus
Project Member

Comment 15 by sheriffbot@chromium.org, Oct 1

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
This is still relevant and should be set back to available.
Components: -Blink>HTML>Focus
Status: WontFix (was: Untriaged)
The actual autofocus attribute is just the newer way of doing this. Many pages do this with JavaScript. 

Recommend that this is pushed to screen reader vendors to detect when a page receives focus on load without the user explicitly doing so. They should be able to detect this and announce "autofocused" or provide some helpful hint to users.

I'll send some emails out and see if something can happen on their end.

Sign in to add a comment