SVG <text> getBBox is wrong when css is changed in the viewBox that is not 1:1

Fixed Issue #11698036

Details

Author
Koji N.
Created
Apr 18, 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

Steps to reproduce the problem:

  1. Go to https://codepen.io/nory/pen/RVWRJw?editors=1010
  2. Click [test] button.
  3. See the result in textarea.
    You can see the bbox of <text> is 10 times larger after css is changed, though the size is not changed.

Note that SVG is

<svg width="400px" height="100px" viewBox="0 0 4000 1000">

The viewBox is 10 timer larger than actual size.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Status to “Fixed”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 15063 and is available in our latest Creator’s Update build.

      Best Wishes,
      The MS Edge Team

    • Hi James, thank you for reply.

      I tested with 15063 and confirmed the fix.
      Thank you.

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

    Sign in