fill-box-002.html (577B)
1 <!DOCTYPE html> 2 <title>transform-box: fill-box on an SVG container element</title> 3 <link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box"> 4 <link rel="match" href="reference/greensquare200x200.html"> 5 <style> 6 #container { 7 transform-box: fill-box; 8 transform-origin: center; 9 transform: scale(2); 10 } 11 </style> 12 <p>There should be a green 200x200 rectangle below, and no red.</p> 13 <svg width="200" height="200"> 14 <rect width="200" height="200" fill="red"/> 15 <g id="container"> 16 <rect x="50" y="50" width="100" height="100" fill="green"/> 17 </g> 18 </svg>