<svg xmlns="http://www.w3.org/2000/svg">

  <defs>
    <pattern id="pat" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse">
      <rect x="5" y="5" width="30" height="30" stroke="salmon" stroke-width="5"
        fill="mistyrose" />
    </pattern>
    <pattern id="pat2" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
      <rect x="5" y="5" width="10" height="10" stroke="lavenderblush" stroke-width="2"
        fill="lemonchiffon" />
    </pattern>
  </defs>

  <rect x="20" y="20" width="160" height="160" stroke-width="10"
        fill="url(#pat)" stroke="url(#pat2)"
        fill-opacity="1.0" stroke-opacity="0.5" />
    
  <rect x="320" y="20" width="160" height="160" stroke-width="10"
        fill="url(#pat)" stroke="url(#pat2)"
        fill-opacity="0.5" stroke-opacity="1.0" />
    
  <rect x="20" y="320" width="160" height="160" stroke-width="10"
        fill="url(#pat2)" stroke="url(#pat)"
        fill-opacity="1.0" stroke-opacity="0.5" />
    
  <rect x="320" y="320" width="160" height="160" stroke-width="10"
        fill="url(#pat2)" stroke="url(#pat)"
        fill-opacity="0.5" stroke-opacity="1.0" />

</svg>