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-auto-button.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>The first child button supplies the label and the width of a select with appearance:auto</title>
<link rel=match href=select-appearance-auto-button-ref.html>
<p><select><button>Foo</button><option>One</option></select>
<p><select><button><span>Foo</span></button><option>One</option></select>
<p><select><button><img src=/images/blue.png alt="">Foo</button><option>One</option></select>
<p><select><button><script>"NotShown"</script>Foo</button><option>One</option></select>
<p><select><button>Foo   Bar</button><option>One</option></select>
<p><select><button><selectedcontent></selectedcontent></button><option>Foo</option><option>Two</option></select>
<p><select><button>Pre <selectedcontent></selectedcontent></button><option>Foo</option><option>Two</option></select>
<p><select><button><span><selectedcontent></selectedcontent></span></button><option>Foo</option><option>Two</option></select>
<p><select><button>Empty <selectedcontent></selectedcontent></button></select>
<p><select><button>VeryLongButtonLabel</button><option>S</option></select>
<p><select><button><selectedcontent></selectedcontent></button><option>S</option><option>VeryLongOptionLabel</option></select>