<dialog closedby>
The closedby HTML attribute for <dialog> sets which user actions close a dialog. For example, closedby="any" allows the dialog to be closed by clicking outside of it.
Status
Limited availability
MDN documentation
Specifications
- HTML (#attr-dialog-closedby), from HTML Workstream (WHATWG).
Browser support
- Chrome 134 Released on 2025-03-04
- Chrome Android 134 Released on 2025-03-04
- Edge 134 Released on 2025-03-06
- Firefox 141 Released on 2025-07-22
- Firefox for Android 141 Released on 2025-07-22
- Safari ❌ See webkit.org/b/284592 Vendor position : support
- Safari on iOS ❌ See webkit.org/b/284592 Vendor position : support
Baseline availability blocked since July 2025 by Safari (5 months)
Developer signals
- State of HTML 2025: usage/html_interoperability_features_features_only question
- State of HTML 2025: usage/html_interoperability_features2 question
- State of HTML 2025: interactivity/interactivity_features question
- State of HTML 2025: features/all_features question
Usage (according to Chrome Platform Status)
~0.025% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper signals
Votes: 2
If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist