clip-path-fillBox-1a.html (1093B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: clip-path: clip path fill-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-79; totalPixels=0-392"> 11 <meta name="assert" content="Test checks whether clip-path fill-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: 5px; 16 top: 5px; 17 background-color: blue; 18 width: 100px; 19 height: 100px; 20 margin: 10px; 21 padding: 10px; 22 border: solid blue 25px; 23 clip-path: circle(farthest-side) fill-box; 24 } 25 </style> 26 </head> 27 <body> 28 <svg width="200" height="200"> 29 <rect x="0" y="0" width="200" height="200" fill="blue"> 30 </svg> 31 </body> 32 </html>