clip-path-fillBox-1b.html (838B)
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="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path"> 7 <link rel="match" href="clip-path-geometryBox-1-ref.html"> 8 <meta name="fuzzy" content="maxDifference=0-52; totalPixels=0-376"> 9 <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 foreign object element."> 10 </head> 11 <body> 12 <svg width="200" height="200" style="position: absolute; left: 50px; top: 50px;"> 13 <foreignObject x="0" y="0" width="100" height="100" fill="blue" clip-path="circle(50%) fill-box"> 14 <div style="width: 100px; height: 100px; background: blue"></div> 15 </foreignObject> 16 </svg> 17 </body> 18 </html>