2 <p>The form controls of the same type below should be the same width.
</p>
4 <div style=
"width: 100px; background: pink">
6 <input id=
"text-a" style=
"height: 100%">
7 </td></tr></tbody></table>
10 <div style=
"width: 100px; background: pink">
11 <table><tbody><tr><td>
13 </td></tr></tbody></table>
16 <div style=
"width: 100px; background: pink">
17 <table><tbody><tr><td>
18 <input id=
"file-a" type=file
style=
"height: 100%">
19 </td></tr></tbody></table>
22 <div style=
"width: 100px; background: pink">
23 <table><tbody><tr><td>
24 <input id=
"file-b" type=file
>
25 </td></tr></tbody></table>
28 <div style=
"width: 100px; background: pink">
29 <table><tbody><tr><td>
30 <input id=
"range-a" type=range
style=
"height: 100%">
31 </td></tr></tbody></table>
34 <div style=
"width: 100px; background: pink">
35 <table><tbody><tr><td>
36 <input id=
"range-b" type=range
>
37 </td></tr></tbody></table>
40 <div style=
"width: 100px; background: pink">
41 <table><tbody><tr><td>
42 <select id=
"select-a" style=
"height: 100%"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
43 </td></tr></tbody></table>
46 <div style=
"width: 100px; background: pink">
47 <table><tbody><tr><td>
48 <select id=
"select-b"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
49 </td></tr></tbody></table>
52 <div style=
"width: 100px; background: pink">
53 <table><tbody><tr><td>
54 <select id=
"multiple-a" multiple
style=
"height: 100%"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
55 </td></tr></tbody></table>
58 <div style=
"width: 100px; background: pink">
59 <table><tbody><tr><td>
60 <select id=
"multiple-b" multiple
><option>aaaaaaaaaaaaaaaaaaaaaaaaa
61 </td></tr></tbody></table>
64 <script src=
"../../resources/js-test.js"></script>
66 var ids
= ['text', 'file', 'range', 'select', 'multiple'];
67 ids
.forEach(function(id
) {
68 shouldBe('document.getElementById("' + id
+ '-a").offsetWidth', 'document.getElementById("' + id
+ '-b").offsetWidth');