Skip to content

Commit a51697a

Browse files
committed
Normalize hr
Firefox uses different `box-sizing` and `height` values to all other browsers. Firefox doesn't currently support `box-sizing` without the `-moz-` prefix, so we use both the vendor-prefixed and unprefixed properties to ensure that it matches the `content-box` value of other browsers. It also requires the `height` to be set to `0`. Known issue: this does not normalize IE 6/7 as `hr` cannot be reliably styled in those browsers.
1 parent b1ac8a4 commit a51697a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

normalize.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,17 @@ dfn {
182182
font-style: italic;
183183
}
184184

185+
/**
186+
* Address differences between Firefox and other browsers.
187+
* Known issue: no IE 6/7 normalization.
188+
*/
189+
190+
hr {
191+
-moz-box-sizing: content-box;
192+
box-sizing: content-box;
193+
height: 0;
194+
}
195+
185196
/**
186197
* Address styling not present in IE 6/7/8/9.
187198
*/

0 commit comments

Comments
 (0)