commit 1e617d2314c99bc3aa392f82d1b4fa3192baf76a
parent bccf4aeee31b4a39379621adc20b067f9a47dae4
Author: Joey Arhar <jarhar@chromium.org>
Date: Fri, 26 Sep 2025 21:28:08 +0000
Bug 1989469 [wpt PR 54940] - Stop making appearance:base-select submit form on enter, a=testonly
Automatic update from web-platform-tests
Stop making appearance:base-select submit form on enter
When customizable select was going to be a new element, we decided on
the enter form submission behavior here:
https://github.com/openui/open-ui/issues/386
It got negative feedback in the attached bug since customizable select
now reuses the select element, so this patch reverts the behavior and
makes it do the same thing as appearance:auto select.
Fixed: 429647164
Change-Id: Ia40a309270d8f34123c5f697f583ae982eebd24d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6959790
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1520122}
--
wpt-commits: d2237d464332c35f78afb7f178e3dd44732cdbf1
wpt-pr: 54940
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-keyboard-behavior.optional.html b/testing/web-platform/tests/html/semantics/forms/the-select-element/customizable-select/select-keyboard-behavior.optional.html
@@ -140,7 +140,7 @@ for (const id of ['defaultbutton', 'custombutton']) {
}, {once: true});
await test_driver.send_keys(select, Enter);
await new Promise(requestAnimationFrame);
- assert_true(formWasSubmitted,
+ assert_false(formWasSubmitted,
'Enter should submit the form when the listbox is closed.');
assert_false(select.matches(':open'),
'Enter should not open the listbox when it is in a form.');