How to dismiss native HTML dialog elements when the backdrop is clicked
HTML dialog elements now support easier modal dismissal with the new [closedby] attribute. While dialogs normally close via JavaScript methods, formmethod buttons, or the Esc key, they don't automatically close when users click outside the modal (light dismissal). The [closedby="any"] attribute adds this functionality without complex JavaScript calculations previously needed to determine if clicks occurred outside...