Mrs. Lastri’s stencil over a cloth: a mask-image from a gradient or a kawung SVG, with and without the -webkit- prefix, and elementFromPoint answers whether…
A list that fades at the bottom, soft carousel edges, a spotlight, a vignette, a pattern: all plain CSS, no new image exports. Knowing that a mask reads alpha (or brightness, with luminance) and only decides the painting (the click area stays the whole box) tells you when to use a mask, when clip-path, when opacity.
A mask is read by its alpha, and it only decides the painting
-webkit-mask-image. Write both (as the scene’s code does); an unknown one is dropped, a known one used.clip-path cuts a shape: its edge is always hard, with no half see-through. A fading edge needs graded alpha, and that is mask-image with a gradient. The other way round, if the hidden part must not catch clicks, a mask alone is not enough: add clip-path.<mask> reads brightness (luminance), while gradients and images in mask-image are read by their alpha. A white-black mask needs mask-mode: luminance, or rewrite it with black and transparent.mask-image Say linear-gradient(to right, transparent, black 20% 80%, transparent). See how the browser rewrites the value under the field.mask-mode to luminance In alpha everything shows (white and black are both opaque). In luminance white shows, black hides.mask-size and keep repeat The mask becomes a repeated tile, just like a background. Try the kawung stencil.