RE: Focus visible

Focus visible has been taken to the silliest degree because it merely
requires there to be a visible change - a one pixel difference technically
passes at AA. Ridiculously the appearance was not accepted as an A in
WCAG2.2. There were long and 'interesting' discussions which seemed to turn
on it being hard to test. Mmm

 

2.4.13 at AAA describes what the focus must have so not automatically a fail
even there.

 

When the keyboard focus indicator is visible, an area of the focus indicator
meets all the following:  Hide full description

*	is at least as large as the area of a 2 CSS pixel thick perimeter of
the unfocused component or sub-component, and
*	has a contrast ratio of at least 3:1 between the same pixels in the
focused and unfocused states.

Exceptions:

*	The focus indicator is determined by the user agent and cannot be
adjusted by the author, or
*	The focus indicator and the indicator's background color are not
modified by the author.

Note 1: What is perceived as the user interface component or sub-component
(to determine enclosure or size) depends on its visual presentation. The
visual presentation includes the component's visible content, border, and
component-specific background. It does not include shadow and glow effects
outside the component's content, background, or border.

Note 2: Examples of sub-components that may receive a focus indicator are
menu items in an opened drop-down menu, or focusable cells in a grid.

Note 3: Contrast calculations can be based on colors defined within the
technology (such as HTML, CSS and SVG). Pixels modified by user agent
resolution enhancements and anti-aliasing can be ignored.

 

 

 

 

From: Ms J <ms.jflz.woop@gmail.com> 
Sent: Tuesday, 29 April 2025 23:12
To: w3c-wai-ig@w3.org
Subject: Focus visible

 

Hello

 

If a focus indicator fails non-text contrast, does it then automatically
fail focus visible please? 

 

I have a case where a border colour change is used to indicate focus. The
difference from the original colour is greater than 3:1, so it passes use of
colour as the difference in lightness is visible, but the new focus state
colour now fails 3:1 against the background, so it fails non-text contrast.
Does this fail focus visible? 

 

Thanks

 

Sarah 

 

Sent from Outlook for iOS <https://aka.ms/o0ukef> 

Received on Wednesday, 30 April 2025 00:16:43 UTC