mask-image-inline-sliced-1.html (748B)
1 <!DOCTYPE html> 2 <title>'box-decoration-break: slice' and 'mask-image'</title> 3 <meta name="flags" content="ahem"> 4 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 5 <link rel="help" href="https://www.w3.org/TR/css-break-3/#break-decoration"> 6 <link rel="help" href="https://drafts.fxtf.org/css-masking/#the-mask-image"> 7 <link rel="match" href="reference/mask-image-inline-sliced-1-ref.html"> 8 <style> 9 .mask-image { 10 font: 100px/1 Ahem; 11 color: green; 12 -webkit-mask-image: linear-gradient(to right, white 50%, transparent 50%); 13 mask-image: linear-gradient(to right, white 50%, transparent 50%); 14 } 15 </style> 16 <p>There should be a green square below.</p> 17 <div style="width: 100px"> 18 <span class="mask-image">A A</span> 19 </div>