From 46e3e0554c7b81fbfa5cfa1d1531e63f860bb741 Mon Sep 17 00:00:00 2001 From: James Nowland Date: Mon, 1 Dec 2014 15:56:54 +1100 Subject: [PATCH] Normalize `hr` overflow Address IE 8,9,10,11 setting overflow to hidden. --- CHANGELOG.md | 1 + normalize.css | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f62888e..9030498 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ === HEAD * Address inconsistent styling of b and strong. +* Correct `hr` overflow in IE 8/9/10/11 and Edge 12. === 3.0.3 (March 30, 2015) diff --git a/normalize.css b/normalize.css index 2eee4fb..e3061d4 100644 --- a/normalize.css +++ b/normalize.css @@ -212,12 +212,15 @@ figure { } /** - * Address differences between Firefox and other browsers. + * Address inconsistent styling of `hr`. + * 1. Correct `box-sizing` set to `border-box` in Firefox. + * 2. Correct `overflow` set to `hidden` in IE 8/9/10/11 and Edge 12. */ hr { - box-sizing: content-box; - height: 0; + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ } /**