File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,15 @@ textarea {
296296 margin : 0 ; /* 3 */
297297}
298298
299+ /**
300+ * Re-apply the `font-weight` to avoid modifying the default UX, and because
301+ * the default cannot be changed in Chrome and Safari on OS X.
302+ */
303+
304+ optgroup {
305+ font-weight : bold;
306+ }
307+
299308/**
300309 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
301310 * the UA stylesheet.
Original file line number Diff line number Diff line change @@ -300,6 +300,13 @@ <h1>Forms</h1>
300300 < p > < label > < input type ="checkbox "> Checkbox input</ label > </ p >
301301
302302 < p > < label > Select field < select > < option > Option 01</ option > < option > Option 02</ option > </ select > </ label > </ p >
303+ < p > < label > Select with optgroup
304+ < select >
305+ < optgroup label ="Optgroup label ">
306+ < option > Option 01</ option >
307+ < option > Option 02</ option >
308+ </ select >
309+ </ label > </ p >
303310 < p > < label > Textarea < textarea cols ="30 " rows ="5 " > Textarea text</ textarea > </ label > </ p >
304311 </ fieldset >
305312
You can’t perform that action at this time.
0 commit comments