<svg xmlns="http://www.w3.org/2000/svg">
  <rect width="50" height="50"/>
  <g>
    <style scoped="">
      rect { fill: blue }
    </style>
    <rect x="60" width="50" height="50"/>
  </g>
  <rect x="120" width="50" height="50"/>
</svg>