mask-clipPath-opacity-01a.xhtml (494B)
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 2 <head> 3 <style> 4 div { 5 width: 100px; 6 height: 100px; 7 mask: url(#m1); 8 background-color: blue; 9 } 10 </style> 11 </head> 12 <body> 13 <div/> 14 <svg:svg height="0"> 15 <svg:mask id="m1" style="mask-type:alpha"> 16 <svg:rect x="0" y="0" width="50" height="100" style="stroke:none; fill: #ffffff" fill-opacity="0.5"/> 17 </svg:mask> 18 </svg:svg> 19 </body> 20 </html>