File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -279,17 +279,18 @@ legend {
279
279
}
280
280
281
281
/**
282
- * 1. Correct font family not being inherited in all browsers.
283
- * 2. Correct font size not being inherited in all browsers.
282
+ * 1. Correct color not being inherited in all browsers.
283
+ * Known issue: `select` will not inherit color in Chrome and Safari on OS X.
284
+ * 2. Correct font properties not being inherited in all browsers.
284
285
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
285
286
*/
286
287
287
288
button ,
288
289
input ,
289
290
select ,
290
291
textarea {
291
- font-family : inherit; /* 1 */
292
- font-size : 100 % ; /* 2 */
292
+ color : inherit; /* 1 */
293
+ font : inherit ; /* 2 */
293
294
margin : 0 ; /* 3 */
294
295
}
295
296
Original file line number Diff line number Diff line change @@ -275,6 +275,15 @@ <h1>Forms</h1>
275
275
</ fieldset >
276
276
</ div >
277
277
278
+ < fieldset style ="color: green ">
279
+ < legend > Color inheritance</ legend >
280
+ < p > < label > Text input < input type ="text " value ="should be green "> </ label > </ p >
281
+ < p > < label > Email input < input type ="email "> </ label > </ p >
282
+ < p > < label > Search input < input type ="search "> </ label > </ p >
283
+ < p > < label > Select field < select > < option > Option 01</ option > < option > Option 02</ option > </ select > </ label > </ p >
284
+ < p > < label > Textarea < textarea cols ="30 " rows ="5 " > Textarea text</ textarea > </ label > </ p >
285
+ </ fieldset >
286
+
278
287
< fieldset >
279
288
< legend > Inputs as descendents of labels (form legend). This doubles up as a long legend that can test word wrapping.</ legend >
280
289
< p > < label > Text input < input type ="text " value ="default value that goes on and on without stopping or punctuation "> </ label > </ p >
You can’t perform that action at this time.
0 commit comments