-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
The changes to "Improve color parsing" appear to break the rendering of one of the SVG images included in a PDF document we use. Some groups that were invisible before the change (which seems correct and matching other applications) are rendered as a solid black rectangle after the change.
Reverting just the changes in src/Svg/DefaultStyle.php seems to fix the rendering issue.
I have isolated one of the problematic groups and removed everything else. The minimal test document is included below. This should render as a blank page, but instead renders a black box. In the original document there were filled paths inside the group which are now hidden by the filled group.
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 595.3 841.9">
<g>
<defs>
<rect id="SVGID_1_" x="56.7" y="56.7" width="122.4" height="46.2"/>
</defs>
<clipPath id="SVGID_2_">
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
</clipPath>
</g>
</svg>