clip.html (886B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Clip property</title> 6 <link rel="help" href="https://w3c.github.io/mathml-core/#css-styling"> 7 <link rel="match" href="clip-ref.html"/> 8 <meta name="assert" content="Verify that the clip property works on MathML elements."> 9 </head> 10 <body> 11 <p>Rectangles should be clipped.</p> 12 <div> 13 <math><mspace width="200px" height="200px" style="position:absolute; top:100px; background: green; clip: rect(0px 100px 100px 0px)"/></math> 14 </div> 15 <div style="position: absolute; top: 300px; width: 200px; height: 200px"> 16 <math style="position: absolute; clip: rect(0px 100px 100px 0px)"><mspace width="200px" height="200px" style="background: green"/></math> 17 </div> 18 <script src="/mathml/support/feature-detection.js"></script> 19 <script>MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");</script> 20 </body> 21 </html>