HTML Video Element: Proposal for adding [srcset] + [posterset] + [sizes] on video element as well [posterset] on source elements #9812
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What is the issue with the HTML Standard?
In addition to re-implementing support for the
media
attribute on HTML video<source>
elements as well as addingsrcset
andsizes
attributes on HTML video<source>
elements, this issue proposes additional support forsrcset
posterset
andsizes
attributes on the<video>
element itself as well as individualposterset
attributes on html<source>
elements.Use case:
While thanks to the techniques introduced by the RICG it is perfectly possible to present to the user agent a bunch of
<img>
source options to pick from, the same is not possible for a<video>
element's poster image. That in turn either leads to a longer than needed loading time and a waste of resources, or to a quickly loading but blurry video poster image. If the video presents itself as the hero element, like on a video heavy site similar to YouTube, this totally ruins the LCP metric (or the visual appearance).The combination of
posterset
andsizes
attributes on the<video>
element and aposterset
attribute on<source>
elements, working analogue to<picture>
/<img>
'ssrcset
andsizes
attributes, would remedy that.And finally, a
srcset
attribute on the<video>
element could cover the easier use cases described in #9446 that otherwise would not require separate<source>
elements (e.g. when there's just one file format available).Related:
The text was updated successfully, but these errors were encountered: