CodePen

HTML

            
              <svg version="1.1" width="100%" height="100%">
  <rect fill="#0000FF" width="60%" x="20%" y="20%" height="60%"/>
</svg>

            
          
!

CSS

            
              html, body {
  width: 100%; height: 100%;
}
            
          
!

JavaScript

            
              
            
          
!
999px
Loading ..................