imsky / holder

:city_sunrise: Client-side image placeholders.
http://holderjs.com
MIT License
5.84k stars 592 forks source link

"size" attribute has no affect when using 100% width #217

Closed mrlife closed 4 years ago

mrlife commented 6 years ago

Setting the size attribute appears to have no effect in v2.9.4 when the width is set to 100%.

e.g. <img data-src="holder.js/100px77?size=10">

http://jsfiddle.net/1zst8z1L

imsky commented 6 years ago

good point, i think the size is set automatically when the width is a percentage