clip-path-borderBox-1c.html (1078B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: clip-path: clip path border-box</title> 6 <link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com"> 7 <link rel="author" title="Mozilla" href="https://www.mozilla.org"> 8 <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path"> 9 <link rel="match" href="clip-path-geometryBox-1-ref.html"> 10 <meta name="fuzzy" content="maxDifference=0-65; totalPixels=0-750"> 11 <meta name="assert" content="Test checks whether clip-path border-box works correctly or not. This test is for clip-path applied to an SVG SVG element."> 12 <style> 13 svg { 14 position: absolute; 15 left: 50px; 16 top: 50px; 17 background-color: blue; 18 width: 30px; 19 height: 30px; 20 padding: 10px; 21 border: solid blue 25px; 22 clip-path: circle(farthest-side) border-box; 23 } 24 </style> 25 </head> 26 <body> 27 <svg width="200" height="200"> 28 <rect x="0" y="0" width="200" height="200" fill="blue"/> 29 </svg> 30 </body> 31 </html>