Focus Within

Recipe 6.1 Provide focus styles

Sample:

Code:

<style>
 :is(video, audio):focus-within {
  box-shadow: 0 0 10px 3px rgb(0 0 0 / 0.2);
}
</style>

<video controls src="/media/video.mp4"></video>