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
Huge demand for SVG. Images are also a problem. Features like loading attribute. It's important to get this 100% across browsers. AVIF shipped in Safari, could be a chance to get servers to start transcoding to AVIF. Bugs can hurt performance.
@ydaniv I wonder if you have more information about images, to understand if a general "Images" focus area could make sense. Does the loading attribute not work properly across browsers still? (It seems to be supported.) Are there other issues around images you had in mind?
One image-related problem is browser vendors incrementally shipping support for new image formats, i.e. first shipping support for static images, and only later shipping support for animated images. A current example of this is AVIF: although all major browsers support AVIF for still images, only Chrome supports animated AVIF. Per @jensimmons’s tweet, Safari will support animated AVIF in Safari 16.1 (scheduled for release in October 2022), but that still leaves Firefox with only static AVIF support for the time being.
(It would be even nicer if browser vendors would commit to not shipping partial implementations unless there are separate MIME types for the static vs. animated image formats.)
@foolip the issue that was on my mind at the time was this bug with loading=lazy in Webkit which prevents from using this feature altogether.
So it's bugs like this which cause interop headaches, but I'm not sure I can think of anything interesting here, interop-wise, since this is quite a specific scenario.
And fetchpriority doesn't look like something that can actually block anything critical.
So I gave this another thought (w/ @eportis-cloudinary - anything to add?), maybe nothing actionable at this point, besides the above, and random specific engine issues.
@ydaniv it looks like that bug was fixed just 7 days ago in WebKit/WebKit@0c40ba6. I'd guess that it'll be in the next Safari Technology Preview, but you'd have to read release notes (like these) to know for sure. If you have the possibility, perhaps you could re-test this in the next release of STP?
Update: It looks like we can’t “just” follow the APNG example. That test relies on last frame being shown after a certain timeout, which depends on the animation not looping — but AVIF animations always loop indefinitely.
@mathiasbynens can we have a very long animated AVIF? If variable frame length isn't possible, then just 1 red frame and lots of green ones? A total of 10 seconds or so should do it.
@mathiasbynens can we have a very long animated AVIF? If variable frame length isn't possible, then just 1 red frame and lots of green ones? A total of 10 seconds or so should do it.
Update: It looks like we can’t “just” follow the APNG example. That test relies on last frame being shown after a certain timeout, which depends on the animation not looping — but AVIF animations always loop indefinitely.
Looping with animated AVIF should be controllable with an edit-list, as defined by MIAF.
Activity
mathiasbynens commentedon Sep 20, 2022
One image-related problem is browser vendors incrementally shipping support for new image formats, i.e. first shipping support for static images, and only later shipping support for animated images. A current example of this is AVIF: although all major browsers support AVIF for still images, only Chrome supports animated AVIF. Per @jensimmons’s tweet, Safari will support animated AVIF in Safari 16.1 (scheduled for release in October 2022), but that still leaves Firefox with only static AVIF support for the time being.
Until all browsers advertising AVIF support also support animations, this poses an interoperability problem where developers cannot rely on the browser to do format selection by using
<picture>+<source>.WPT covers animated AVIF in the
ImageDecodertests:https://wpt.fyi/results/webcodecs/image-decoder.https.any.html?label=experimental&label=master&aligned (Subtests: “Test multi-track AVIF image decoding”) However, since
ImageDecoderis not universally available yet, it would be nice to have some tests that do not depend onImageDecoderas well, perhaps following the example in https://github.com/web-platform-tests/wpt/tree/master/apng.(It would be even nicer if browser vendors would commit to not shipping partial implementations unless there are separate MIME types for the static vs. animated image formats.)
ydaniv commentedon Sep 20, 2022
Thanks @mathiasbynens, +1!
@foolip the issue that was on my mind at the time was this bug with
loading=lazyin Webkit which prevents from using this feature altogether.So it's bugs like this which cause interop headaches, but I'm not sure I can think of anything interesting here, interop-wise, since this is quite a specific scenario.
And
fetchprioritydoesn't look like something that can actually block anything critical.So I gave this another thought (w/ @eportis-cloudinary - anything to add?), maybe nothing actionable at this point, besides the above, and random specific engine issues.
foolip commentedon Sep 20, 2022
@ydaniv it looks like that bug was fixed just 7 days ago in WebKit/WebKit@0c40ba6. I'd guess that it'll be in the next Safari Technology Preview, but you'd have to read release notes (like these) to know for sure. If you have the possibility, perhaps you could re-test this in the next release of STP?
gsnedders commentedon Sep 22, 2022
Let's label this as a focus area proposal despite it being kinda undefined so we don't forget about this.
mathiasbynens commentedon Sep 23, 2022
Update: It looks like we can’t “just” follow the APNG example. That test relies on last frame being shown after a certain timeout, which depends on the animation not looping — but AVIF animations always loop indefinitely.
foolip commentedon Sep 23, 2022
@mathiasbynens can we have a very long animated AVIF? If variable frame length isn't possible, then just 1 red frame and lots of green ones? A total of 10 seconds or so should do it.
ydaniv commentedon Sep 23, 2022
@foolip sure, we're on it, hoping this will be in 16.1
Add `ImageDecoder`-independent animated AVIF test
mathiasbynens commentedon Sep 23, 2022
web-platform-tests/wpt#36044
styfle commentedon Sep 28, 2022
I also discovered this Safari
loading="lazy"gray border bug that has been marked fixed but not released to stable yet.styfle commentedon Sep 28, 2022
And this Firefox white background while loading image bug which is not fixed yet. It is very noticeable for websites with dark backgrounds.
mathiasbynens commentedon Oct 5, 2022
Interop 2023 proposals relevant to this topic:
Add `ImageDecoder`-independent animated AVIF test (#36044)
foolip commentedon Oct 5, 2022
I'll go ahead and close this issue, as it's not a full proposal. If anyone has image-related features they'd like to suggest for Interop 2023, please see https://github.com/web-platform-tests/interop/blob/main/2023/README.md for the process.
jzern commentedon Oct 17, 2022
Looping with animated AVIF should be controllable with an edit-list, as defined by MIAF.
Bug 1792167 [wpt PR 36044] - Add `ImageDecoder`-independent animated …
Bug 1792167 [wpt PR 36044] - Add `ImageDecoder`-independent animated …
Bug 1792167 [wpt PR 36044] - Add `ImageDecoder`-independent animated …