Closed bsweeney closed 9 months ago
Also:
<svg id="svg" xmlns="http://www.w3.org/2000/svg" width="200" height="80">
<path d="M30 62 L30 62 L35.161290322581 62 L40.322580645161 62 L45.483870967742 62 L50.645161290323 62 L55.806451612903 62 L60.967741935484 62 L66.129032258065 62 L71.290322580645 62 L76.451612903226 62 L81.612903225806 62 L86.774193548387 62 L91.935483870968 62 L97.096774193548 62 L102.25806451613 62 L107.41935483871 62 L112.58064516129 62 L117.74193548387 62 L122.90322580645 62 L128.06451612903 62 L133.22580645161 62 L138.38709677419 62 L143.54838709677 62 L148.70967741935 62 L153.87096774194 62 L159.03225806452 62 L164.1935483871 62 L169.35483870968 62 L174.51612903226 62 L179.67741935484 10 L184.83870967742 62" stroke="#FF8126" stroke-width="1" fill="transparent"/>
</svg>
The issue appears to be that "transparent" is not a recognized keyword. You can work around the issue temporarily by setting the fill to an explicitly transparent value (e.g. #00000000) or to "none".
Note that while the next release will address the issue with the "transparent" keyword, there's a separate issue impacting the original sample. Element ordering is important. Styling should be defined before anything else in the document, and reference elements must come before any element that refers to it. This issue is tracked in #115.
This is the SVG which is converted incorrect.
Expected:
Actual:
Originally posted by @holema in https://github.com/dompdf/dompdf/issues/3069#issuecomment-1319131855