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 {
279279}
280280
281281/**
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.
284285 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
285286 */
286287
287288button ,
288289input ,
289290select ,
290291textarea {
291- font-family : inherit; /* 1 */
292- font-size : 100 % ; /* 2 */
292+ color : inherit; /* 1 */
293+ font : inherit ; /* 2 */
293294 margin : 0 ; /* 3 */
294295}
295296
Original file line number Diff line number Diff line change @@ -275,6 +275,15 @@ <h1>Forms</h1>
275275 </ fieldset >
276276 </ div >
277277
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+
278287 < fieldset >
279288 < legend > Inputs as descendents of labels (form legend). This doubles up as a long legend that can test word wrapping.</ legend >
280289 < 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