CSS mask-image Playground

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…

Why it matters

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.

The key idea

A mask is read by its alpha, and it only decides the painting

Common mistakes

Try it in this playground