resvg icon indicating copy to clipboard operation
resvg copied to clipboard

dominant-baseline support

Open davyzhang opened this issue 5 years ago • 2 comments

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dominant-baseline

davyzhang avatar Feb 25 '19 08:02 davyzhang

Yes, this is planned.

https://github.com/RazrFalcon/resvg/blob/master/docs/unsupported.md

RazrFalcon avatar Feb 25 '19 10:02 RazrFalcon

would love this! I use dominant-baseline support to center labels in graph/plotting related svg files. as a workaround I think people could use the dx and dy css position attributes to manually offset text vertically.

tiby312 avatar Mar 11 '22 17:03 tiby312

@RazrFalcon I tried this out and it works great! I noticed that when used as an attribute it works, but doesn't appear to work through css style. Is that expected? (I'm using dominant-baseline:middle)

tiby312 avatar Nov 21 '22 00:11 tiby312

Yes, my bad. Will fix.

RazrFalcon avatar Nov 21 '22 07:11 RazrFalcon

Fixed.

RazrFalcon avatar Nov 21 '22 11:11 RazrFalcon

Works!

tiby312 avatar Nov 21 '22 13:11 tiby312