mirror of
https://github.com/mankidev/antialgorithm.git
synced 2026-12-01 18:03:31 -10:00
line x1..y2, rect x/y/width/height and circle or ellipse cx/cy/r/rx/ry were read with fnum(), which drops the unit. In r4.svg a line from 5% to 95% across a 400-wide canvas became a line from 5 to 95, and a circle with r=10% shrank to radius 10. t2.svg had the same with x2="100%". Rects with a % width were skipped outright. These attributes now go through the same length resolver as dy: % against the canvas width or height, or for r against the diagonal divided by sqrt 2 as SVG defines it, em and ex against the element's font-size, and the absolute units converted to user units. Full-canvas rects given as 100% are still recognised as the background and left alone.