marpit icon indicating copy to clipboard operation
marpit copied to clipboard

Enable resizing inline image by percentage

Open yhatt opened this issue 5 years ago • 2 comments

Percentage value such as width:100% was not supported caused by a special case of in-place DOM update in Firefox (#62). But certainly I think percentage should be enabled in an inline image too.

Originally posted by @yhatt in https://github.com/marp-team/marpit/issues/192#issuecomment-533550385

yhatt avatar Sep 20 '19 13:09 yhatt

I'd like to second this, since I find it the most missing feature of marp. Which is awesome tool btw, thanks for it !

varac avatar Jul 08 '20 13:07 varac

I have not been able to verbalize why Marpit does not support image resize by percentage. Now https://github.com/marp-team/marp/discussions/167#discussioncomment-1352712 is pointing out a strange and counterintuitive rendering caused by resizing by percentage value(s).

https://user-images.githubusercontent.com/3993388/133917172-d703db8f-d217-4923-ac89-c283b0fa5e2d.mov

yhatt avatar Sep 19 '21 06:09 yhatt