visibility-001.html (1244B)
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="match" href="visibility-001-ref.html"/> 9 <meta name="assert" content="Verify that visibility=hidden is used for the text of token elements."> 10 </head> 11 <body> 12 <p>Test passes if you see a green square.</p> 13 <div style="background: green; color: red; width: 200px; height: 200px;"> 14 <math><mi style="visibility: hidden">1</mi></math> 15 <math><mn style="visibility: hidden">2</mn></math> 16 <math><mo style="visibility: hidden">3</mo></math> 17 <math><mtext style="visibility: hidden">4</mtext></math> 18 <math><ms style="visibility: hidden">5</ms></math> 19 <div id="dynamic"> 20 <math><mi>1</mi></math> 21 <math><mn>2</mn></math> 22 <math><mo>3</mo></math> 23 <math><mtext>4</mtext></math> 24 <math><ms>5</ms></math> 25 </div> 26 </div> 27 <script> 28 window.addEventListener("load", () => { 29 document.getElementById("dynamic").style.visibility = "hidden"; 30 document.documentElement.classList.remove("reftest-wait"); 31 }); 32 </script> 33 </body> 34 </html>