I\'m trying to get a gradient applied to an SVG rect element.
rect
Currently, I\'m using the fill attribute. In my CSS file:
fill
rec
Here is how to set a linearGradient on a target element: