image-embedding-svg-nested-svg-in-foreignobject.html (792B)
1 <!doctype html> 2 <title>Only synthesize a 'viewBox' for the outermost SVG root in image contexts</title> 3 <link rel="help" href="https://crbug.com/1313530"> 4 <link rel="match" href="../struct/reftests/reference/green-100x100.html"> 5 <img width="100" height="100" src="data:image/svg+xml, 6 <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='100' id='svg'> 7 <rect width='200' height='200' fill='red'/> 8 <foreignObject width='200' height='200'> 9 <div xmlns='http://www.w3.org/1999/xhtml' style='height: 100px; width: 100px'> 10 <svg xmlns='http://www.w3.org/2000/svg' style='width: 100%; height: 100%; overflow: visible' width='200' height='200'> 11 <rect width='200' height='200' fill='green'/> 12 </svg> 13 </div> 14 </foreignObject> 15 </svg> 16 ">