merge_pr_60224
Update selectedcontent element after moving steps
Before this patch, the selectedcontent element would not get its
contents updated when using Node.moveBefore() to move options or
selectedcontent elements in between select elements.
Since we should not modify the DOM during a move operation, microtasks
are used to defer the modifications.
Bug: 458113204
Change-Id: I0d9484382ae9046ec1bd1db8a6f94d057a22f4ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7843509
Reviewed-by: Mason Freed masonf@chromium.org
Reviewed-by: Joey Arhar jarhar@chromium.org
Commit-Queue: Joey Arhar jarhar@chromium.org
Cr-Commit-Position: refs/heads/main@{#1637299}