Partially implement dialog.showModal() (#40405)

Partially implement dialog.showModal()

Follow-ups will be needed to further implement proper dialog
functionality but this makes a good start.

Testing: Existing WPTs cover this.

---------

Signed-off-by: Luke Warlow <lwarlow@igalia.com>
This commit is contained in:
Luke Warlow
2025-11-05 15:03:13 +00:00
committed by GitHub
parent a90dff6919
commit e3c4655463
41 changed files with 215 additions and 119 deletions

View File

@@ -10,10 +10,12 @@ interface HTMLDialogElement : HTMLElement {
[CEReactions]
attribute boolean open;
attribute DOMString returnValue;
[CEReactions]
[Throws, CEReactions]
undefined show();
// [CEReactions]
// void showModal();
[Throws, CEReactions]
undefined showModal();
[CEReactions]
undefined close(optional DOMString returnValue);
// [CEReactions]
// undefined requestClose(optional DOMString returnValue);
};