visibility-002.html (1203B)
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/#fraction-with-nonzero-line-thickness"> 9 <link rel="match" href="visibility-002-ref.html"/> 10 <meta name="assert" content="Verify that visibility=hidden is used for the text and fraction bar of the mfrac element."> 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><mfrac style="visibility: hidden"><mn>1</mn><mn>2</mn></mfrac></math> 16 <div id="dynamic"> 17 <math><mfrac><mn>1</mn><mn>2</mn></mfrac></math> 18 </div> 19 </div> 20 <script src="/mathml/support/feature-detection.js"></script> 21 <script> 22 window.addEventListener("load", () => { 23 document.getElementById("dynamic").style.visibility = "hidden"; 24 document.documentElement.classList.remove("reftest-wait"); 25 }); 26 </script> 27 <script>MathMLFeatureDetection.ensure_for_match_reftest("has_mfrac");</script> 28 </body> 29 </html>