markup
markup copied to clipboard
Allow object-fit and object-position in <img> tag
Would allow for easily adjusting an image without the need to open a graphic editing program.
Not sure how it would be implemented since style isn't safe, but they could be their own props and then passed down to inline styles:
<img object-fit="contain" object-position="50% 50%" />
Agree this would be very useful. As far as I can tell, there's currently no way to do this in markdown or raw html.