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
{{ message }}
Repository navigation
[vector_graphics_compiler] The initial stroke-width is not scaled by transforms #196088
The initial value of stroke-width is 1, so both lines are the same width (4 after the transform).
Actual results
The line without stroke-width stays 1 wide, and only the explicit one is scaled. Scaling down has the same problem: the initial width stays 1 under scale(0.25).
A scale from width and height on the root <svg> is not affected, because it is applied at runtime. The ghostscriptTiger test asset does hit this: it has strokes without a width under matrix(1.7656463 ...), and ghostScriptTigerPaints currently expects those strokes to have no width.
Screenshots
Compared with Chrome 156. Left: encodeSvg and VectorGraphic. Right: Chrome.
Flutter version
Reproduced with vector_graphics_compiler at 63881f9 (1.3.4), in flutter test on Windows 11.
Activity
saurabh-mirajkar commentedon Nov 6, 2026
@saitatter Thanks for the report. Labelling for
team-engineto investigate further.[vector_graphics_compiler] Scale the initial stroke width (flutter#13577