Open bobobo1618 opened 8 years ago
Hm probably https://github.com/PolymerElements/iron-image/blob/master/iron-image.html#L295 should be .setAttribute("src", src)
instead?
I think this is going to be difficult to support (without making specific concessions for this polyfill) with the sizing
case since this polyfill relies on directly accessing the img. Does it even work with Shadow DOM?
+1
Description
WebP is a great image format but only Chrome natively supports it. A Javascript polyfill exists but (I believe) due to iron-image not populating the
img
element'ssrc
tag, the polyfill doesn't work.Expected outcome
https://jsfiddle.net/t03yybsm/2/ shows two images on all browsers.
Actual outcome
https://jsfiddle.net/t03yybsm/2/ shows two images on Chrome and one broken image on most other browers.
Live Demo
https://jsfiddle.net/t03yybsm/2/
Steps to reproduce
https://jsfiddle.net/t03yybsm/2/
Browsers Affected