25 points · by burke_holland · 14y ago · 15 comments
Update: 45 minutes later, top comment, no replies; is the answer "none of the major browser vendors vocally supported <picture>"?
Nope, not saying that at all.
"we expect the browser vendors to take dictation from the content developers"
Dictation no, participation yes.
And that is reasonable.
There are problems with the web standards process, to be sure. But in my mind, the most interesting part of the whole affair is that developers get any input whatsoever. I don't recall MS ever asking for input on the Windows API, nor Apple on Cocoa (if I'm wrong, links are appreciated). We're helping to build a major platform here, in real time. That's really neat!
Very true.
To make images on the ipad3 look great, all we have to do is change:
<img src="photo.jpg" width=800 height=600 />
to:
<img src="photo.jpg" srcset="photo@2x.jpg 1600w 1200h" width=800 height=600 />
That is a ton cleaner than dealing with <picture> which completely breaks most browsers.
One minor point, however, is that the strawman <picture> proposal was meant to be equally backward compatible through the use of a child <img> tag that would only display in unsupported browsers, as <video> works today:
<picture alt="cool-image">
<source src=hires.png media="max-width:1920px">
<source src=midres.png media="min-width:800px">
<source src=lores.png>
<!-- fallback for browsers without support -->
<img src=midres.png alt="cool-image">
</picture>Also, <video> fallback doesn't really work. If you have an h264 video, there is no good way to make it play in all browsers with markup alone (Firefox won't fallback to flash).