Skip to content

Conversation

@scottjehl
Copy link
Contributor

@scottjehl scottjehl commented Jan 7, 2026

These tests support the proposal for the addition of a loading attribute
on the video and audio elements, designed to enable lazy-loading of resources related to those elements.

Related HTML Standard Proposal: whatwg/html#11980
Related issue: whatwg/html#10376

These are designed to pass in a browser that supports the proposed feature (verified in a locally patched browser).

Co-authored-by: Zach Lysobey zlysobey@squarespace.com
Co-authored-by: Brad Frost bfrost@squarespace.com
Co-authored-by: Credo Duarte cduarte@squarespace.com

…g attribute

These tests support the proposal for the addition of a loading attribute
on the video element, designed to enable lazy-loading for video and poster
data. HTML Standard PR here whatwg/html#11980

Co-authored-by: Zach Lysobey <zlysobey@squarespace.com>
Co-authored-by: Brad Frost <bfrost@squarespace.com>
Co-authored-by: Credo Duarte <cduarte@squarespace.com>
scottjehl and others added 2 commits January 8, 2026 10:24
rename files to use a .tentative.html convention since they correspond with a proposed HTML feature
@scottjehl
Copy link
Contributor Author

Renamed the files to be .tentative.html since they correspond with a proposed HTML feature. Thanks for the tip @keithamus

@scottjehl scottjehl requested a review from zcorpan January 14, 2026 23:45
@scottjehl
Copy link
Contributor Author

Thanks for the review.
After latest revisions:

  • Re-verified these tests fail in existing stable browsers (aside from visibility-deferred autoplay tests in browsers that support that already).
  • Re-verified these are all passing in our local patched webkit and firefox (for whatever that's worth).
@scottjehl
Copy link
Contributor Author

@zcorpan thanks for the change notes above. I'll be addressing these today.

@scottjehl scottjehl changed the title Web Platform Tests for HTML video element lazy loading via the loading attribute Jan 22, 2026
@scottjehl
Copy link
Contributor Author

As a followup, we're now working on a pass of revisions here to broaden these tests to include audio element support.

@scottjehl
Copy link
Contributor Author

Hi all. We've pushed revisions that address @zcorpan's latest round of suggestions as well as add tests for audio element support, closely following the same patterns where relevant.

@scottjehl scottjehl requested a review from zcorpan January 26, 2026 19:45
@scottjehl
Copy link
Contributor Author

I made a followup video test revision today after some feedback from the folks working on a Chromium implementation: avoid media loading events for poster as UAs aren't consistent on firing them for that.

…bs positioning makes tests flaky in chromium's content_shell, and these are simpler and equivalent anyhow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants