clip-path-viewBox-1b.html (929B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: clip-path: clip path view-box with viewbox</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-36; totalPixels=0-376"> 11 <meta name="assert" content="Test checks whether clip-path view-box with viewbox works correctly or not."> 12 </head> 13 <body> 14 <svg width="200" height="200" viewBox="50 50 100 100" preserveAspectRatio="none" style="position: absolute; left: 10px; top: 10px;"> 15 <rect x="0" y="0" width="200" height="200" fill="blue" 16 clip-path="circle(25% at calc(100% - 5px) calc(100% - 5px)) view-box"/> 17 </svg> 18 </body> 19 </html>