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

Style <text> elements with dominant-baseline #5

Closed
wants to merge 1 commit into from
Closed

Style <text> elements with dominant-baseline #5

wants to merge 1 commit into from

Conversation

casr
Copy link

@casr casr commented Feb 18, 2017

According to the spec, the alignment-baseline property only applies to the <tspan>, <tref>, <altGlyph> and <textPath> elements. For <text> elements there is the dominant-baseline property.

Fixes #3

The current rendering in Firefox:

screen shot 2017-02-18 at 13 16 18

According to the spec[1], the `alignment-baseline` property only applies
to the <tspan>, <tref>, <altGlyph> and <textPath> elements. For <text>
elements there is the `dominant-baseline` property.

Fixes #3

  [1]: https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty
  [2]: https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty
@casr
Copy link
Author

casr commented Mar 24, 2017

@hughsk I have encountered this bug on a lot of repositories out there. I hope it can be merged :)

@casr casr closed this May 13, 2020
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

Successfully merging this pull request may close these issues.

badge does not show in firefox
1 participant