markup icon indicating copy to clipboard operation
markup copied to clipboard

Allow object-fit and object-position in <img> tag

Open JCQuintas opened this issue 6 years ago • 1 comments

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%" />

JCQuintas avatar Mar 28 '19 10:03 JCQuintas

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.

martimlobao avatar Apr 08 '21 16:04 martimlobao