Fix optgroup normalization and add test

Ref gh-102
This commit is contained in:
Nicolas Gallagher 2014-01-15 16:45:04 -08:00
parent 3d3096db74
commit 5b9bf5e1a3
2 changed files with 16 additions and 0 deletions

9
normalize.css vendored
View File

@ -296,6 +296,15 @@ textarea {
margin: 0; /* 3 */
}
/**
* Re-apply the `font-weight` to avoid modifying the default UX, and because
* the default cannot be changed in Chrome and Safari on OS X.
*/
optgroup {
font-weight: bold;
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.

View File

@ -300,6 +300,13 @@
<p><label><input type="checkbox"> Checkbox input</label></p>
<p><label>Select field <select><option>Option 01</option><option>Option 02</option></select></label></p>
<p><label>Select with optgroup
<select>
<optgroup label="Optgroup label">
<option>Option 01</option>
<option>Option 02</option>
</select>
</label></p>
<p><label>Textarea <textarea cols="30" rows="5" >Textarea text</textarea></label></p>
</fieldset>