New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: SVG images with Patterns are not rendered correctly #84
Comments
The link to your test data does not seem to be working. But as a workaround for now I would suggest just using simpler fill patterns like shown in this example: & then you can ensure your SVGs will work in a wider range of environments (probably a goal anyway - I personally use Inkscape as my sanity test of when some SVG feature is too complex to be rendered by a really good library) Below is some test data to something similar I have seen that does not work (in IE, Inkscape, or SVG) but does work in Illustrator and WebKit(Chrome) - but there is so much nesting going on in this Illustrator sample, I'm not sure I would know where to start to debug this.
|
I've published the svg file as a JSFiddle, take a look: upperTab.svg - http://jsfiddle.net/EmanueleS/pF7GZ/ |
Seems to be (at least) 2 things going wrong in that (somewhat complex) example: 1) missing text: "Years: 7" 2) missing pattern. But the pattern issue does seem related to the same issue I encountered above with nested url ids in the pattern element. If you are able to come up with a simpler example of the pattern issue might be worthwhile to post also. |
Here is a more simplified svg image, only with patterns. Here is the fiddle: custom-pattern-tiling-test.svg - http://jsfiddle.net/EmanueleS/9T3YM/ |
- fixes svg-net#84 issue.
In #523, issue of pattern is solved. |
- fixes one of svg-net#84 issue.
- fixes #84 (missing text issue) - small refactoring in SvgElement
SVG images with patterns, like this upper tab with a wood tile pattern fill, are not rendered correctly by the library. Some text is missing. Shadows and gradients are also broken.
Here you can download the UpperTab.svg file: http://www.yourfilelink.com/get.php?fid=942948&dv=1
The text was updated successfully, but these errors were encountered: