SVG claims feature#Text but does not do baseline-alignment or vertical text

External Issue #12052362

Details

Author
Gerald R.
Created
May 17, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

SVG claims feature#Text but does not follow spec.

SVG text does not obey alignment-baseline value such as "central".

When Chinese text is rendered with attribute writing-mode="tb-rl", then it is painted vertically. However, the SVG spec states that vertical writing implies attribute dominant-baseline="central", so characters should be centered on the vertical line. Instead, they are painted to the right of the line.

Go to this link

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

and look at the "live sample". In Edge, all glyphs are painted above the origin. In Chrome, the painting is appropriate.

Or load this image:

https://upload.wikimedia.org/wikipedia/commons/9/9b/SVG_Test_TextAlign.svg

The Chinese characters should be centered about the vertical line, but they are not. Chrome centers them.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “Bogdan B.”

      Changed Status to “External”

    • Thanks for your feedback! I duped this to the existant entry for dominant-baseline in our feature backlog.

    • This issue has been resolved External. This means this issue may require a new feature to be implemented or other work that is more significant than a typical bug. You may be able to find more information on this issue by searching for related features on status.microsoftedge.com and uservoice.microsoftedge.com.

    You need to sign in to your Microsoft account to add a comment.

    Sign in