#1899·penrose

Examples using SVG elements break upon modification in online editor

Author: phirschCreated Jun 4, 2025Updated Sep 23, 2025

Describe the bug

With the online editor, examples using SVG elements render properly initially, but fail to resolve any SVG paths after any modification.

To Reproduce

This happens with the online editor (no visible version info; tested: 2025-06-04).

Steps to reproduce the behavior:

  1. Go to https://penrose.cs.cmu.edu/try/?examples=set-theory-domain%2Ftree-euler-3d
  2. Result: Diagram renders and re-renders fine upon interaction
  3. Modify Line 8: Subset(G, C) --> Subset(G, B)
  4. Click 'compile'
  5. Result: SVG elements fail to render, errors like Could not resolve image path shading.svg appear in the console log.

Expected behavior

The diagram should still render properly, including SVG elements.

Desktop (please complete the following information if applicable):

  • OS: Linux
  • Browser: Firefox 139.0 & Chromium 137.0.7151.55