3 ms·
> Note: Don't use "display: none" to hide the accessible HTML tree, because then screen readers will ignore it. That sounds like a use case for @media queries
by anoncake 8y ago
> Note: Don't use "display: none" to hide the accessible HTML tree, because then screen readers will ignore it.
That sounds like a use case for @media queries
- mwcampbell 8y agoThat opens a whole other can of worms. Some blind people don't want a website or web application to be able to detect that they're running a screen reader, and by extension, that they're blind. [1] I'm not sure where I stand on that issue. [1]: https://news.ycombinator.com/item?id=19547239 https://news.ycombinator.com/item?id=19547239
- mastazi 8y agoMedia queries are instructions that the client can use, unlike other methods like user-agent there is no info being sent over to the site. Of course a malicious page could implement js code to try and understand what bersion of the page the client is actually rendering, but it would be quite easy for the client to circumvent that.
- ago 8y agoMedia queries can leak info to the server easily without JavaScript: https://matt.traudt.xyz/p/YF4ciVY6.html https://matt.traudt.xyz/p/YF4ciVY6.html
- anoncake 8y agoI bet there already is a way to detect that.
- deleted 8y ago[deleted]