legacy-mrow-like-elements-002.html (2395B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Legacy maction and semantics elements</title> 6 <link rel="help" href="https://www.w3.org/TR/MathML3/chapter3.html#presm.maction"> 7 <link rel="help" href="https://w3c.github.io/mathml-core/#enlivening-expressions"> 8 <link rel="help" href="https://www.w3.org/TR/MathML3/chapter3.html#presm.semantics"> 9 <link rel="help" href="https://w3c.github.io/mathml-core/#semantics-and-presentation"> 10 <meta name="assert" content="Verify that one can override the default rendering legacy maction and semantics elements using the display property"> 11 <link rel="match" href="legacy-mrow-like-elements-002-ref.html"> 12 </head> 13 <body> 14 <p>This test passes if you see 4 green squares and no red.</p> 15 <p> 16 <math> 17 <semantics> 18 <mspace style="display: none; background: red;" width="50px" height="50px"></mspace> 19 <mspace style="background: red;" width="50px" height="50px"></mspace> 20 <annotation style="display: math"> 21 <span style="display: inline-block; width: 50px; height: 50px; background: green;"></span> 22 </annotation> 23 </semantics> 24 </math> 25 </p> 26 <p> 27 <math> 28 <semantics> 29 <mspace style="display: none; background: red;" width="50px" height="50px"></mspace> 30 <mspace style="background: red;" width="50px" height="50px"></mspace> 31 <annotation-xml style="display: inline-block" encoding="text/html"> 32 <span style="display: inline-block; width: 50px; height: 50px; background: green;"></span> 33 </annotation-xml> 34 </semantics> 35 </math> 36 </p> 37 <p> 38 <math> 39 <maction actiontype="toggle"> 40 <mspace style="display: none; background: red" width="50px" height="50px"></mspace> 41 <mspace style="display: math; background: green" width="50px" height="50px"></mspace> 42 </maction> 43 </math> 44 </p> 45 <p> 46 <math> 47 <maction actiontype="toggle" selection="2"> 48 <mspace style="display: none; background: red" width="50px" height="50px"></mspace> 49 <mspace style="display: math; background: green" width="50px" height="50px"></mspace> 50 <mspace style="background: red" width="50px" height="50px"></mspace> 51 </maction> 52 </math> 53 </p> 54 <script src="/mathml/support/feature-detection.js"></script> 55 <script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script> 56 </body> 57 </html>