frac-visibility-001.html (959B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Fraction bar visibility</title> 6 <link rel="help" href="https://w3c.github.io/mathml-core/#fractions-mfrac"> 7 <link rel="help" href="https://w3c.github.io/mathml-core/#css-styling"> 8 <meta name="assert" content="The CSS visible property affects the rendering of the fraction bar."> 9 <link rel="match" href="frac-visibility-001-ref.html"> 10 </head> 11 <body> 12 <p>This test passes if you see a green square and no red.</p> 13 <div style="background: green; width: 200px; height: 200px;"> 14 <math> 15 <mfrac style="visibility: hidden; color: red"> 16 <mspace width="200px" height="20px"></mspace> 17 <mspace width="200px" height="20px"></mspace> 18 </mfrac> 19 </math> 20 </div> 21 <script src="/mathml/support/feature-detection.js"></script> 22 <script>MathMLFeatureDetection.ensure_for_match_reftest("has_mfrac");</script> 23 </body> 24 </html>