Skip to content

Commit

Permalink
Bug 1928139 [wpt PR 48887] - Disable selectedoption inside option, a=…
Browse files Browse the repository at this point in the history
…testonly

Automatic update from web-platform-tests
Disable selectedoption inside option

This patch prevents an infinite loop due to putting a selectedoption
inside of an option element. This case was pointed out here:
openui/open-ui#1120

Change-Id: I794e49b5c5d28773ce4684fc3a829365667fe138
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5975638
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Traian Captan <tcaptan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1375889}

--

wpt-commits: 77665be0abf23117db6596f618be29dc416fdd13
wpt-pr: 48887
  • Loading branch information
josepharhar authored and moz-wptsync-bot committed Oct 31, 2024
1 parent 9f02316 commit ead5827
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://github.com/openui/open-ui/issues/1120">

<style>
select,::picker(select) {
appearance: base-select;
}
</style>

<select>
<button>
<selectedoption></selectedoption>
</button>
<option>one
<selectedoption></selectedoption>
</option>
<option>two</option>
</select>

0 comments on commit ead5827

Please sign in to comment.