Re:Building the most inaccessible site with a perfect Lighth...
by aidenn0 on Saturday June 06, 2020 @08:46PM
(#23443694)
Mostly; I can't think of a good reason for 1px sized text.
Re:Building the most inaccessible site with a perfect Lighth...
by darekkay on Sunday June 07, 2020 @05:11AM
(#23445937)
The only thing I can imagine are screen reader-only labels (although you're usually achieving this with a special "sr-only" or "visually-hidden" utility class that doesn't touch the font size)
Just look at the first example. It straight up denies access to the content and the reason why lighthouse accepts it is because hiding content just hides content. Usually when content is marked hidden the user is not supposed to see it. It is therefore not a concern if a user can't see hidden content. Imagine if you had a hidden dialog that is only shown on user interaction. Any automated tool cannot tell if this is an accessibility issue or not. It's like deciding if your car should be blue or black. There is no objective answer and choosing the wrong color won't reduce your score.
All the other tricks in the article follow the same pattern.