SVG viewBox attribute not applied to <pattern>

Issue #11384586 • Assigned to Bogdan B.


Jonathan B.
Mar 24, 2017
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

The SVG pattern at the above URL should have simple stripes at a 45 degree angle. Chrome, Firefox & Safari show the stripes but Edge shows a broken block pattern because the viewBox attribute isn’t being applied to the pattern element.

I have verified this by removing the viewBox attribute under Chrome and it shows the same pattern as Edge.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “Bogdan B.”

    • Some added information:

      The issue isn’t that the viewBox isn’t applied at all. The viewBox still scales the pattern contents correctly (you can see this if you change the pattern tile width/height). However, the offset from the viewBox origin isn’t applied.

      This bug also exists in IE. But of course I’d forgotten about it, so just spent some time trying to create a minimal test case. It should use a centered viewBox origin. But only the parts of the pattern content that have positive coordinates are visible.

    • Microsoft Edge Team

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Won’t fix”

    • Why wontfix???

      This is a really, really bad bug! It breaks basic functionality of what viewBox is supposed to do, and it does it in a way that is really confusing to authors.

      Just because its an old bug shouldn’t mean that it’s OK to keep it around.

    • Microsoft Edge Team

      Changed Status from “Won’t fix”

    • Reactivating auto-resolved valid bugs reported by web dev community. Those were not expected to be resolved. We apologize for any inconvenience!

    • Microsoft Edge Team

      Changed Assigned To to “Bogdan B.”

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

    Sign in