react-fitted-image
react-fitted-image copied to clipboard
Tests: CSS.supports
To detect if the browser supports object-fit property, I use CSS.supports. If the property is supported, the component render an "img" tag, else a "div". Currently, when testing,the rendered component is always a "div".