<click> causes SVGs to render incorrectly.
I was writing a panel plugin, and noticed that the <click>
tag causes SVG images to render improperly in the panel. I'm using genmon to write my own (much faster) cpugraph plugin. It's not finished yet, but you can find it at https://github.com/apaz-cli/sys-genmon.
Anyway, the bug.
With command: echo "<img>/tmp/sys-genmon.svg</img>"
With command: echo "<img>/tmp/sys-genmon.svg</img><click>xfce4-taskmanager</click>"
Adding the click tag also shrinks the SVG a little, which was unexpected. But little black boxes on top of each bar definitely shouldn't be there. Maybe it's something to do with shrinking the SVG resizing it, and the black boxes are artifacts? Unsure.
The SVG in question:
<svg width='97' height='30' transform='scale(1,-1) translate(0,-30)'><g>
<rect width='3' height='2%' x='1' y='0' fill='#3498DB' />
<rect width='3' height='1%' x='5' y='0' fill='#2471A3' />
<rect width='3' height='25%' x='9' y='0' fill='#3498DB' />
<rect width='3' height='0%' x='13' y='0' fill='#2471A3' />
<rect width='3' height='8%' x='17' y='0' fill='#3498DB' />
<rect width='3' height='1%' x='21' y='0' fill='#2471A3' />
<rect width='3' height='21%' x='25' y='0' fill='#3498DB' />
<rect width='3' height='0%' x='29' y='0' fill='#2471A3' />
<rect width='3' height='28%' x='33' y='0' fill='#3498DB' />
<rect width='3' height='0%' x='37' y='0' fill='#2471A3' />
<rect width='3' height='31%' x='41' y='0' fill='#3498DB' />
<rect width='3' height='1%' x='45' y='0' fill='#2471A3' />
<rect width='3' height='2%' x='49' y='0' fill='#3498DB' />
<rect width='3' height='2%' x='53' y='0' fill='#2471A3' />
<rect width='3' height='1%' x='57' y='0' fill='#3498DB' />
<rect width='3' height='0%' x='61' y='0' fill='#2471A3' />
<rect width='3' height='1%' x='65' y='0' fill='#3498DB' />
<rect width='3' height='0%' x='69' y='0' fill='#2471A3' />
<rect width='3' height='1%' x='73' y='0' fill='#3498DB' />
<rect width='3' height='1%' x='77' y='0' fill='#2471A3' />
<rect width='3' height='98%' x='81' y='0' fill='#F1C40F' />
<rect width='3' height='37%' x='85' y='0' fill='#8E44AD' />
<rect width='3' height='13%' x='89' y='0' fill='#76B900' />
<rect width='3' height='11%' x='93' y='0' fill='#BADC00' />
</g></svg>
On a horizontal panel with row size 26, with xfce4-panel 4.18.2 (Xfce 4.18).