Re:Web Designers should all be using this idea by now: Font ...
by mk on Thursday September 29, 2011 @11:37AM
(#3052865)
This is the same problem I have with this approach. It seems like a cool idea, but I don't want to break accessibility. I think you can get around this using aria and having it skip over that element.
See aria-hidden:
http://www.w3.org/TR/wai-aria/states_and_properties#aria-hid...
Authors MAY, with caution, use aria-hidden to hide visibly rendered content from assistive technologies only if the act of hiding this content is intended to improve the experience for users of assistive technologies by removing redundant or extraneous content. Authors using aria-hidden to hide visible content from screen readers MUST ensure that identical or equivalent meaning and functionality is exposed to assistive technologies.
Re:Web Designers should all be using this idea by now: Font ...
by obeattie on Thursday September 29, 2011 @11:49AM
(#3052908)
I may be misunderstanding the spec, but it looks like you have to be able to set element attributes for this approach to work, which I'm fairly certain you can't set with CSS. And I guess even if you can use JS to set the attributes, there's no way to set them on a pseudo-element anyway.
Re:Web Designers should all be using this idea by now: Font ...
by JoachimSchipper on Thursday September 29, 2011 @11:40AM
(#3052874)
This particular implementation uses CSS before: rules. These are likely ignored by (current!) screenreaders.
Re:Web Designers should all be using this idea by now: Font ...
by TheBurningOr on Thursday September 29, 2011 @11:36AM
(#3052862)
Do screen readers parse CSS in their reading? I would think this would avoid that problem by using the :before pseudo classes rather than injecting it into the dom directly.
edit: fuller thought.
UPDATE: Further digging seems to validate that most modern screen readers do ignore pseudo elements. So, there's no doubt that this solution is promising. However, as with anything, your user agent baseline should be considered before using it. Saying that everyone should be using this right now probably isn't a reliable blanket recommendation.