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 <picture> element #54

Open
Seirdy opened this issue Mar 9, 2022 · 1 comment
Open

Support <picture> element #54

Seirdy opened this issue Mar 9, 2022 · 1 comment

Comments

@Seirdy
Copy link

Seirdy commented Mar 9, 2022

Users should be able to use <picture> elements to support image sets in which the user agent chooses an image based on supported formats and media queries.

For example, users should be able to specify multiple image formats for their h-card's u-photo. For example, they could select next-gen formats (e.g. JPEG-XL, AVIF, and maybe webp2 someday) with fallbacks to legacy formats (webp, png, jpg); they could also select variants based on media queries such as prefers-color-scheme to better fit different color palettes. Currently, it's only possible to select one image.

Furthermore: some agents don't support SVGs due to their complexity, but support raster formats just fine. A u-photo is meant to be consumed by a variety of agents and should therefore be compatible with lower-common-denominators. Users who use an SVG as their photo should have a means to specify a raster fallback.

Adding this issue by suggestion of @tantek

@Seirdy
Copy link
Author

Seirdy commented Mar 9, 2022

Related: #7 concerns srcsets for <img> elements

Related: #53 is a generic issue for supporting multiple sources for <picture>, <video>, and <img>. #53 could be considered a meta-issue that this issue and #7 fall under.

@Seirdy Seirdy changed the title Support <picture> element Support <picture> element Mar 9, 2022
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

1 participant