mask-opacity-1c.html (891B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: mask-image: filter with 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: 60px; 17 background-color: rgb(255,255,0); 18 width: 100px; 19 height: 50px; 20 filter: invert(100%); 21 opacity: 0.5; 22 } 23 </style> 24 </head> 25 <body> 26 <div></div> 27 </body> 28 </html>