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

Amendment: Images: #15

Open
michaelspellacy opened this issue Apr 16, 2015 · 3 comments
Open

Amendment: Images: #15

michaelspellacy opened this issue Apr 16, 2015 · 3 comments
Assignees
Labels

Comments

@michaelspellacy
Copy link
Member

We need to add two items in images section.

  1. Guidelines for use of <picture> element (and srcset and sizes)
  2. Accessibility reminder on adding null alts (alt="").
@michaelspellacy
Copy link
Member Author

Okay, since I brought it up, I will propose what should be included in the document. Stay tuned.

@michaelspellacy
Copy link
Member Author

Bumping this up.

@Brockenstein
Copy link

I always do picture with the img src as the deskop size and the picture srcset as the device size specific image using max-width. The reason being is because ie10 does not support picture and so it will render the img. You don't need to worry about mobile on ie10 because ie10 is not on mobile devices.

<picture>
    <source srcset="//via.placeholder.com/350x150?text=mobile+pic" media="(max-width: 600px)">
    <img src="//via.placeholder.com/1000x600?text=desktop+pic" alt="">
</picture>

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

No branches or pull requests

2 participants