Add documentation of new dialog light dismiss behaviors #37196
Labels
Content:HTML
Hypertext Markup Language docs
effort: medium
This task is a medium effort.
waiting for implementations
Waiting for feature to be implemented in browsers
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
There are new dialog behaviors, proposed here:
whatwg/html#10737
Specifically, a
closedby
attribute can be used to enable "light dismiss" behaviors for<dialog>
, akin to popovers. Also, a newdialog.requestClose()
method allows a programmatic request to close the dialog, which goes through the cancel/close process.What did you expect to see?
Documentation
Do you have any supporting links, references, or citations?
whatwg/html#10737
Do you have anything more you want to share?
I'm hoping to ship this in Chrome M134, pending approvals, etc.
The text was updated successfully, but these errors were encountered: