mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 07:10:13 +00:00
The depth check and the prepass read each element's declarations through a cascade that keeps a copy of them per element, so one 100 kB style sheet rule on 16,000 groups still took 1.5 GB before the SVG was refused. The SVG and each SVG image it shows are now measured before that cascade runs. Copies nested past the depth cap, and loops of <use> references, are found as too deep: an SVG is refused with the depth error, and an SVG image is left out with the depth warning, as before.