Nothing Special   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
Add test for select element with image in button.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketj committed Jul 22, 2024
1 parent 4c107dc commit e139e2f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions controls/select-element/image-in-select-dropdown-and-button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<html>
<head>
<style>
</style>
</head>
<body>
Non-stylable select:
<select>
<button>
<selectedoption></selectedoption>
</button>
<datalist>
<option>
<img src="test.jpg" alt="test" height="15px" width="15px">
❤️heart
</option>
<option>
🙂smile
</option>
</datalist>
</select>
<br>
<br>
Stylable select:
<select style="appearance:base-select">
<button>
<selectedoption></selectedoption>
</button>
<datalist>
<option>
<img src="test.jpg" alt="test" height="15px" width="15px">
❤️heart
</option>
<option>
🙂smile
</option>
</datalist>
</select>
</body>
</html>

0 comments on commit e139e2f

Please sign in to comment.