mask-clipPath-opacity-01b.xhtml (492B)
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 opacity: 0.5; 8 mask:url(#m1); 9 background-color: blue; 10 } 11 </style> 12 </head> 13 <body> 14 <div/> 15 <svg:svg height="0"> 16 <svg:mask id="m1" style="mask-type:alpha"> 17 <svg:rect x="0" y="0" width="50" height="100" style="stroke:none; fill: #ffffff"/> 18 </svg:mask> 19 </svg:svg> 20 </body> 21 </html>