我对 SVG 中的描边和填充默认值感到困惑。
在 SVG 规范(http://www.w3.org/TR/SVG/painting.html#StrokeProperty)中,它说 stroke 属性的初始值是 none - 我猜这是透明的?默认笔画宽度为 1。默认笔画不透明度也应为 1
同样对于 filll ( http://www.w3.org/TR/SVG/painting.html#FillProperty ) 默认应该是黑色和不透明度 1
Inkscape 和浏览器似乎假设 stroke = black 并且 fill 是透明的 - 对吗?有谁知道默认值应该是什么?我渲染的 SVG 似乎与浏览器和 inkscape 显示的内容不一致……