You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conforming to the SVG specification, 10% should amount to ~7.9px, as shown below - the two rects don't perfectly align. This isn't the case if you test this with ThorVG viewer right now. There may be more attributes with this flaw.
The text was updated successfully, but these errors were encountered:
MewPurPur
changed the title
[SVG] stroke-width with a percentage uses the width instead of the normalized diagonal.
SVG stroke-width with a percentage uses the width instead of the diagonal over sqrt(2).
Apr 2, 2024
https://svgwg.org/svg2-draft/painting.html#StrokeWidth
Example:
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg"><rect x="15" y="15" width="70" height="20" fill="none" stroke="#def" stroke-width="10%"/><rect x="15" y="15" width="70" height="20" fill="none" stroke="#fac" stroke-opacity=".6" stroke-width="10"/></svg>
Conforming to the SVG specification, 10% should amount to ~7.9px, as shown below - the two rects don't perfectly align. This isn't the case if you test this with ThorVG viewer right now. There may be more attributes with this flaw.
The text was updated successfully, but these errors were encountered: