Specifically, the IRI references (e.g. fill="url(#myLinearGradient)"
) do not seem to work.
Example here: http://jsfiddle.net/QYxeu/2/
Screenshot (iframe on the right):
The linear gradient is not rendered on the right.
I'm getting this issue in Chrome, Firefox, but strangely Safari is okay.
Does anyone know what the issue could be and how to solve it?
This issue can be solved by opening and closing the iframe document once. It seems that some browsers need to initialize the content document of an iframe before it can be used to resolve url fragments.
The modified version of your example works well.