LibWeb: Light dismiss dialogs on click

This commit is contained in:
Gingeh
2025-04-29 09:44:49 +10:00
committed by Andrew Kaster
parent 1f1884da54
commit aa9f556500
Notes: github-actions[bot] 2025-04-29 01:43:02 +00:00
9 changed files with 217 additions and 7 deletions

View File

@@ -1,5 +1,12 @@
#import <HTML/HTMLElement.idl>
[MissingValueDefault=auto, InvalidValueDefault=auto]
enum ClosedByAttribute {
"any",
"closerequest",
"none"
};
// https://html.spec.whatwg.org/multipage/semantics.html#htmldialogelement
[Exposed=Window]
interface HTMLDialogElement : HTMLElement {
@@ -8,7 +15,7 @@ interface HTMLDialogElement : HTMLElement {
[CEReactions, Reflect] attribute boolean open;
attribute DOMString returnValue;
[FIXME, CEReactions] attribute DOMString closedBy;
[CEReactions, Reflect=closedby, Enumerated=ClosedByAttribute] attribute DOMString closedBy;
[CEReactions] undefined show();
[CEReactions] undefined showModal();
[CEReactions] undefined close(optional DOMString returnValue);