WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Identifying focus rectangles

for

From: Jonathan Cohn
Date: Feb 6, 2019 1:23PM


I believe this is essentially the same answer I got when I asked on the BATS (Blind Accessibility Testing) group a year ago. One can certainly look to ensure that focus rectangles have not been disabled in the CSS, but it is near impossible to confirm they exist and have the proper color contrast ratios.

Jonathan Cohn

> On Feb 6, 2019, at 4:17 AM, Patrick H. Lauke < <EMAIL REMOVED> > wrote:
>
> On 06/02/2019 07:24, <EMAIL REMOVED> wrote:
>
>> For a screen reader user, how can they detect focus rectangles when the
>> keyboard focus is on an element? Is this an requirement to check the CSS and
>> possibly the Javascript? Is there any other methods?
>
> I'd say that this is one of those SCs that are very difficult, if not outright impossible, to test fully for a non-sighted user (as there can be so many variations in how the element is being styled, and the styling may even be placed programmatically on a parent/ancestor element, requiring you to analyse potentially the whole DOM branch going all the way to the root of the page).
>
> P
> --
> Patrick H. Lauke
>
> www.splintered.co.uk | https://github.com/patrickhlauke
> http://flickr.com/photos/redux/ | http://redux.deviantart.com
> twitter: @patrick_h_lauke | skype: patrick_h_lauke
> > > >