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; | |
11 } | 10 } |
12 </style> | 11 </style> |
13 <body> | 12 <body> |
14 <p>Form controls that are stretched in a column flexbox should not overflow the
flexbox.</p> | 13 <p>Form controls that are stretched in a column flexbox should not overflow the
flexbox.</p> |
15 <div class="flexbox"> | 14 <div class="flexbox"> |
16 <input> | 15 <input> |
17 </div> | 16 </div> |
18 <div class="flexbox"> | 17 <div class="flexbox"> |
19 <textarea></textarea> | 18 <textarea></textarea> |
20 </div> | 19 </div> |
21 <div class="flexbox"> | 20 <div class="flexbox"> |
22 <input type="button"> | 21 <input type="button"> |
23 </div> | 22 </div> |
24 <div class="flexbox"> | 23 <div class="flexbox"> |
25 <select></select> | 24 <select></select> |
26 </div> | 25 </div> |
27 <div class="flexbox"> | 26 <div class="flexbox"> |
28 <legend style="border: 2px solid black">legend</legend> | 27 <legend style="border: 2px solid black">legend</legend> |
29 </div> | 28 </div> |
30 <div class="flexbox"> | 29 <div class="flexbox"> |
31 <div type="border: 4px solid black; padding: 10px;"> | 30 <div type="border: 4px solid black; padding: 10px;"> |
32 </div> | 31 </div> |
33 </body> | 32 </body> |
34 </html> | 33 </html> |
OLD | NEW |