Skip to content

Commit 46e3e05

Browse files
James NowlandJonathan Neal
authored andcommitted
Normalize hr overflow
Address IE 8,9,10,11 setting overflow to hidden.
1 parent bb55bab commit 46e3e05

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
=== HEAD
22

33
* Address inconsistent styling of b and strong.
4+
* Correct `hr` overflow in IE 8/9/10/11 and Edge 12.
45

56
=== 3.0.3 (March 30, 2015)
67

normalize.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,15 @@ figure {
212212
}
213213

214214
/**
215-
* Address differences between Firefox and other browsers.
215+
* Address inconsistent styling of `hr`.
216+
* 1. Correct `box-sizing` set to `border-box` in Firefox.
217+
* 2. Correct `overflow` set to `hidden` in IE 8/9/10/11 and Edge 12.
216218
*/
217219

218220
hr {
219-
box-sizing: content-box;
220-
height: 0;
221+
box-sizing: content-box; /* 1 */
222+
height: 0; /* 1 */
223+
overflow: visible; /* 2 */
221224
}
222225

223226
/**

0 commit comments

Comments
 (0)