SVG text dx, letter-spacing and word-spacing draw incorrectly when text is selected

Fixed, flighted Issue #9571247

Details

Author
Chris M.
Created
Oct 28, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14931
Fixed in build #
15034
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Sample SVG document (as attached):

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 30">
    <text x="0" y="10" letter-spacing="10" word-spacing="20">The quick brown fox</text>
    <text x="0" y="30" dx="0 10 10 30 10 10 10 10 10 30 10 10 10 10 10 30 10 10 10">The quick brown fox</text>
</svg>

The two lines of text should appear identical. And they do initially; but select the text with Ctrl+A and it redraws the text very incorrectly in two different ways which I won’t bother to explain—just try it. And then if you deselect the text by clicking on the second line of text (the one using dx instead of word-spacing and letter-spacing) it breaks the text rendering for both lines in another two new ways. (Click again, or deselect by clicking elsewhere in the first place, and it goes back to rendering properly.)

Attachments

1 attachment

Comments and activity

  • Also just try selecting parts of the text with the mouse and see what a mess it makes of it all!

    The text selection stuff also seems to get messed up at scale, with some parts of the technique treating it as though the SVG was appearing at 1× rather than the potentially higher number that it may be when using a viewBox.

  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

    Changed Assigned To from “Brad E.” to “Kevin B.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Kevin B.” to “Ian P.”

    Changed Status from “Confirmed” to “In progress”

    Changed Status from “In progress” to “In code review”

  • Confirmed issue and fix is coming soon.

  • Microsoft Edge Team

    Changed Status from “In code review” to “Fixed, not yet flighted”

  • This fix is checked in. It will be in Insider releases in the next 2 weeks and is slated for stable release in the Windows 10 Creators Update.

  • Microsoft Edge Team

    Changed Status from “Fixed, not yet flighted” to “Fixed, flighted”

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

Sign in