Don't show gradient when linear gradient has href ` <svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" width="300" height="300"> <defs> <linearGradient id="MyGradient"> <stop offset="5%" stop-color="green"/> <stop offset="95%" stop-color="gold"/> </linearGradient> <linearGradient id="linearGradient52" href="#MyGradient" > </linearGradient> </defs> <rect fill="url(#linearGradient52)" x="10" y="10" width="100" height="100" stroke-width="1" stroke-opacity="1" stroke="#646464"/> </svg> `