Intent to Prototype: Dialog light dismiss

91 views
Skip to first unread message

Mason Freed

unread,
Oct 31, 2024, 12:51:48 PMOct 31
to blink-dev

Contact emails

mas...@chromium.org

Explainer

None

Specification

None

Summary

One of the nice features of the Popover API is its light dismiss behavior. This chromestatus is about bringing that same capability to `<dialog>`. A new `closedby` attribute controls behavior: `<dialog closedby=none>` - no user-triggered closing of dialogs at all. `<dialog closedby=closerequest>` - user pressing ESC (or other close trigger) closes the dialog `<dialog closedby=any>` - user clicking outside the dialog, or pressing ESC, closes the dialog. Akin to `popover=auto` behavior.



Blink component

Blink>DOM

Motivation

None



Initial public proposal

https://github.com/whatwg/html/issues/9373

Search tags

dialoglight dismiss

TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

None



Gecko: No signal (https://github.com/mozilla/standards-positions/issues/998)

WebKit: No signal (https://github.com/WebKit/standards-positions/issues/329)

Web developers: Strongly positive

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

Yes

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://crbug.com/376516550

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5097714453577728?gate=5203206198788096

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages