I'm experiencing an issue with my SVG where a linear gradient defined in CSS is not displaying properly. Even though the second color stop rule is correctly set to orange, only the first color is showing up in the rendered image. I've been trying to troubleshoot this problem but haven't been able to identify the cause.
When looking at the code below, it seems that the image appears as solid blue instead of showing the intended gradient effect.
linearGradient:nth-child(2n+1) stop:first-child {
stop-color: blue;
}
linearGradient:nth-child(2n+1) stop:nth-child(2) {
stop-color: orange;
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 265 255" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.68,-154.08,154.08,-1.68,61.68,180)">
<stop offset="0" style="stop-opacity:1"/>
<stop offset="1" style="stop-opacity:1"/>
</linearGradient>
</defs>
<g transform="matrix(1,0,0,1,-2908.03,-614.145)">
<path d="M2918.29,629.251L2934.79,629.251L2934.79,631.958C2934.79,635.75 2937.87,638.837 2941.67,638.837C2945...