karacas / imgLiquid

jQuery plugin to resize images to fit in a container.
http://goo.gl/Wk8bU
MIT License
970 stars 207 forks source link

Accessibility issue: alt text is useless if image is display:none #42

Open Dan503 opened 9 years ago

Dan503 commented 9 years ago

Screen readers are able to trigger Javascript and read at least some css. When they come across things that are display:none, they skip over those elements.

So even though you put alt text on your images, since the image gets display:none the text wont be read by screen readers.