This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
v2.2.0
New Features
- Added support for
object-fit: fill
(viadata-object-fit="fill"
) - Added support for the
<canvas>
tag (and actually any element/tag - the polyfill will attempt to position valid nodes, such as<div>
s. Object-fit your heart out!)
Docs
- The demo page has been moved to https://constancecchen.github.io/object-fit-polyfill/demo/
- Photos and videos are now self-hosted on GitHub/in this repo to avoid issues with dead links
- In a fit of extreme narcissism, I've also replaced the previous random stock photos with some that I took myself. Enjoy!
- The cute puppy video should now be playing again!
- An example of
canvas
support has been added to the demo page - Headings have been added to the demo page to make examples (hopefully) clearer
Tech debt
- Both npm and bower packaging should now be improved so that only the dist folder is installed
- Prettier linting should now be in full effect across the codebase
- Updated dev dependencies to latest / without security vulnerabilities
- Misc code readability cleanup