From e00d7a1fa5f393bf21cec712321f971be84ba3bc Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Mon, 16 Apr 2012 15:52:28 -0700 Subject: [PATCH] Normalize for IE8+\n\nThis commit removes support and documentation references to Internet Explorer 6 & 7 from normalize.css --- normalize.css | 118 +++++++------------------------------------------- 1 file changed, 15 insertions(+), 103 deletions(-) diff --git a/normalize.css b/normalize.css index 39e6f262c..2a72fa7f9 100644 --- a/normalize.css +++ b/normalize.css @@ -5,7 +5,7 @@ ========================================================================== */ /* - * Corrects block display not defined in IE7/8/9 & FF3 + * Corrects block display not defined in IE8/9 & FF3 */ article, @@ -23,7 +23,7 @@ summary { } /* - * Corrects inline-block display not defined in IE7/8/9 & FF3 + * Corrects inline-block display not defined in IE8/9 & FF3 */ audio, @@ -45,7 +45,7 @@ audio:not([controls]) { } /* - * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4 + * Addresses styling for 'hidden' attribute not present in IE8/9, FF3, S4 */ [hidden] { @@ -58,16 +58,13 @@ audio:not([controls]) { ========================================================================== */ /* - * 1. Corrects text resizing oddly in IE7 when body font-size is set using em units - * http://clagnut.com/blog/348/#c790 - * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom - * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ + * Prevents iOS text size adjust after orientation change, without disabling user zoom + * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */ html { - font-size: 100%; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ - -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; } /* @@ -82,14 +79,6 @@ textarea { font-family: sans-serif; } -/* - * Addresses margins handled incorrectly in IE7 - */ - -body { - margin: 0; -} - /* ============================================================================= Links @@ -119,7 +108,6 @@ a:active { ========================================================================== */ /* - * Addresses font sizes and margins set differently in IE7 * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5 */ @@ -154,7 +142,7 @@ h6 { } /* - * Addresses styling not present in IE7/8/9, S5, Chrome + * Addresses styling not present in IE8/9, S5, Chrome */ abbr[title] { @@ -183,7 +171,7 @@ dfn { } /* - * Addresses styling not present in IE7/8/9 + * Addresses styling not present in IE8/9 */ mark { @@ -191,15 +179,6 @@ mark { color: #000; } -/* - * Addresses margins set differently in IE7 - */ - -p, -pre { - margin: 1em 0; -} - /* * Corrects font family set oddly in S4/5, Chrome * en.wikipedia.org/wiki/User:Davidgothberg/Test59 @@ -224,18 +203,9 @@ pre { } /* - * 1. Addresses CSS quotes not supported in IE7 - * 2. Addresses quote property not supported in S4 + * Addresses quote property not supported in S4 */ -/* 1 */ - -q { - quotes: none; -} - -/* 2 */ - q:before, q:after { content: ''; @@ -268,59 +238,16 @@ sub { } -/* ============================================================================= - Lists - ========================================================================== */ - -/* - * Addresses margins set differently in IE7 - */ - -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -/* - * Addresses paddings set differently in IE7 - */ - -menu, -ol, -ul { - padding: 0 0 0 40px; -} - -/* - * Corrects list images handled incorrectly in IE7 - */ - -nav ul, -nav ol { - list-style: none; - list-style-image: none; -} - - /* ============================================================================= Embedded content ========================================================================== */ /* - * 1. Removes border when inside 'a' element in IE7/8/9, FF3 - * 2. Improves image quality when scaled in IE7 - * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ + * Removes border when inside 'a' element in IE8/9, FF3 */ img { - border: 0; /* 1 */ - -ms-interpolation-mode: bicubic; /* 2 */ + border: 0; } /* @@ -337,7 +264,7 @@ svg:not(:root) { ========================================================================== */ /* - * Addresses margin not present in IE7/8/9, S5, O11 + * Addresses margin not present in IE8/9, S5, O11 */ figure { @@ -349,14 +276,6 @@ figure { Forms ========================================================================== */ -/* - * Corrects margin displayed oddly in IE7 - */ - -form { - margin: 0; -} - /* * Define consistent border, margin, and padding */ @@ -368,16 +287,14 @@ fieldset { } /* - * 1. Corrects color not being inherited in IE7/8/9 + * 1. Corrects color not being inherited in IE8/9 * 2. Corrects text not wrapping in FF3 - * 3. Corrects alignment displayed oddly in IE7 */ legend { border: 0; /* 1 */ padding: 0; white-space: normal; /* 2 */ - *margin-left: -7px; /* 3 */ } /* @@ -408,7 +325,6 @@ input { /* * 1. Improves usability and consistency of cursor style between image-type 'input' and others * 2. Corrects inability to style clickable 'input' types in iOS - * 3. Removes inner spacing in IE7 without affecting normal text inputs */ button, @@ -417,7 +333,6 @@ input[type="reset"], input[type="submit"] { cursor: pointer; /* 1 */ -webkit-appearance: button; /* 2 */ - *overflow: visible; /* 3 */ } /* @@ -432,15 +347,12 @@ input[disabled] { /* * 1. Addresses box sizing set to content-box in IE8/9 * 2. Removes excess padding in IE8/9 - * 3. Removes excess padding in IE7 */ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ - *height: 13px; /* 3 */ - *width: 13px; /* 3 */ } /* @@ -476,7 +388,7 @@ input::-moz-focus-inner { } /* - * 1. Removes default vertical scrollbar in IE7/8/9 + * 1. Removes default vertical scrollbar in IE8/9 * 2. Improves readability and alignment in all browsers */