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

Support for <picture> element #14

Open
s1n7ax opened this issue May 15, 2024 · 1 comment
Open

Support for <picture> element #14

s1n7ax opened this issue May 15, 2024 · 1 comment

Comments

@s1n7ax
Copy link

s1n7ax commented May 15, 2024

Picture tag adds different sources for different media such as loading low quality image on mobile & high quality one in PC. I believe, currently only <img> is supported

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture

@SoapyDev
Copy link

I will look into this. Unsure if the maintainer is still active, but I think I can give a stab at it.

The type attribute is interesting to me. I will also look into adding an ImageType enum for Avif, WebP, JPEG, and PNG with a client side validation for avif to see if the Browser support it, if not default to Webp.

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

2 participants