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

investigate adding support for responsive images #8

Open
clockelliptic opened this issue Jan 6, 2024 · 0 comments
Open

investigate adding support for responsive images #8

clockelliptic opened this issue Jan 6, 2024 · 0 comments
Labels
invalid This doesn't seem right spike investigate feasibility

Comments

@clockelliptic
Copy link
Owner

To Do: investigate adding support for responsive images (<picture> element and srcset prop)

Handle resolution switching:

<img
  srcset="elva-fairy-320w.jpg, elva-fairy-480w.jpg 1.5x, elva-fairy-640w.jpg 2x"
  src="elva-fairy-640w.jpg"
  alt="Elva dressed as a fairy" />

Handle art direction:

<picture>
  <source media="(max-width: 799px)" srcset="elva-480w-close-portrait.jpg" />
  <source media="(min-width: 800px)" srcset="elva-800w.jpg" />
  <img src="elva-800w.jpg" alt="Chris standing up holding his daughter Elva" />
</picture>

see: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

@clockelliptic clockelliptic added the spike investigate feasibility label Jan 6, 2024
@clockelliptic clockelliptic changed the title investigate adding support for responsive images (<picture> element and srcset prop) investigate adding support for responsive images Jan 6, 2024
@clockelliptic clockelliptic added the invalid This doesn't seem right label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right spike investigate feasibility
Projects
None yet
Development

No branches or pull requests

1 participant