Open
Bug 2051987
Opened 5 days ago
Updated 3 days ago
img.complete does not support a picture parent
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: johannes.odland, Unassigned)
Details
Steps to reproduce:
I ran this test script:
document.body.innerHTML = '<picture><source srcset="url"><img></picture>';
const img = document.body.querySelector('img')
console.log(img.complete)
Actual results:
Firefox logged true
Expected results:
Expected false, as the source has a srcset and a current request must be created.
Chrome and Safari both support checking .complete on an image with a picture parent and sibling source elements.
Note: Firefox aligns with the current spec here, but Safari and Chromes results are more "reasonable".
There is an issue filed on the spec to update the .complete getter steps:
https://github.com/whatwg/html/issues/9346
Comment 1•5 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Updated•3 days ago
|
Severity: -- → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•