object-fit-images
Version:
Polyfill object-fit and object-position on images on IE9, IE10, IE11, Edge, Safari, ...
13 lines (11 loc) • 591 B
Markdown
# Changelog
* 3.1.0 Use SVG as a size placeholder instead of canvas
* 3.0.0 Improved edge cases with `srcset`, `currentSrc`, unsetting `object-fit`, ...
* 2.5.0 Add support `object-position` where `object-fit` is supported
* 2.4.0 Add support for `getAttribute`/`setAttribute`
* 2.4.0 Add support `scale-down`
* 2.2.0 Don't override the `<img>`'s `background-color`
* 2.1.0 Further byte savings
* 2.0.0 Flipped `onresize` default: the values rarely change with media queries, so only enable them when needed with `{watchMQ:true}`
* 1.1.0 Added `srcset` support
* 1.0.0 First public release