OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link rel="stylesheet" href="resources/flexbox.css"> | 3 <link rel="stylesheet" href="resources/flexbox.css"> |
4 <style> | 4 <style> |
5 .flexbox { | 5 .flexbox { |
6 background-color: grey; | 6 background-color: grey; |
7 } | 7 } |
8 .flexbox > * { | 8 .flexbox > * { |
9 -webkit-flex: 1; | 9 flex: 1; |
10 -moz-flex: 1; | 10 -moz-flex: 1; |
11 } | 11 } |
12 </style> | 12 </style> |
13 <body> | 13 <body> |
14 <p>Form controls that are stretched in a column flexbox should not overflow the
flexbox.</p> | 14 <p>Form controls that are stretched in a column flexbox should not overflow the
flexbox.</p> |
15 <div class="flexbox"> | 15 <div class="flexbox"> |
16 <input> | 16 <input> |
17 </div> | 17 </div> |
18 <div class="flexbox"> | 18 <div class="flexbox"> |
19 <textarea></textarea> | 19 <textarea></textarea> |
20 </div> | 20 </div> |
21 <div class="flexbox"> | 21 <div class="flexbox"> |
22 <input type="button"> | 22 <input type="button"> |
23 </div> | 23 </div> |
24 <div class="flexbox"> | 24 <div class="flexbox"> |
25 <select></select> | 25 <select></select> |
26 </div> | 26 </div> |
27 <div class="flexbox"> | 27 <div class="flexbox"> |
28 <legend style="border: 2px solid black">legend</legend> | 28 <legend style="border: 2px solid black">legend</legend> |
29 </div> | 29 </div> |
30 <div class="flexbox"> | 30 <div class="flexbox"> |
31 <div type="border: 4px solid black; padding: 10px;"> | 31 <div type="border: 4px solid black; padding: 10px;"> |
32 </div> | 32 </div> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |