Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for input type of image without alt attribute #3

Open
karlgroves opened this issue May 21, 2013 · 3 comments
Open

Check for input type of image without alt attribute #3

karlgroves opened this issue May 21, 2013 · 3 comments

Comments

@karlgroves
Copy link
Owner

No description provided.

@PhilippeVay
Copy link
Contributor

Hi,

It's only after sending a pull request that I saw the 8 current issues you had already opened...
A suitable selector for input[type="image"] with non-existent or empty alt would be:
input[type="image"][alt=""], input[type="image"]:not([alt])

The difficult part is displaying an error without the help of :before and :after (input...)
I chose to add a huge red background but a background-image encoded in base64 would be nice. Not an accessible flag though (oh irony); JS would be the only way to do it in a better way, I think.

@karlgroves
Copy link
Owner Author

Great selector.

Agreed on the generated content. I think that although it isn't optimal, generated content would be valuable in some cases.

@Heydon
Copy link

Heydon commented Aug 24, 2013

Working on https://github.com/Heydon/REVENGE.CSS/blob/master/revenge.css, the best I could come up with was a background image on the input with faux text in it. Any other ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants