foreign-object-paints-before-rect.html (577B)
1 <!doctype HTML> 2 <link rel="match" href="foreign-object-paints-before-rect-ref.html"> 3 <link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#embedded-ForeignObjectElement"/> 4 <style> 5 * { 6 margin: 0 7 } 8 </style> 9 <!-- Test that the <foreignObject> root element paints in element order 10 within the SVG, but content within it is atomic. --> 11 <svg style="width: 500px; height: 500px"> 12 <foreignObject width="100%" height="100%"> 13 <div style="width: 500px; height: 500px; background: blue"></div> 14 </foreignObject> 15 <rect x="0" y="0" width="50%" height="50%"/> 16 </svg>