Skip to content

Commit

Permalink
Disable selectedoption inside option
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Traian Captan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1375889}
  • Loading branch information
josepharhar authored and chromium-wpt-export-bot committed Oct 30, 2024
1 parent 677bac2 commit 0bcb0f6
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:[email protected]">
<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 0bcb0f6

Please sign in to comment.