required-extensions-2.html (884B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"/> 5 <title>SVG requiredExtensions</title> 6 <link rel="help" href="https://w3c.github.io/mathml-core/#html-and-svg"> 7 <link rel="match" href="required-extensions-2-ref.html"/> 8 <meta name="assert" content="Verify that a foreignObject with MathML used as a requiredExtensions value is selected for display in a SVG switch element."> 9 </head> 10 <body> 11 <p>Test passes if there is a green square and no red.</p> 12 <svg width="200px" height="200px"> 13 <rect width="200px" height="100px" fill="red"/> 14 <switch> 15 <foreignObject width="200px" height="200px" 16 requiredExtensions="http://www.w3.org/1998/Math/MathML"> 17 <div style="width: 200px; height: 200px; background: green"></div> 18 </foreignObject> 19 <rect y="100px" width="200px" height="100px" fill="red"/> 20 </switch> 21 </svg> 22 </body> 23 </html>