SVG
SVG copied to clipboard
Imported Style Sheets are Ignored in Rendering
Imported Style Sheets are Ignored
My situation (generating charts in SVG) requires that the charts being localized to the customers' preferences. and we also have to send EMAILS and Generate PDFs from them. SVG works awesome. This is actually in an ASP Classic Web Site with an added DLL to connect into SVG-net.
During testing, we discovered that the embedded CSS are ignored (we though there was not a problem because the hard coded colors showed up -- and then realize our mistake).
Is there some toggle that I missed in the documentation???
Example data
To reproduce,
<svg viewBox="-1 -1 983 1093" preserveAspectRatio="xMinYMin" id="svg3" xmlns="http://www.w3.org/2000/svg">
<defs>
<style type="text/css">
@import url('http://BIGRED/UTL-KenProbe/stylesheets/rect.css');
</style>
</defs>
<rect width="200" height="100" stroke="black" stroke-width="6" fill="green" class="blue"/>
</svg>
For clarity. The css are on the SAME website that is calling into SVG-NET so it is unlikely that it is an access issue.
Used Versions
version="3.4.2" targetFramework="net472" on Windows