I have 4 elements on the page which use the same svg gradient
<svg>
<defs>
<linearGradient id="gradient">
<stop offset="0%" style="stop-color: deepPink"></stop>
<stop offset="100%" style="stop-color: #009966"></stop>
</linearGradient>
</defs>
</svg>
And I just want to define it once on the page and it isn't supposed to be visible. But this svg block move other blocks on the page and has dimensions 150x300
These svg blocks are supposed to be visible on the page and use the above svg gradient.
<svg>
<rect width="100" height="100" stroke="#eee" stroke-width="5" fill="url(#gradient)"></rect>
</svg>
<svg>
<rect width="100" height="100" stroke="#eee" stroke-width="5" fill="url(#gradient)"></rect>
</svg>