Closed Bug 1885236 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 45096 - Implement <selectedoption> for StylableSelect

Categories

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

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Joey Arhar <jarhar@chromium.org> wrote:

Implement <selectedoption> for StylableSelect

This patch adds support for the \<selectedoption> element to \<select>.
The \<selectedoption> element replaces its innerHTML with the ancestor
\<select>'s selected \<option>s innerHTML whenever the selected \<option>
changes.

This patch implements it using a SynchronousMutationObserver with an
IsDescendantOf check, which might be slow. It could be worth combining
it with a SynchronousMutationObserver in HTMLSelectElement like
HTMLSelectListElement does, but this element will likely be specced and
shipped after StylableSelect or not get shipped at all, so I think at
least for now it is worth having a separate SynchronousMutationObserver
like this.

Bug: 1511354
Change-Id: I38be4657e11dd766cef1fc974e16da173fdf829d

Reviewed-on: https://chromium-review.googlesource.com/5370555
WPT-Export-Revision: 8bbc3a106b7d7bb0a00d6e1fb9861560f765c0e3

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

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7cf1eef8e5a [wpt PR 45096] - Implement <selectedoption> for StylableSelect, a=testonly https://hg.mozilla.org/integration/autoland/rev/3c214f53da3c [wpt PR 45096] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.