Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Node label are not vertically centered in Firefox #5

Open
balthild opened this issue Aug 1, 2020 · 1 comment · May be fixed by #6
Open

Node label are not vertically centered in Firefox #5

balthild opened this issue Aug 1, 2020 · 1 comment · May be fixed by #6

Comments

@balthild
Copy link

balthild commented Aug 1, 2020

This seems to be an issue of the browsers'. Firefox does not recignise alignment-baseline and baseline-shift in SVG, while Chrome does.

A workaround is replacing alignment-baseline to dominant-baseline.

Firefox:

Chrome:

@balthild balthild changed the title Node label are not vertically centered Node label are not vertically centered in Firefox Aug 1, 2020
@balthild
Copy link
Author

balthild commented Aug 1, 2020

BTW, using central instead of middle for alignment-baseline or dominant-baseline gets better results.

balthild added a commit to balthild/vector that referenced this issue Aug 1, 2020
@balthild balthild linked a pull request Aug 1, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant