clip-path.html (920B)
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-path-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 to a polygon.</p> 12 <div> 13 <math><mspace width="200px" height="200px" style="background: green; clip-path: polygon(10% 10%, 90% 10%, 90% 90%, 10% 90%)"/></math> 14 </div> 15 <div style="position: absolute; top: 300px; width: 200px; height: 200px"> 16 <math style="position: absolute; clip-path: polygon(10% 10%, 90% 10%, 90% 90%, 10% 90%)"><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>