SVGs with a viewbox specified do not work when used in an <img> tag or when used as an SVG image. See attached reduction. <rdar://problem/5656379>
Created attachment 17995 [details] HTML of test
Created attachment 17996 [details] SVG for test
This example can't work, since the referenced SVG is not accessible by calling black.svg. Can you add a new HTML file with the correct link please?
I think that the attached test should work if you download the files and open it locally.
Created attachment 95603 [details] Patch This works nowadays, adding the testcase.
Comment on attachment 95603 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=95603&action=review LGTM > LayoutTests/ChangeLog:8 > + SVGs with a viewBox work as background image nowadays, add a testcase covering it, orignally from Beth Dakin. s/orignally/originally
Landed in r87807.