mask-opacity-1a.html (970B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: mask-image: mask with filter and opacity</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-opacity-1-ref.html"> 10 <meta name="assert" content="Test checks whether apply opacity to masked element correctly or not."> 11 <meta name="fuzzy" content="maxDifference=1; totalPixels=0-5000"> 12 <style type="text/css"> 13 div { 14 position: absolute; 15 left: 10px; 16 top: 10px; 17 background-color: rgb(255,255,0); 18 width: 100px; 19 height: 100px; 20 filter: invert(100%); 21 mask-image: url(support/blue-100x50-transparent-100x50.png); 22 opacity: 0.5; 23 } 24 </style> 25 </head> 26 <body> 27 <div></div> 28 </body> 29 </html>