Skip to content

Implement toggle events for dialog elements#44208

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-5238172
Sep 26, 2024
Merged

Implement toggle events for dialog elements#44208
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-5238172

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 25, 2024

This patch implements beforetoggle and toggle events for dialog
elements. See spec issue: whatwg/html#9733

Bug: 1521813
Change-Id: I56e38230663990c8f1ed8ecd9307a6a881372605
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5238172
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Keith Cirkel <chromium@keithcirkel.co.uk>
Cr-Commit-Position: refs/heads/main@{#1360795}

This patch implements beforetoggle and toggle events for dialog
elements. See spec issue: whatwg/html#9733

Bug: 1521813
Change-Id: I56e38230663990c8f1ed8ecd9307a6a881372605
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5238172
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Keith Cirkel <chromium@keithcirkel.co.uk>
Cr-Commit-Position: refs/heads/main@{#1360795}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 30fc634 into master Sep 26, 2024
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5238172 branch September 26, 2024 22:27
annevk pushed a commit to whatwg/html that referenced this pull request Nov 5, 2024
This attempts to fix #9733 by specifying that:

- A dialog's `show()` steps should dispatch a `beforetoggle` cancellable event.
- Followed by a queuing a non-cancellable `toggle` event.
- A dialog's `showModal()` steps should dispatch a `beforetoggle` cancellable event.
- Followed by a queuing non-cancellable `toggle` event.
- The "close the dialog" steps should disaptch a non-cancellable `beforetoggle` event.
- Followed by queuing a non-cancellable `toggle` event.

Tests: web-platform-tests/wpt#44208.
lozy219 pushed a commit to lozy219/html that referenced this pull request Mar 10, 2025
This attempts to fix whatwg#9733 by specifying that:

- A dialog's `show()` steps should dispatch a `beforetoggle` cancellable event.
- Followed by a queuing a non-cancellable `toggle` event.
- A dialog's `showModal()` steps should dispatch a `beforetoggle` cancellable event.
- Followed by a queuing non-cancellable `toggle` event.
- The "close the dialog" steps should disaptch a non-cancellable `beforetoggle` event.
- Followed by queuing a non-cancellable `toggle` event.

Tests: web-platform-tests/wpt#44208.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants