clip-path-element-userSpaceOnUse-001.html (1039B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Masking: Test clip-path property and external clipPath reference with userSpaceOnUse - 1</title> 5 <link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> 6 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#clipping-paths"> 7 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#propdef-clip-path"> 8 <link rel="help" href="http://www.w3.org/TR/css-masking-1/#ClipPathElement"> 9 <link rel="match" href="reference/clip-path-rectangle-ref.html"> 10 <meta name="assert" content="The clip-path property takes an external reference to a clipPath element for clipping. 11 On pass you should see a green box."> 12 </head> 13 <body> 14 <p>The test passes if there is a green box.</p> 15 <div style="width: 150px; height: 100px; border: solid red 50px; background-color: green; clip-path: url(#clip);"></div> 16 17 <svg> 18 <clipPath id="clip"> 19 <rect x="50" y="50" width="150px" height="100" /> 20 </clipPath> 21 </svg> 22 </body> 23 </html>