Skip to content

Commit

Permalink
Normalize for IE8+\n\nThis commit removes support and documentation r…
Browse files Browse the repository at this point in the history
…eferences to Internet Explorer 6 & 7 from normalize.css
  • Loading branch information
Jonathan Neal committed Apr 16, 2012
1 parent ec330d5 commit e00d7a1
Showing 1 changed file with 15 additions and 103 deletions.
118 changes: 15 additions & 103 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
========================================================================== */

/*
* Corrects block display not defined in IE7/8/9 & FF3
* Corrects block display not defined in IE8/9 & FF3
*/

article,
Expand All @@ -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,
Expand All @@ -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] {
Expand All @@ -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%;
}

/*
Expand All @@ -82,14 +79,6 @@ textarea {
font-family: sans-serif;
}

/*
* Addresses margins handled incorrectly in IE7
*/

body {
margin: 0;
}


/* =============================================================================
Links
Expand Down Expand Up @@ -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
*/

Expand Down Expand Up @@ -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] {
Expand Down Expand Up @@ -183,23 +171,14 @@ dfn {
}

/*
* Addresses styling not present in IE7/8/9
* Addresses styling not present in IE8/9
*/

mark {
background: #ff0;
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
Expand All @@ -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: '';
Expand Down Expand Up @@ -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;
}

/*
Expand All @@ -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 {
Expand All @@ -349,14 +276,6 @@ figure {
Forms
========================================================================== */

/*
* Corrects margin displayed oddly in IE7
*/

form {
margin: 0;
}

/*
* Define consistent border, margin, and padding
*/
Expand All @@ -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 */
}

/*
Expand Down Expand Up @@ -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,
Expand All @@ -417,7 +333,6 @@ input[type="reset"],
input[type="submit"] {
cursor: pointer; /* 1 */
-webkit-appearance: button; /* 2 */
*overflow: visible; /* 3 */
}

/*
Expand All @@ -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 */
}

/*
Expand Down Expand Up @@ -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
*/

Expand Down

0 comments on commit e00d7a1

Please sign in to comment.