mask-mode-luminance-with-mask-size.html (1004B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: 'mask-mode: luminance' with 'mask-size'</title> 6 <link rel="author" title="Antoine Quint" href="mailto:graouts@webkit.org"> 7 <link rel="help" href="https://www.w3.org/TR/css-masking-1/#propdef-mask-mode"> 8 <link rel="match" href="mask-mode-luminance-with-mask-size-ref.html"> 9 <meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-5000"> 10 <meta name="assert" content="Test checks that mask a PNG image referenced by mask-image is correct with 'mask mode: luminance', partial transparency and 'mask-mode'."> 11 <style type="text/css"> 12 div { 13 background-color: blue; 14 position: absolute; 15 16 width: 100px; 17 height: 100px; 18 19 top: 10px; 20 left: 10px; 21 22 mask-mode: luminance; 23 mask-size: 100px 50px; 24 mask-image: url(support/transparent-100x50-blue-100x50.png); 25 } 26 27 </style> 28 </head> 29 <body> 30 <div></div> 31 </body> 32 </html>