Focus visible - testing reverse colors (1 Feb 2021)

A few examples of focus styles, and pushing the boundaries of what this propsed SC will minimally allow. Totally inspried by Alastair's work.

The latest version being considered is:

Minimum area: The focus indicator area is either:

Change of contrast: The pixels making up the minimum focus indicator area achieve at least a 3:1 contrast ratio between their colors in the focused and unfocused states.

Adjacent contrast: The pixels in the minimum focus indicator area achieve at least a 3:1 against adjacent colors in the focused component or the minimum focus indicator area has a thickness of at least 2 CSS pixels.

Not fully obscured: The item with focus is not entirely hidden by author-created content.

Outlines

Example A - no visble button border, adding purple (#60F) 1 px focus outline (min passes)

No visible button border, adding a purple (#60F) 3:1 contrast 1px outline on focus.

Example B - 4px focus outline (over passes)

Example C - border of white button established by edge against black background, 1px purple (#064) focus indicator (3 to 1 contrast with black/ 6 to 1 contrast with white) (Does this Pass???)

Example D - 2px focus outline (passes)

Example E - 4px focus outline (passes)

Useful resource: Editor's Draft of 2.4.11 Focus Appearance (Minimum).