Simon Pieters

Results 719 comments of Simon Pieters

If `loading="lazy"` appears on a `` I would expect it to apply to the video, or maybe both the video and the poster. Its behavior is orthogonal to `preload` in...

It's not so weird if it also applies to `poster="..."`, in my opinion. I guess the `loading` attribute would have no effect when there's no `poster` attribute and you use...

I think these are the options to solve this issue: - Add a `posterloading=lazy` attribute to control lazy-loading of the poster image (but not the video). - Add a `posterelement="#imgid"`...

I'm not sure it's worthwhile to specify lazy-loading for video, since `preload="none"` exists and people can use lazy-loading poster images (when that is supported).

@scottaohara maybe, but I think it's better to discuss alt text (or accessible name) for `video` (and `audio`) in a new issue. For now, `aria-label` or `aria-labelledby` can be used,...

@scottaohara ok. Yeah, I think a separate issue would be best to align on how to expose the poster image to ATs. It might inform how we want to solve...

I think we should add `posterloading=lazy` to solve this issue, since it's least complex and the other things can still be added separately (lazy-loading the video with `loading=lazy`, adding alt...

PR: #8428 This issue still has `needs implementer interest`. @yoavweiss is there interest for Chromium? @annevk for WebKit? @emilio for Gecko?

Thanks @annevk @chrishtr ! What's remaining is review of #8428 and the tests.

Thanks @emilio That would be like the second option in https://github.com/whatwg/html/issues/6636#issuecomment-1125404102 but without ID lookup (instead relying on `picture` or `img` being a child or descendant of `video` + some...