html,body,svg { height:100% }

HTML

<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g -->

<svg viewBox="0 0 250 250" xmlns="http://www.w3.org/2000/svg">
  <!-- Using g to inherit presentation attributes -->
  <g fill="white" stroke="green" stroke-width="5">
    <circle cx="60" cy="60" r="25" fill="blue"/>
    <circle cx="40" cy="40" r="25" fill="red"/>
  </g>
   <g fill="white" stroke="green" stroke-width="5">
    <circle cx="140" cy="40" r="25" fill="red"/>
    <circle cx="160" cy="60" r="25" fill="blue"/>
  </g>
</svg>

CSS

html,body,svg { height:100% }