mask-image-3a.html (1120B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: mask-image: multiple SVG masks</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-mask-image"> 9 <link rel="match" href="mask-image-3-ref.html"> 10 <meta name="assert" content="Test checks whether SVG mask as mask layer works correctly or not."> 11 <meta name="fuzzy" content="0-1; 0-100"> 12 <svg height="0"> 13 <mask id="mask1" x="0" y="0" width="1" height="1" > 14 <rect x="0" y="0" width="50" height="50" style="stroke:none; fill: #ffffff"/> 15 </mask> 16 <mask id="mask2" x="0" y="0" width="1" height="1" > 17 <circle cx="50" cy="50" r="25" style="stroke:none; fill: #ffffff"/> 18 </mask> 19 </svg> 20 <style type="text/css"> 21 div { 22 background-color: purple; 23 mask-image: url(#mask1), url(#mask2); 24 width: 100px; 25 height: 100px; 26 } 27 </style> 28 29 </head> 30 31 <body> 32 <div></div> 33 </body> 34 </html>