mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
A root such as width="96pt" height="96" took CSS pixels (0.75 pt) along x and points along y, so a square came in 24 x 32 pt and the artboard 96 x 96 instead of 96 x 72; with a viewBox the art was stretched too. When either root side is absolute, both axes now take CSS pixels at 96 per inch (usvg already parses at that resolution): the unitless or px side is the same CSS length it would be in a browser. The root scale is one number. The test opens width="96pt" with height 96, 96px and 72pt, and width 128 with height 72pt: a 96 x 72 artboard and a 24 x 24 square; with viewBox 0 0 32 32 a 72 x 72 square at x 12 (meet), and with preserveAspectRatio="none" the whole artboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # ROADMAP.md