While most versions of IE (even older ones!) are supported well, IE9 has a little conflict to work around. To support IE9, you will need to wrap a video element wrapper around the source elements in your picture tag. You can do this using conditional comments, like so:
<picture> <!--[if IE 9]><video style="display: none;"><![endif]--> <source srcset="examples/images/extralarge.jpg" media="(min-width: 1000px)"> <source srcset="examples/images/large.jpg" media="(min-width: 800px)"> <source srcset="examples/images/medium.jpg"> <!--[if IE 9]></video><![endif]--> <img srcset="examples/images/medium.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"> </picture>
http://scottjehl.github.io/picturefill/#ie9
I'll post a patch to include the recommended workaround to support IE9.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | picture-support-ie9-2275979-1.patch | 1.03 KB | osman |
Comments
Comment #1
osmanComment #2
attiks commentedThanks