I am trying to apply dimming to the outside of an element. Unfortunately the clip and mask properties in CSS only work on images or svg paths. Here are two examples of the effect I want. I do not want to use JavaScript, only pure CSS.
Mask for video trimmer