-
Notifications
You must be signed in to change notification settings - Fork 69
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
SVG colors confused in SkiaSharp.Svg 1.60.0 #42
Comments
Seems like something is wrong with path's default fill. Temporal measure before cure is to set to all groups their colors: |
This should be fixed with: 9cf03c4#diff-54eeb522f1f0baf1f0fb5e1d63c39ba4R889 |
@daniel-luberda Hi! Your fixes are quite reasonable, but I checked your fork's demo with image in issue and result is the same. if (string.IsNullOrEmpty(fill))
{
// no change
} It may be reproduced if you in SkiaSharpDemo/images/logos.svg in path with id If you pass fills to all groups or paths/rects/etc, there is no problem. May be it is some kind of fail in Adobe Illustrator. But somehow web-browsers support cascading correctly. |
Fixed in #44 |
Merged #44 |
SkiaSharp.Svg 1.60.0 gets colors confused, with text color sometimes taken from the colors of other elements. 1.59.1 is OK.
SVGColors.zip
Should look like:
But looks like this in 1.60.0, as some text color is taken from other white text:
Tested using SkiaSharp / SkiaSharp.Views.Forms 1.60.0 and 1.60.1
The text was updated successfully, but these errors were encountered: