It’ll support everything (srcset
, x
, w
, sizes
, picture
, type
, and media
) but doesn’t respond to viewport changes — yet. Those should arrive shortly.
Speaking of major implementation news…
srcset
and x
descriptors have been shipping in WebKit since forever, and while support for w
descriptors and sizes
came in June, that support has been hidden behind a compile-time flag. That changed last week. Yoav – after a Twitter exchange with WebKit engineer Benjamin Poulain – fixed a few bugs, added a boatload of tests, removed a compile time flag et voilà – WebKit nightly now has full srcset
and sizes
support as part of the main codebase.
Yoav’s tests are good, but testing against real-world production-code is better, so download WebKit Nightly, point it to your srcset
s, and let Yoav know about any funny business.
Picturefill 3 comin’
It will be both faster (especially on sites with huge numbers of images and/or complex DOMs) and more furious, where by “furious” I of course mean mean “spec- and test-compliant, mimicking as much native behavior as is possible”. For example: just like Chrome, if the polyfill finds a larger image than it needs from a given srcset
available in the cache, it’ll use that, rather than downloading an entirely new, smaller image.
Oh, and the docs page should be getting a spiffy new re-design.
-
Want respimg in the WordPress core? Get involved in the effort! (more detailed instructions on joining the WordPress Slack are here.
-
Dave Newton speaks! Dave Newton will speak! (at the CSSConf in New York on June 18th and 19th) Dave Newton has spoken! (on respimg and the broader goal of a universally accessible web at the OpenWest conference in Provo, Utah)
-
I penned a tiny update to my A List Apart respimg article, talking about how and why my examples no longer validate. Don’t rely on default
sizes
! -
Here’s a nice little implementation experience writeup: stuff.co.nz wrote up their struggle with an age-old Picturefill question: whether or not to include a
src
. The prose leads me to believe that after trying to cheat fate with some ill-advisedvisibility:hidden;
and<noscript>
trickery, they came down on the side of including asrc
and risking double downloads (even thoughsrc
is [mistakenly?] missing from the last example). -
Yoav took to his blog to summarize the last eventful, productive, and respimg-filled year and a half of his life. The best part: promises of more blogging!
See you in a couple of weeks!
—eric