visibility-003.html (1309B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <meta charset="utf-8"> 5 <title>visibility</title> 6 <link rel="help" href="https://w3c.github.io/mathml-core/#css-styling"> 7 <link rel="help" href="https://w3c.github.io/mathml-core/#text-mtext"> 8 <link rel="help" href="https://w3c.github.io/mathml-core/#radical-symbol"> 9 <link rel="match" href="visibility-003-ref.html"/> 10 <meta name="assert" content="Verify that visibility=hidden is used for the text and radical symbol of the msqrt and mroot elements."> 11 </head> 12 <body> 13 <p>Test passes if you see a green square.</p> 14 <div style="background: green; color: red; width: 200px; height: 200px;"> 15 <math><msqrt style="visibility: hidden"><mn>1</mn></msqrt></math> 16 <math><mroot style="visibility: hidden"><mn>2</mn><mn>3</mn></mroot></math> 17 <div id="dynamic"> 18 <math><msqrt><mn>1</mn></msqrt></math> 19 <math><mroot><mn>2</mn><mn>3</mn></mroot></math> 20 </div> 21 </div> 22 <script src="/mathml/support/feature-detection.js"></script> 23 <script> 24 window.addEventListener("load", () => { 25 document.getElementById("dynamic").style.visibility = "hidden"; 26 document.documentElement.classList.remove("reftest-wait"); 27 }); 28 </script> 29 <script>MathMLFeatureDetection.ensure_for_match_reftest("has_msqrt");</script> 30 </body> 31 </html>