[wpt-sync] Sync PR 45096 - Implement <selectedoption> for StylableSelect
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| 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: I38be4657e11dd766cef1fc974e16da173fdf829dReviewed-on: https://chromium-review.googlesource.com/5370555
WPT-Export-Revision: 8bbc3a106b7d7bb0a00d6e1fb9861560f765c0e3
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
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
Details
New Tests That Don't Pass
- /html/semantics/forms/the-select-element/stylable-select/selectedoption.tentative.html [wpt.fyi]
- The <selectedoption> element should reflect the HTML contents of the selected <option>.:
FAIL(Chrome:FAIL, Safari:FAIL)
- The <selectedoption> element should reflect the HTML contents of the selected <option>.:
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e7cf1eef8e5a
https://hg.mozilla.org/mozilla-central/rev/3c214f53da3c
Description
•