Hi team,
I drew a simple square with Affinity Designer, exported it to SVG and sanitized it with SVGOMG.
When copy-pasting it into the Cwicly SVG block, the blocks crashes.
SVG code:
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 417 417"><path d="M0 0h416.667v416.667H0z" style="fill:#666"/></svg>
After some tests, I ended up with this code accepted by the block:
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 417 417"><path d="M0 0h416.667v416.667H0z" style="fill:#666"/></svg>
So it seems that the style attribute of the svg tag crashes the SVG block:
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"
I even tried with style=""
and it crashes as well.
So it looks like the block doesn’t accept a style attribute inside the svg tag.