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-sizing-in-flex.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>Test of sizing customizable select inside of flex</title>
<link rel=author href="mailto:dbaron@chromium.org">
<link rel=match href="select-appearance-sizing-in-flex-ref.html">
<meta name="assert" content="The min-content size of a customizable select is a function of its content.">
<style>
.container {
display: inline-flex;
width: 15em;
}
select {
appearance: base-select;
}
select, .after {
white-space: nowrap;
}
</style>
<div class="container">
<select>
<option>First Option</option>
<option>Second Option</option>
</select>
<div class="after">The content after the select.</div>
</div>