Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/the-select-element/customizable-select/select-appearance-base-display.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS display is honored on select with appearance: base-select</title>
<link rel=author title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel=match href="select-appearance-base-display-ref.html">
<style>
select {
width: 200px;
display: flex;
justify-content: end;
border-radius: 0;
font: inherit;
color: inherit;
background: transparent;
border: 1px solid;
padding: 0;
min-height: 0;
}
.base {
appearance: base-select;
appearance: base;
}
.none {
appearance: none;
}
select::picker-icon {
display: none;
}
</style>
<select class="base">
<option>XXX</option>
</select>
<select class="none">
<option>XXX</option>
</select>