Xamarin ffimageloadingsvg:SvgCachedImage在解释SVG中的CSS时是否有与web不同的规则?
以下是一个例子: 此SVG在Google Illustrator中工作,但在使用ffimageloadingsvg:SvgCachedImage时不在XF中工作Xamarin ffimageloadingsvg:SvgCachedImage在解释SVG中的CSS时是否有与web不同的规则?,xamarin,svg,xamarin.forms,skiasharp,ffimageloading,Xamarin,Svg,Xamarin.forms,Skiasharp,Ffimageloading,以下是一个例子: 此SVG在Google Illustrator中工作,但在使用ffimageloadingsvg:SvgCachedImage时不在XF中工作 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <defs> <style type="text/css"> .cls-1 { fill: no
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<defs>
<style type="text/css">
.cls-1 {
fill: none;
}
.cls-2 {
fill: none;
stroke: #666;
stroke-miterlimit: 10;
stroke-width: 9px;
}
</style>
</defs>
<rect class="cls-1" width="512" height="512" />
<circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<defs>
<style type="text/css">
.cls-1, .cls-2 {
fill: none;
}
.cls-2 {
stroke: #666;
stroke-miterlimit: 10;
stroke-width: 9px;
}
</style>
</defs>
<rect class="cls-1" width="512" height="512" />
<circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>
.cls-1{
填充:无;
}
.cls-2{
填充:无;
行程:#666;
行程限制:10;
笔划宽度:9px;
}
当使用ffimageloadingsvg:SvgCachedImage时,此svgs在Google、Illustrator和XF中工作
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<defs>
<style type="text/css">
.cls-1 {
fill: none;
}
.cls-2 {
fill: none;
stroke: #666;
stroke-miterlimit: 10;
stroke-width: 9px;
}
</style>
</defs>
<rect class="cls-1" width="512" height="512" />
<circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<defs>
<style type="text/css">
.cls-1, .cls-2 {
fill: none;
}
.cls-2 {
stroke: #666;
stroke-miterlimit: 10;
stroke-width: 9px;
}
</style>
</defs>
<rect class="cls-1" width="512" height="512" />
<circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>
.cls-1、.cls-2{
填充:无;
}
.cls-2{
行程:#666;
行程限制:10;
笔划宽度:9px;
}
如果您认为Skia的SVG呈现存在问题,那么我会在他们的Gitub上提交一个问题。您能告诉我们这些SVG的区别吗?