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

Skip to content

Commit

Permalink
Add test for button in option element.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketj committed Jul 29, 2024
1 parent f73b2dd commit f9f10ec
Showing 1 changed file with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<html>
<head>
<style>
option > button {
background-color: transparent;
border: none;
cursor: pointer;
font-size: 16px;
padding: 0;
}
</style>
</head>
<body>
Non-stylable select:
<select>
<button>
<selectedoption></selectedoption>
</button>
<datalist>
<option>
<button>❤️heart</button>
</option>
<option>
<button>🙂smile</button>
</option>
</datalist>
</select>
<br>
<br>
Stylable select:
<select style="appearance:base-select">
<!-- <button>
<selectedoption></selectedoption>
</button> -->
<datalist>
<option>
<button>❤️heart</button>
</option>
<option>
<button>🙂smile</button>
</option>
</datalist>
</select>
</body>
</html>

0 comments on commit f9f10ec

Please sign in to comment.