SVG re-throws ArgumentException due to bounds zero and if opacity is not one
See original GitHub issueSvg.dll will re-throw an ArgumentException from CBitmap if rendering a path where the bounds width or height is zero and opacity is not one (the default).
The above is reproducible using master at commit 80674303f5abebcc247a3c4dbe4d6bb2de1bf2cd. SVGViewer can be used to verify the bug.
The original exception is thrown by the CBitmap constructor in line 154 of Source\Basic Shapes\SvgVisualElement.cs
Test svg:
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
<g id="Layer 1">
<path d="M100,50 L100,150" stroke="black" opacity="0.5" />
</g>
</svg>
Expected result:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
SVG Opacity Transitions briefly go further than the CSS ...
I'm currently trying to get an SVG rect (in an svg embedded in html) to fade in when hovered over. I've noticed that...
Read more >CSS SVG opacity iOS issue
Try to add visibility: visible;. to the element. It's answer I have found here: http://www.punkchip.com/css-opacity-not-working-in-ios/.
Read more >togethercomputer/RedPajama-Data-1T-Sample
Note that if all of your related resources are in a self-contained # resource group, you do not necessarily need this method. You...
Read more >togethercomputer/RedPajama-Data-1T-Sample
Specifically, this sample covers hosting the HRTF xAPO in an XAudio2 graph for rendering sources with different spatial locations, radiation patterns and ...
Read more >stackOverflowTags
To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. I try to fix this issue.
Thank you!