Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / percent-height-auto-width-form-controls.html
blob60e579f42d8413b4f421cc3ff4e9c0459b39a3ef
1 <!DOCTYPE html>
2 <p>The form controls of the same type below should be the same width.</p>
4 <div style="width: 100px; background: pink">
5 <table><tbody><tr><td>
6 <input id="text-a" style="height: 100%">
7 </td></tr></tbody></table>
8 </div>
10 <div style="width: 100px; background: pink">
11 <table><tbody><tr><td>
12 <input id="text-b">
13 </td></tr></tbody></table>
14 </div>
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>
20 </div>
22 <div style="width: 100px; background: pink">
23 <table><tbody><tr><td>
24 <input id="file-b" type=file>
25 </td></tr></tbody></table>
26 </div>
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>
32 </div>
34 <div style="width: 100px; background: pink">
35 <table><tbody><tr><td>
36 <input id="range-b" type=range>
37 </td></tr></tbody></table>
38 </div>
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>
44 </div>
46 <div style="width: 100px; background: pink">
47 <table><tbody><tr><td>
48 <select id="select-b"><option>aaaaaaaaaaaaaaaaaaaaaaaaa
49 </td></tr></tbody></table>
50 </div>
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>
56 </div>
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>
62 </div>
64 <script src="../../resources/js-test.js"></script>
65 <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');
70 </script>