You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per spec<img>.complete should be true as the first bullet applies. Both the src and the srcset attribute on the image are omitted.
This seems a bit off.
The selected source is set to the the url from the <source> element, and the image lazy load resumption steps is set to fetch the image from the selected source at a later point.
In the source there's a comment that seems to indicate that it was intended to check sources in the <picture> parent:
<!--TODO: check picture parent-->
Should the spec be updated to account for the selected source?
Strictly, yes, the src attribute must be present on the <img> element, same as the sizes attribute must be present if srcset is set. But when the src attribute is omitted by authors, returning true would still be unexpected if there's a current request for a selected source who's state is not completely available or broken.
The text was updated successfully, but these errors were encountered:
The specification for
<img>.complete
disregards image sources from a<source>
element.Given the following example. (Assume that the
lazy load resumption steps
andFetch the image
haven't been invoked yet.)Per spec
<img>.complete
should be true as the first bullet applies. Both thesrc
and thesrcset
attribute on the image are omitted.This seems a bit off.
The
selected source
is set to the the url from the<source>
element, and the imagelazy load resumption steps
is set to fetch the image from the selected source at a later point.In the source there's a comment that seems to indicate that it was intended to check sources in the
<picture>
parent:Should the spec be updated to account for the selected source?
Strictly, yes, the
src
attribute must be present on the<img>
element, same as thesizes
attribute must be present ifsrcset
is set. But when thesrc
attribute is omitted by authors, returningtrue
would still be unexpected if there's acurrent request
for a selected source who's state is notcompletely available
orbroken
.The text was updated successfully, but these errors were encountered: