chromium/third_party/blink/web_tests/fast/forms/percent-height-auto-width-form-controls.html

<!DOCTYPE html>
<p>The form controls of the same type below should be the same width.</p>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <input id="text-a" style="height: 100%">
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <input id="text-b">
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <input id="file-a" type=file style="height: 100%">
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <input id="file-b" type=file>
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <input id="range-a" type=range style="height: 100%">
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <input id="range-b" type=range>
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <select id="select-a" style="-webkit-appearance:menulist-button; height: 100%"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <select id="select-b" style="-webkit-appearance:menulist-button;"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <select id="multiple-a" multiple style="height: 100%"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
    </td></tr></tbody></table>
</div>

<div style="width: 100px; background: pink">
    <table><tbody><tr><td>
        <select id="multiple-b" multiple><option>aaaaaaaaaaaaaaaaaaaaaaaaa
    </td></tr></tbody></table>
</div>

<script src="../../resources/js-test.js"></script>
<script>
var ids = ['text', 'file', 'range', 'select', 'multiple'];
ids.forEach(function(id) {
    shouldBe('document.getElementById("' + id + '-a").offsetWidth', 'document.getElementById("' + id + '-b").offsetWidth');
})
</script>