Skip to content

Test that an img in picture drops its image when no source applies - #65986

Open
zcorpan wants to merge 7 commits into
web-platform-tests:masterfrom
zcorpan:zcorpan/picture-no-source-environment-change
Open

zcorpan wants to merge 7 commits into
web-platform-tests:masterfrom
zcorpan:zcorpan/picture-no-source-environment-change

Conversation

@zcorpan

@zcorpan zcorpan commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

When a viewport change leaves no source that applies, react to changes in the environment now clears the image without firing events, matching Firefox, Chrome and Safari. The tests also cover a waiting lazy image, an in-flight load, a pending decode(), and the source applying again.

Spec PR: whatwg/html#13368.

Matches the proposed fix for whatwg/html#13365, and checks that the image loads again when the source applies again.
Insert the picture after the iframe loads so the initial load is awaited, and poll for the cleared image instead of waiting a fixed time.

Review-item: D2
@zcorpan zcorpan changed the title Test that an img in picture keeps its image when no source applies Test that an img in picture drops its image when no source applies Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants