Closed Bug 1746305 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 32099 - [SelectMenu] Add support for reset.

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 32099 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/32099
Details from upstream follow.

Ionel Popescu <iopopesc@microsoft.com> wrote:

[SelectMenu] Add support for reset.

The reset algorithm for selectmenu elements is to go through all the
option elements in the element's list of options, set their selectedness
to true if the option element has a selected attribute, and false
otherwise, set their dirtiness to false, and run the steps to reset
the selected option for the selectmenu.

To reset the default selected option:

  • if no option is selected, set the selection to the first non-disabled
    option if it exists, or null otherwise
  • if two or more options are selected, set the selection to the last
    selected option

Bug: 1121840
Change-Id: I5fa981c869a75cd933e60d0f0dbc5999ff3223c5
Reviewed-on: https://chromium-review.googlesource.com/3343646
WPT-Export-Revision: be076be550cbd88ac13684c36bf2e4f22e185d3b

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 4 subtests

Status Summary

Firefox

OK : 1
FAIL: 4

Chrome

OK : 1
PASS: 3
FAIL: 1

Safari

OK : 1
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/forms/the-selectmenu-element/selectmenu-ask-for-reset.html
ask-for-reset when removing option: FAIL (Chrome: PASS, Safari: FAIL)
ask-for-reset when inserting option: FAIL (Chrome: PASS, Safari: FAIL)
ask-for-reset when changing selectedness of option: FAIL (Chrome: FAIL, Safari: FAIL)
ask-for-reset for form: FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b318bb731fe9
[wpt PR 32099] - [SelectMenu] Add support for reset., a=testonly
https://hg.mozilla.org/integration/autoland/rev/044f4b6dae54
[wpt PR 32099] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.