Join GitHub today
Add <img> decoding="" attribute #3221
This pull introduces a decoding attribute to the img tag. The attribute indicates a decoding hint to
I've renamed the attribute to "decoding" as per conversation in #1920. I think it makes sense, but that's an easy thing to change if we change our mind.
I've also added Decoding images section as a place to describe some of the processes that happen in the user agent and to define what synchronous and asynchronous mean.
I pushed a commit with a few more tweaks. This now looks good to me :).
As for tests, the only ones I can think of are updating https://github.com/w3c/web-platform-tests/blob/11abef74e5f06c23176ab2f492c71c9a33250742/html/dom/elements-embedded.js#L3 . If we can get those updated, either as a WPT PR or via Chromium's auto-export, I'm ready to merge!
It seems there's again some unrelated commits in this PR. (I suspect they might all be related to the little incident we had on master yesterday...)
As an update, I think the discussion on #1920 has concluded with the consensus that we should name the attribute decoding (as is in the latest patchset here). I'm adding web platform tests in here: web-platform-tests/wpt#8382 which is currently pending review.
Tests are arriving via https://chromium-review.googlesource.com/c/chromium/src/+/770106.
Dec 5, 2017
1 check passed
pushed a commit
this pull request
Dec 7, 2017
@tobie, https://whatpr.org/html/3221/8b055c0...3f6a0fe/images.html is b0rked, can you investigate?