-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
The <video> poster attribute should accept multiple sources #4004
Comments
cc @tabatkins re: |
Yeah, I'm def down with the concept. Question is just if we think there's a necessity for full art-direction (multiple |
I think I agree, although I want to make sure your suggestion accounts for variants based on size, not just density. Basically whatever the img srcset attribute supports. |
srcset only allows varying on density. You can specify the density indirectly (via If you want to change the size/aspect-ratio of the image, that's what you need multiple |
@tabatkins oh got it. I agree there's no compelling reason to support multiple aspect ratios/multiple source elements. Regarding size, I guess what I was looking for was a way to select the correct image url based on the |
The As a result I think that there's a need for full art-direction of the poster image as well. |
I stumbled into this issue when I looked for how to provide different file type versions of the same poster image – for example JXL + traditional JPEG as fallback. This is possible for |
Could it also make sense for This would be especially helpful when one So you could have something like:
|
@aarontgrogg I think a similar, but different, approach was just proposed in #10378 |
@ryanfb Yes, was speaking with @scottjehl about this. |
It's a shame we can't currently specify multiple poster image sources for a video element to be used depending on pixel density and size of the video element.
I'd propose that there be a
posterset
attribute similar to imgsrcset
, if expanding theposter
attribute's inputs seems unwise.The text was updated successfully, but these errors were encountered: