W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2019

Re: Focus stlyes for non-standard shapes

From: Detlev Fischer <detlev.fischer@testkreis.de>
Date: Thu, 17 Oct 2019 08:04:07 +0200
Message-Id: <5CC47B86-F467-4F38-AFDB-3152DAF7CD10@testkreis.de>
Cc: WCAG list <w3c-wai-gl@w3.org>
To: Alastair Campbell <acampbell@nomensa.com>
The main point for me was whether for irregular shapes of any kind, approximating the measurement by taking the longer side of the box enclosing the shape and the thickness of the irregular focus border/shadow/outline within it would be a permissible approximation. I think it would be. (I doubt it will be feasible to automate anything based on screen captures).
Cheers,
Detlev

> Am 17.10.2019 um 00:01 schrieb Alastair Campbell <acampbell@nomensa.com>:
> 
> > but would it not be far easier to …
>  
> Yes, in practice that would be a much easier method.
>  
> I wanted to tackle something complex, with a gradient, and show there is a way to measure it. That could work for a spiral shape that has no straight lines.
>  
> It is a huge faff, but it would be a very rare instance as every focus style I’ve tested in the wild is either rectangular (~99%) or circular. (In fact, I think the circles were rectangles with border radius.)
>  
> If this sort of testing did somehow become common, that method (basically pixel-counting the difference) seems like something you could automate with screen captures [1].
>  
> Cheers,
>  
> -Alastair
>  
> 1] https://www.pyimagesearch.com/2014/09/15/python-compare-two-images/ <https://www.pyimagesearch.com/2014/09/15/python-compare-two-images/>
> Tool to give a score of the difference between two images, not ready for this purpose, but would be possible to create a front-end for testing screencaptures.


Received on Thursday, 17 October 2019 06:04:12 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 21:08:32 UTC