Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dominant-baseline support #119

Closed
davyzhang opened this issue Feb 25, 2019 · 6 comments
Closed

dominant-baseline support #119

davyzhang opened this issue Feb 25, 2019 · 6 comments

Comments

@davyzhang
Copy link

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

@RazrFalcon
Copy link
Owner

Yes, this is planned.

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

@tiby312
Copy link

tiby312 commented Mar 11, 2022

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
Copy link

tiby312 commented Nov 21, 2022

@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)

@RazrFalcon
Copy link
Owner

Yes, my bad. Will fix.

@RazrFalcon
Copy link
Owner

Fixed.

@tiby312
Copy link

tiby312 commented Nov 21, 2022

Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants