From 7e014980b9155c8ef77b6d08c2ac352382a095b5 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 16 Aug 2012 22:34:39 +0100 Subject: [PATCH 01/86] Drop legacy browser support No longer supports IE 6/7, Firefox < 4, and Safari < 5. * Make use of `inherit` to simplify some of the rules. * Remove a lot of padding and margin normalization, particularly for typographic elements, because modern browsers share common base styles. * Add `quotes` normalization. While all target browsers support `quotes`, they don't share a common set of quote styles. Opera and IE use "curly" quotes whereas other browsers do not. Browsers don't appear to set different quotes depending on the language (via the `lang` attribute) of the content. * Remove all list normalizations and they aren't needed anymore. * Remove a handful of form normalizations that targetted IE 6/7 or Firefox 3. --- CHANGELOG.md | 9 +++ README.md | 8 +-- normalize.css | 187 ++++++++------------------------------------------ 3 files changed, 43 insertions(+), 161 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0063eee02..7466d0558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +== HEAD + +* Remove legacy browser form normalizations. +* Remove all list normalizations. +* Add `quotes` normalizations. +* Remove all heading normalizations except `h1` font size. +* Form elements automatically inherit `font-family` from ancestor. +* Drop support for IE 6/7, Firefox < 4, and Safari < 5. + == 1.0.1 (August 19, 2012) * Adjust `small` font size normalization. diff --git a/README.md b/README.md index 589a3c3ed..60318ce3e 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,10 @@ override the defaults later in your CSS. ## Browser support * Google Chrome -* Mozilla Firefox 3+ -* Apple Safari 4+ -* Opera 10+ -* Internet Explorer 6+ +* Mozilla Firefox 4+ +* Apple Safari 5+ +* Opera 12+ +* Internet Explorer 8+ ## Contribute diff --git a/normalize.css b/normalize.css index d4210aac2..2223b5b77 100644 --- a/normalize.css +++ b/normalize.css @@ -5,7 +5,7 @@ ========================================================================== */ /* - * Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3. + * Corrects `block` display not defined in IE 8/9. */ article, @@ -23,7 +23,7 @@ summary { } /* - * Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. + * Corrects `inline-block` display not defined in IE 8/9. */ audio, @@ -45,9 +45,7 @@ audio:not([controls]) { } /* - * Addresses styling for `hidden` attribute not present in IE 7/8/9, Firefox 3, - * and Safari 4. - * Known issue: no IE 6 support. + * Addresses styling for `hidden` attribute not present in IE 8/9. */ [hidden] { @@ -59,33 +57,19 @@ audio:not([controls]) { ========================================================================== */ /* - * 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using - * `em` units. + * 1. Sets default font family to sans-serif. * 2. Prevents iOS text size adjust after orientation change, without disabling * user zoom. */ html { - font-size: 100%; /* 1 */ + font-family: sans-serif; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ -ms-text-size-adjust: 100%; /* 2 */ } /* - * Addresses `font-family` inconsistency between `textarea` and other form - * elements. - */ - -html, -button, -input, -select, -textarea { - font-family: sans-serif; -} - -/* - * Addresses margins handled incorrectly in IE 6/7. + * Removes default margin. */ body { @@ -118,43 +102,16 @@ a:hover { ========================================================================== */ /* - * Addresses font sizes and margins set differently in IE 6/7. - * Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5, - * and Chrome. + * Addresses `h1` font sizes within `section` and `article` in Firefox 4+, + * Safari 5, and Chrome. */ h1 { font-size: 2em; - margin: 0.67em 0; -} - -h2 { - font-size: 1.5em; - margin: 0.83em 0; -} - -h3 { - font-size: 1.17em; - margin: 1em 0; -} - -h4 { - font-size: 1em; - margin: 1.33em 0; -} - -h5 { - font-size: 0.83em; - margin: 1.67em 0; -} - -h6 { - font-size: 0.75em; - margin: 2.33em 0; } /* - * Addresses styling not present in IE 7/8/9, Safari 5, and Chrome. + * Addresses styling not present in IE 8/9, Safari 5, and Chrome. */ abbr[title] { @@ -162,7 +119,7 @@ abbr[title] { } /* - * Addresses style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. + * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */ b, @@ -170,10 +127,6 @@ strong { font-weight: bold; } -blockquote { - margin: 1em 40px; -} - /* * Addresses styling not present in Safari 5 and Chrome. */ @@ -183,7 +136,7 @@ dfn { } /* - * Addresses styling not present in IE 6/7/8/9. + * Addresses styling not present in IE 8/9. */ mark { @@ -191,17 +144,9 @@ mark { color: #000; } -/* - * Addresses margins set differently in IE 6/7. - */ - -p, -pre { - margin: 1em 0; -} /* - * Corrects font family set oddly in IE 6, Safari 4/5, and Chrome. + * Corrects font family set oddly in Safari 5 and Chrome. */ code, @@ -209,7 +154,6 @@ kbd, pre, samp { font-family: monospace, serif; - _font-family: 'courier new', monospace; font-size: 1em; } @@ -224,21 +168,11 @@ pre { } /* - * Addresses CSS quotes not supported in IE 6/7. + * Sets consistent quote types. */ q { - quotes: none; -} - -/* - * Addresses `quotes` property not supported in Safari 4. - */ - -q:before, -q:after { - content: ''; - content: none; + quotes: "\201C" "\201D" "\2018" "\2019"; } /* @@ -269,57 +203,16 @@ sub { bottom: -0.25em; } -/* ========================================================================== - Lists - ========================================================================== */ - -/* - * Addresses margins set differently in IE 6/7. - */ - -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -/* - * Addresses paddings set differently in IE 6/7. - */ - -menu, -ol, -ul { - padding: 0 0 0 40px; -} - -/* - * Corrects list images handled incorrectly in IE 7. - */ - -nav ul, -nav ol { - list-style: none; - list-style-image: none; -} - /* ========================================================================== Embedded content ========================================================================== */ /* - * 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3. - * 2. Improves image quality when scaled in IE 7. + * Removes border when inside `a` element in IE 8/9. */ img { - border: 0; /* 1 */ - -ms-interpolation-mode: bicubic; /* 2 */ + border: 0; } /* @@ -335,7 +228,7 @@ svg:not(:root) { ========================================================================== */ /* - * Addresses margin not present in IE 6/7/8/9, Safari 5, and Opera 11. + * Addresses margin not present in IE 8/9 and Safari 5. */ figure { @@ -346,14 +239,6 @@ figure { Forms ========================================================================== */ -/* - * Corrects margin displayed oddly in IE 6/7. - */ - -form { - margin: 0; -} - /* * Define consistent border, margin, and padding. */ @@ -365,37 +250,32 @@ fieldset { } /* - * 1. Corrects color not being inherited in IE 6/7/8/9. - * 2. Corrects text not wrapping in Firefox 3. - * 3. Corrects alignment displayed oddly in IE 6/7. + * 1. Corrects color not being inherited in IE 8/9. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. */ legend { border: 0; /* 1 */ - padding: 0; - white-space: normal; /* 2 */ - *margin-left: -7px; /* 3 */ + padding: 0; /* 2 */ } /* - * 1. Corrects font size not being inherited in all browsers. - * 2. Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5, - * and Chrome. - * 3. Improves appearance and consistency in all browsers. + * 1. Corrects font family not being inherited in all browsers. + * 2. Corrects font size not being inherited in all browsers. + * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome */ button, input, select, textarea { - font-size: 100%; /* 1 */ - margin: 0; /* 2 */ - vertical-align: baseline; /* 3 */ - *vertical-align: middle; /* 3 */ + font-family: inherit; /* 1 */ + font-size: 100%; /* 2 */ + margin: 0; /* 3 */ } /* - * Addresses Firefox 3+ setting `line-height` on `input` using `!important` in + * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */ @@ -410,8 +290,6 @@ input { * 2. Corrects inability to style clickable `input` types in iOS. * 3. Improves usability and consistency of cursor style between image-type * `input` and others. - * 4. Removes inner spacing in IE 7 without affecting normal text inputs. - * Known issue: inner spacing remains in IE 6. */ button, @@ -420,7 +298,6 @@ input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ - *overflow: visible; /* 4 */ } /* @@ -433,18 +310,14 @@ input[disabled] { } /* - * 1. Addresses box sizing set to content-box in IE 8/9. + * 1. Addresses box sizing set to `content-box` in IE 8/9. * 2. Removes excess padding in IE 8/9. - * 3. Removes excess padding in IE 7. - * Known issue: excess padding remains in IE 6. */ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ - *height: 13px; /* 3 */ - *width: 13px; /* 3 */ } /* @@ -471,7 +344,7 @@ input[type="search"]::-webkit-search-decoration { } /* - * Removes inner padding and border in Firefox 3+. + * Removes inner padding and border in Firefox 4+. */ button::-moz-focus-inner, @@ -481,7 +354,7 @@ input::-moz-focus-inner { } /* - * 1. Removes default vertical scrollbar in IE 6/7/8/9. + * 1. Removes default vertical scrollbar in IE 8/9. * 2. Improves readability and alignment in all browsers. */ From 494d32bd1d8a830b1ad5cf267c9e92bcd6c456df Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 19 Aug 2012 20:37:31 +0100 Subject: [PATCH 02/86] v2.0.0 --- CHANGELOG.md | 2 +- README.md | 4 ++-- component.json | 2 +- normalize.css | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7466d0558..a8d5b8234 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -== HEAD +== 2.0.0 (August 19, 2012) * Remove legacy browser form normalizations. * Remove all list normalizations. diff --git a/README.md b/README.md index 60318ce3e..a5b59af25 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# normalize.css v1.0.1 +# normalize.css v2.0.0 Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing. -[Check out the demo](http://necolas.github.com/normalize.css/1.0.1/test.html) +[Check out the demo](http://necolas.github.com/normalize.css/2.0.0/test.html) ## What does it do? diff --git a/component.json b/component.json index 3d6f9739a..fe3e79f55 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "1.0.1", + "version": "2.0.0", "author": "Nicolas Gallagher", "homepage": "http://necolas.github.com/normalize.css", "repository": { diff --git a/normalize.css b/normalize.css index 2223b5b77..4c3a36d5a 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v1.0.1 | MIT License | git.io/normalize */ +/*! normalize.css v2.0.0 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions From dcc17fd21ab53f5e268ec1fda1037fab6bc61886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Robichet?= Date: Mon, 20 Aug 2012 12:40:16 +0300 Subject: [PATCH 03/86] Remove stray IE 6/7 hack --- CHANGELOG.md | 4 ++++ normalize.css | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8d5b8234..e68e76385 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +== HEAD + +* Remove stray IE 6/7 `inline-block` hack from HTML5 display settings. + == 2.0.0 (August 19, 2012) * Remove legacy browser form normalizations. diff --git a/normalize.css b/normalize.css index 4c3a36d5a..d8972aec2 100644 --- a/normalize.css +++ b/normalize.css @@ -30,8 +30,6 @@ audio, canvas, video { display: inline-block; - *display: inline; - *zoom: 1; } /* From 994782f372dda6044d2a85d48f1f1ee5f48c0e11 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 20 Aug 2012 10:50:37 +0100 Subject: [PATCH 04/86] v2.0.1 --- CHANGELOG.md | 2 +- README.md | 4 ++-- component.json | 4 ++-- normalize.css | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e68e76385..e8a6349a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -== HEAD +== 2.0.1 (August 20, 2012) * Remove stray IE 6/7 `inline-block` hack from HTML5 display settings. diff --git a/README.md b/README.md index a5b59af25..82f9f5d63 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# normalize.css v2.0.0 +# normalize.css v2.0.1 Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing. -[Check out the demo](http://necolas.github.com/normalize.css/2.0.0/test.html) +[Check out the demo](http://necolas.github.com/normalize.css/2.0.1/test.html) ## What does it do? diff --git a/component.json b/component.json index fe3e79f55..80fae5cb5 100644 --- a/component.json +++ b/component.json @@ -1,8 +1,8 @@ { "name": "normalize-css", - "version": "2.0.0", + "version": "2.0.1", "author": "Nicolas Gallagher", - "homepage": "http://necolas.github.com/normalize.css", + "homepage": "http://necolas.github.com/normalize.css/", "repository": { "type": "git", "url": "https://github.com/necolas/normalize.css.git" diff --git a/normalize.css b/normalize.css index d8972aec2..57b5d2679 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v2.0.0 | MIT License | git.io/normalize */ +/*! normalize.css v2.0.1 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions From f29e03ae8f4485dbf959c9db09e88fa5bdbeaf86 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Thu, 27 Sep 2012 17:35:25 -0700 Subject: [PATCH 05/86] Update component.json for 'component' support Add 'styles' property to component.json to play nice with 'component'. 'Component' is another component package manager. See: https://github.com/component/component --- component.json | 1 + 1 file changed, 1 insertion(+) diff --git a/component.json b/component.json index 80fae5cb5..393f61ee0 100644 --- a/component.json +++ b/component.json @@ -3,6 +3,7 @@ "version": "2.0.1", "author": "Nicolas Gallagher", "homepage": "http://necolas.github.com/normalize.css/", + "styles": ["normalize.css"], "repository": { "type": "git", "url": "https://github.com/necolas/normalize.css.git" From 70c34af15bdeeec3bdf8f3a8fc8912080f38fb3c Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 26 Nov 2012 09:27:11 -0800 Subject: [PATCH 06/86] Language and comment style * Make consistent use of tense in code comments. * Update the comment style to match a more common convention. * Remove an unintentional newline. --- normalize.css | 143 +++++++++++++++++++++++++------------------------- 1 file changed, 71 insertions(+), 72 deletions(-) diff --git a/normalize.css b/normalize.css index 57b5d2679..418cd111d 100644 --- a/normalize.css +++ b/normalize.css @@ -4,8 +4,8 @@ HTML5 display definitions ========================================================================== */ -/* - * Corrects `block` display not defined in IE 8/9. +/** + * Correct `block` display not defined in IE 8/9. */ article, @@ -22,8 +22,8 @@ summary { display: block; } -/* - * Corrects `inline-block` display not defined in IE 8/9. +/** + * Correct `inline-block` display not defined in IE 8/9. */ audio, @@ -32,8 +32,8 @@ video { display: inline-block; } -/* - * Prevents modern browsers from displaying `audio` without controls. +/** + * Prevent modern browsers from displaying `audio` without controls. * Remove excess height in iOS 5 devices. */ @@ -42,8 +42,8 @@ audio:not([controls]) { height: 0; } -/* - * Addresses styling for `hidden` attribute not present in IE 8/9. +/** + * Address styling not present in IE 8/9. */ [hidden] { @@ -54,9 +54,9 @@ audio:not([controls]) { Base ========================================================================== */ -/* - * 1. Sets default font family to sans-serif. - * 2. Prevents iOS text size adjust after orientation change, without disabling +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ @@ -66,8 +66,8 @@ html { -ms-text-size-adjust: 100%; /* 2 */ } -/* - * Removes default margin. +/** + * Remove default margin. */ body { @@ -78,16 +78,16 @@ body { Links ========================================================================== */ -/* - * Addresses `outline` inconsistency between Chrome and other browsers. +/** + * Address `outline` inconsistency between Chrome and other browsers. */ a:focus { outline: thin dotted; } -/* - * Improves readability when focused and also mouse hovered in all browsers. +/** + * Improve readability when focused and also mouse hovered in all browsers. */ a:active, @@ -99,25 +99,25 @@ a:hover { Typography ========================================================================== */ -/* - * Addresses `h1` font sizes within `section` and `article` in Firefox 4+, - * Safari 5, and Chrome. +/** + * Address variable `h1` font size within `section` and `article` contexts in + * Firefox 4+, Safari 5, and Chrome. */ h1 { font-size: 2em; } -/* - * Addresses styling not present in IE 8/9, Safari 5, and Chrome. +/** + * Address styling not present in IE 8/9, Safari 5, and Chrome. */ abbr[title] { border-bottom: 1px dotted; } -/* - * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome. +/** + * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */ b, @@ -125,16 +125,16 @@ strong { font-weight: bold; } -/* - * Addresses styling not present in Safari 5 and Chrome. +/** + * Address styling not present in Safari 5 and Chrome. */ dfn { font-style: italic; } -/* - * Addresses styling not present in IE 8/9. +/** + * Address styling not present in IE 8/9. */ mark { @@ -142,9 +142,8 @@ mark { color: #000; } - -/* - * Corrects font family set oddly in Safari 5 and Chrome. +/** + * Correct font family set oddly in Safari 5 and Chrome. */ code, @@ -155,8 +154,8 @@ samp { font-size: 1em; } -/* - * Improves readability of pre-formatted text in all browsers. +/** + * Improve readability of pre-formatted text in all browsers. */ pre { @@ -165,24 +164,24 @@ pre { word-wrap: break-word; } -/* - * Sets consistent quote types. +/** + * Set consistent quote types. */ q { quotes: "\201C" "\201D" "\2018" "\2019"; } -/* - * Addresses inconsistent and variable font size in all browsers. +/** + * Address inconsistent and variable font size in all browsers. */ small { font-size: 80%; } -/* - * Prevents `sub` and `sup` affecting `line-height` in all browsers. +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ sub, @@ -205,16 +204,16 @@ sub { Embedded content ========================================================================== */ -/* - * Removes border when inside `a` element in IE 8/9. +/** + * Remove border when inside `a` element in IE 8/9. */ img { border: 0; } -/* - * Corrects overflow displayed oddly in IE 9. +/** + * Correct overflow displayed oddly in IE 9. */ svg:not(:root) { @@ -225,8 +224,8 @@ svg:not(:root) { Figures ========================================================================== */ -/* - * Addresses margin not present in IE 8/9 and Safari 5. +/** + * Address margin not present in IE 8/9 and Safari 5. */ figure { @@ -237,7 +236,7 @@ figure { Forms ========================================================================== */ -/* +/** * Define consistent border, margin, and padding. */ @@ -247,8 +246,8 @@ fieldset { padding: 0.35em 0.625em 0.75em; } -/* - * 1. Corrects color not being inherited in IE 8/9. +/** + * 1. Correct `color` not being inherited in IE 8/9. * 2. Remove padding so people aren't caught out if they zero out fieldsets. */ @@ -257,10 +256,10 @@ legend { padding: 0; /* 2 */ } -/* - * 1. Corrects font family not being inherited in all browsers. - * 2. Corrects font size not being inherited in all browsers. - * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome +/** + * 1. Correct font family not being inherited in all browsers. + * 2. Correct font size not being inherited in all browsers. + * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. */ button, @@ -272,8 +271,8 @@ textarea { margin: 0; /* 3 */ } -/* - * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */ @@ -282,11 +281,11 @@ input { line-height: normal; } -/* +/** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` * and `video` controls. - * 2. Corrects inability to style clickable `input` types in iOS. - * 3. Improves usability and consistency of cursor style between image-type + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type * `input` and others. */ @@ -298,7 +297,7 @@ input[type="submit"] { cursor: pointer; /* 3 */ } -/* +/** * Re-set default cursor for disabled elements. */ @@ -307,9 +306,9 @@ input[disabled] { cursor: default; } -/* - * 1. Addresses box sizing set to `content-box` in IE 8/9. - * 2. Removes excess padding in IE 8/9. +/** + * 1. Address box sizing set to `content-box` in IE 8/9. + * 2. Remove excess padding in IE 8/9. */ input[type="checkbox"], @@ -318,9 +317,9 @@ input[type="radio"] { padding: 0; /* 2 */ } -/* - * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome. - * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome +/** + * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome * (include `-moz` to future-proof). */ @@ -331,8 +330,8 @@ input[type="search"] { box-sizing: content-box; } -/* - * Removes inner padding and search cancel button in Safari 5 and Chrome +/** + * Remove inner padding and search cancel button in Safari 5 and Chrome * on OS X. */ @@ -341,8 +340,8 @@ input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } -/* - * Removes inner padding and border in Firefox 4+. +/** + * Remove inner padding and border in Firefox 4+. */ button::-moz-focus-inner, @@ -351,9 +350,9 @@ input::-moz-focus-inner { padding: 0; } -/* - * 1. Removes default vertical scrollbar in IE 8/9. - * 2. Improves readability and alignment in all browsers. +/** + * 1. Remove default vertical scrollbar in IE 8/9. + * 2. Improve readability and alignment in all browsers. */ textarea { @@ -365,7 +364,7 @@ textarea { Tables ========================================================================== */ -/* +/** * Remove most spacing between table cells. */ From 5399ff9c0e6d60b4a96c1e388755137de52690b4 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 1 Dec 2012 17:34:14 -0800 Subject: [PATCH 07/86] Fix cursor style for disabled button `input` The Android 4.0.* work around - `html input[type="button"]` - requires the addition of `html` to the selector for disabled inputs, otherwise disabled button inputs still have the `pointer` cursor. --- normalize.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index 418cd111d..7b3991239 100644 --- a/normalize.css +++ b/normalize.css @@ -302,7 +302,7 @@ input[type="submit"] { */ button[disabled], -input[disabled] { +html input[disabled] { cursor: default; } From 2eb80024f66dd5745cba5dcef5c9b0c466ecb8d5 Mon Sep 17 00:00:00 2001 From: Dawid Kruczek Date: Mon, 14 Jan 2013 20:48:50 -0800 Subject: [PATCH 08/86] Add `main` element to HTML5 display definitions The HTML Working Draft has added `main` as a new element. --- normalize.css | 1 + 1 file changed, 1 insertion(+) diff --git a/normalize.css b/normalize.css index 7b3991239..869763f4f 100644 --- a/normalize.css +++ b/normalize.css @@ -16,6 +16,7 @@ figure, footer, header, hgroup, +main, nav, section, summary { From 63acb0bf1de0928203685a4b89960dfce841f98a Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 14 Jan 2013 20:55:41 -0800 Subject: [PATCH 09/86] Update CHANGELOG --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8a6349a0..0bd4e5f65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +== HEAD + +* Add `main` element to HTML5 display definitions. +* Fix cursor style for disabled button `input`. + == 2.0.1 (August 20, 2012) * Remove stray IE 6/7 `inline-block` hack from HTML5 display settings. From 28f15186663e3b9cf95b78b2f6e6dd8ad5ec34c1 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 19 Jan 2013 13:04:00 -0800 Subject: [PATCH 10/86] Remove unnecessary `pre` styles `word-wrap: break-word` was only needed for IE 6/7, and `white-space: pre` is the default for all supported browsers. Fix gh-159 --- CHANGELOG.md | 1 + normalize.css | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bd4e5f65..25cee0922 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ == HEAD +* Remove unnecessary `pre` styles. * Add `main` element to HTML5 display definitions. * Fix cursor style for disabled button `input`. diff --git a/normalize.css b/normalize.css index 869763f4f..aa47965d4 100644 --- a/normalize.css +++ b/normalize.css @@ -160,9 +160,7 @@ samp { */ pre { - white-space: pre; white-space: pre-wrap; - word-wrap: break-word; } /** From 36fa71d531a299dd81dd17b5abbb1b5c71a7bb95 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 09:23:23 -0800 Subject: [PATCH 11/86] Add `hr` test --- test.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.html b/test.html index 750e5470d..d7103c49b 100644 --- a/test.html +++ b/test.html @@ -66,6 +66,10 @@

Text-level semantics

Address: somewhere, world
+
+ +
+

The a element example
The abbr element and abbr element with title examples
From fdb11ae5b5e63431d6f8bd2496a11c08e9de46c5 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 09:23:49 -0800 Subject: [PATCH 12/86] 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`. Fix gh-133 --- normalize.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/normalize.css b/normalize.css index aa47965d4..6ad707163 100644 --- a/normalize.css +++ b/normalize.css @@ -134,6 +134,16 @@ dfn { font-style: italic; } +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + /** * Address styling not present in IE 8/9. */ From 6729f5e8f5973c3b31a7a7baab5fdb7860aa623d Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 09:47:45 -0800 Subject: [PATCH 13/86] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25cee0922..3b01fcff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ == HEAD +* Normalize `hr` element. * Remove unnecessary `pre` styles. * Add `main` element to HTML5 display definitions. * Fix cursor style for disabled button `input`. From fc85cfb9f16200b4fa048b73c34e295dc77487d1 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 10:01:17 -0800 Subject: [PATCH 14/86] Normalize `h1` margin Chrome, Safari, and Firefox all adjust the margin of `h1` at several levels of nesting within HTML5 sectioning elements. This change ensures that the margin, like the font-size, does not vary in these contexts. Fix gh-160 --- CHANGELOG.md | 1 + normalize.css | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b01fcff4..7f03a9d55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ == HEAD +* Normalize `h1` margin when within HTML5 sectioning elements. * Normalize `hr` element. * Remove unnecessary `pre` styles. * Add `main` element to HTML5 display definitions. diff --git a/normalize.css b/normalize.css index 6ad707163..0dd72b01c 100644 --- a/normalize.css +++ b/normalize.css @@ -101,12 +101,13 @@ a:hover { ========================================================================== */ /** - * Address variable `h1` font size within `section` and `article` contexts in - * Firefox 4+, Safari 5, and Chrome. + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari 5, and Chrome. */ h1 { font-size: 2em; + margin: 0.67em 0; } /** From 7bc787fe8660465cdecd902f15cd5538341e1301 Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Sun, 20 Jan 2013 17:09:32 -0800 Subject: [PATCH 15/86] Normalize form element `text-transform` By default, browsers set `text-transform:none` on most form controls in order to prevent `text-transform` being inherited from ancestor nodes. However, the `button` and `select` elements are exceptions. * Firefox and Opera do not apply `text-transform:none` to `select`. * Chrome, Safari, and IE 8+ do not apply `text-transform:none` to `button. It's not suitable to set `text-transform:inherit` because all other form elements intentionally avoid it. Safari will not honour that style for `select`, and Chrome will only do so when the `select` element is clicked. Further details: http://tjvantoll.com/2012/07/10/default-browser-handling-of-the-css-text-transform-property/ --- normalize.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/normalize.css b/normalize.css index 0dd72b01c..c433c0a4f 100644 --- a/normalize.css +++ b/normalize.css @@ -291,6 +291,18 @@ input { line-height: normal; } +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. + * Correct `select` style inheritance in Firefox 4+ and Opera. + */ + +button, +select { + text-transform: none; +} + /** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` * and `video` controls. From 8d5137931facfaea3c98df439143387af279a4f1 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 17:21:16 -0800 Subject: [PATCH 16/86] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f03a9d55..a2b1cb56c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ == HEAD +* Normalize `text-transform` for `button` and `select`. * Normalize `h1` margin when within HTML5 sectioning elements. * Normalize `hr` element. * Remove unnecessary `pre` styles. From 5c0d44e002a84d1944ce8b9d0aa30e0b860a09c2 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 17:34:29 -0800 Subject: [PATCH 17/86] Update README acknowledgements --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82f9f5d63..6a3cc904d 100644 --- a/README.md +++ b/README.md @@ -38,5 +38,5 @@ guidelines](https://github.com/necolas/issue-guidelines). ## Acknowledgements -Normalize.css is a project by [Nicolas Gallagher](http://github.com/necolas) -and [Jonathan Neal](http://github.com/jonathantneal). +Normalize.css is a project by [Nicolas Gallagher](https://github.com/necolas), +co-created with [Jonathan Neal](https://github.com/jonathantneal). From 341199ff56bfa3b0a252bd3fbc96b39213a17e34 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 20 Jan 2013 17:35:12 -0800 Subject: [PATCH 18/86] v2.1.0 --- CHANGELOG.md | 2 ++ README.md | 4 ++-- component.json | 2 +- normalize.css | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2b1cb56c..306f2fa91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ == HEAD +== 2.1.0 (January 21, 2013) + * Normalize `text-transform` for `button` and `select`. * Normalize `h1` margin when within HTML5 sectioning elements. * Normalize `hr` element. diff --git a/README.md b/README.md index 6a3cc904d..4623dd9fa 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# normalize.css v2.0.1 +# normalize.css v2.1.0 Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing. -[Check out the demo](http://necolas.github.com/normalize.css/2.0.1/test.html) +[Check out the demo](http://necolas.github.com/normalize.css/2.1.0/test.html) ## What does it do? diff --git a/component.json b/component.json index 393f61ee0..006d0dc95 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "2.0.1", + "version": "2.1.0", "author": "Nicolas Gallagher", "homepage": "http://necolas.github.com/normalize.css/", "styles": ["normalize.css"], diff --git a/normalize.css b/normalize.css index c433c0a4f..a9c6f52f0 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v2.0.1 | MIT License | git.io/normalize */ +/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions From 40f39d8d9e3a237e25f20d1ea9537af130895b3e Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 27 Mar 2013 15:53:30 -0700 Subject: [PATCH 19/86] Add Bower install and more to README * Mention v1's support for legacy browsers. * Provide link to project page for easy download. * Include Bower install command. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 4623dd9fa..6d8c32aae 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,14 @@ the styles that need normalizing. [Check out the demo](http://necolas.github.com/normalize.css/2.1.0/test.html) +[Legacy browser support is available in v1](https://github.com/necolas/normalize.css/tree/v1) + +## Install + +Download from the [project page](http://necolas.github.com/normalize.css/). + +Install with [Bower](http://twitter.github.com/bower/): `bower install --save normalize-css` + ## What does it do? * Preserves useful defaults, unlike many CSS resets. From 8a925e039178a3531c88ac747894b6fe0992318a Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 29 Mar 2013 21:30:45 -0700 Subject: [PATCH 20/86] Clean up component.json Bower doesn't currently use several properties that were included. Keep `styles` for now, for Component(1). --- component.json | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/component.json b/component.json index 006d0dc95..a4b271dd5 100644 --- a/component.json +++ b/component.json @@ -3,13 +3,6 @@ "version": "2.1.0", "author": "Nicolas Gallagher", "homepage": "http://necolas.github.com/normalize.css/", - "styles": ["normalize.css"], - "repository": { - "type": "git", - "url": "https://github.com/necolas/normalize.css.git" - }, - "licenses": [{ - "type": "MIT", - "url": "http://opensource.org/licenses/MIT" - }] + "main": "normalize.css", + "styles": ["normalize.css"] } From 907890983eb2d6667e4b9cbd8bd03ead4b077e34 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 1 Apr 2013 06:53:47 -0700 Subject: [PATCH 21/86] Protect root against system color schemes System color schemes (in particular, custom themes in Windows and Linux distros) affect Firefox, IE, and Opera. Normalizing the web site/app's root background and text color prevents these unwanted settings from being used. Chrome doesn't apply system-level schemes to websites. Fix gh-170 --- CHANGELOG.md | 3 +++ normalize.css | 16 +++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 306f2fa91..74d8f1af2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ == HEAD +* Normalize root `color` and `background` to counter the affects of system + color schemes. + == 2.1.0 (January 21, 2013) * Normalize `text-transform` for `button` and `select`. diff --git a/normalize.css b/normalize.css index a9c6f52f0..dcf0f82ae 100644 --- a/normalize.css +++ b/normalize.css @@ -56,15 +56,21 @@ audio:not([controls]) { ========================================================================== */ /** - * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling + * 1. Prevent system color scheme's background color being used in Firefox, IE, + * and Opera. + * 2. Prevent system color scheme's text color being used in Firefox, IE, and + * Opera. + * 3. Set default font family to sans-serif. + * 4. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ html { - font-family: sans-serif; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ - -ms-text-size-adjust: 100%; /* 2 */ + background: #fff; /* 1 */ + color: #000; /* 2 */ + font-family: sans-serif; /* 3 */ + -ms-text-size-adjust: 100%; /* 4 */ + -webkit-text-size-adjust: 100%; /* 4 */ } /** From 4451c29dec940833acd476d09c3749f696561701 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 3 Apr 2013 14:13:17 -0400 Subject: [PATCH 22/86] Fix typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74d8f1af2..2147977aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ == HEAD -* Normalize root `color` and `background` to counter the affects of system +* Normalize root `color` and `background` to counter the effects of system color schemes. == 2.1.0 (January 21, 2013) From 6ccf86e9625b321bd78b92fe8c12422435bed078 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 5 Apr 2013 12:51:36 -0700 Subject: [PATCH 23/86] Change gh-page URLs to use `.io` GitHub have redirected all `username.github.com` pages to `username.github.io`. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6d8c32aae..b5e9dc1d2 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,15 @@ elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing. -[Check out the demo](http://necolas.github.com/normalize.css/2.1.0/test.html) +[Check out the demo](http://necolas.github.io/normalize.css/2.1.0/test.html) [Legacy browser support is available in v1](https://github.com/necolas/normalize.css/tree/v1) ## Install -Download from the [project page](http://necolas.github.com/normalize.css/). +Download from the [project page](http://necolas.github.io/normalize.css/). -Install with [Bower](http://twitter.github.com/bower/): `bower install --save normalize-css` +Install with [Bower](http://twitter.github.io/bower/): `bower install --save normalize-css` ## What does it do? @@ -42,7 +42,7 @@ override the defaults later in your CSS. ## Contribute Please read my [issue -guidelines](https://github.com/necolas/issue-guidelines). +guidelines](https://github.com/necolas/issue-guidelines/). ## Acknowledgements From 8afd9f818bc9f4987e71e239489828b5c713932c Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 28 Mar 2013 20:30:19 -0700 Subject: [PATCH 24/86] Add contribution guidelines Includes process for maintainers while there is no automation in place. Close gh-175 --- CONTRIBUTING.md | 176 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 +- 2 files changed, 177 insertions(+), 2 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..76e55b7e4 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,176 @@ +# Contributing to normalize.css + +Please take a moment to review this document in order to make the contribution +process easy and effective for everyone involved. + +Following these guidelines helps to communicate that you respect the time of +the developers managing and developing this open source project. In return, +they should reciprocate that respect in addressing your issue or assessing +patches and features. + + +## Using the issue tracker + +The issue tracker is the preferred channel for [bug reports](#bugs), +[features requests](#features) and [submitting pull +requests](#pull-requests), but please respect the following restrictions: + +* Please **do not** use the issue tracker for personal support requests. + +* Please **do not** derail or troll issues. Keep the discussion on topic and + respect the opinions of others. + + + +## Bug reports + +A bug is a _demonstrable problem_ that is caused by the code in the repository. +Good bug reports are extremely helpful - thank you! + +Guidelines for bug reports: + +1. **Use the GitHub issue search** – check if the issue has already been + reported. + +2. **Check if the issue has been fixed** – try to reproduce it using the + latest `master` branch in the repository. + +3. **Isolate the problem** – create a live example (e.g., on + [Codepen](http://codepen.io)) of a [reduced test + case](http://css-tricks.com/6263-reduced-test-cases/). + +A good bug report shouldn't leave others needing to chase you up for more +information. Please try to be as detailed as possible in your report. What is +your environment? What steps will reproduce the issue? What browser(s) and OS +experience the problem? What would you expect to be the outcome? All these +details will help people to fix any potential bugs. + +Example: + +> Short and descriptive example bug report title +> +> A summary of the issue and the browser/OS environment in which it occurs. If +> suitable, include the steps required to reproduce the bug. +> +> 1. This is the first step +> 2. This is the second step +> 3. Further steps, etc. +> +> `` - a link to the reduced test case +> +> Any other information you want to share that is relevant to the issue being +> reported. This might include the lines of code that you have identified as +> causing the bug, and potential solutions (and your opinions on their +> merits). + + + +## Feature requests + +Feature requests are welcome. But take a moment to find out whether your idea +fits with the scope and aims of the project. It's up to *you* to make a strong +case to convince the project's developers of the merits of this feature. Please +provide as much detail and context as possible. + + + +## Pull requests + +Good pull requests - patches, improvements, new features - are a fantastic +help. They should remain focused in scope and avoid containing unrelated +commits. + +**Please ask first** before embarking on any significant work, otherwise you +risk spending a lot of time working on something that the project's developers +might not want to merge into the project. + +Please adhere to the coding conventions used throughout a project (whitespace, +accurate comments, etc.) and any other requirements (such as test coverage). + +Follow this process if you'd like your work considered for inclusion in the + +1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork, + and configure the remotes: + + ```bash + # Clone your fork of the repo into the current directory + git clone https://github.com//normalize.css + # Navigate to the newly cloned directory + cd normalize.css + # Assign the original repo to a remote called "upstream" + git remote add upstream https://github.com/necolas/normalize.css + ``` + +2. If you cloned a while ago, get the latest changes from upstream: + + ```bash + git checkout master + git pull upstream master + ``` + +3. Never work directly on `master`. Create a new topic branch (off the latest + version of `master`) to contain your feature, change, or fix: + + ```bash + git checkout -b + ``` + +4. Commit your changes in logical chunks. Please adhere to these [git commit + message conventions](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) + or your code is unlikely be merged into the main project. Use Git's + [interactive rebase](https://help.github.com/articles/interactive-rebase) + feature to tidy up your commits before making them public. + + Make sure to add a test to the `test.html` file if appropriate, and test + your change in all supported browsers. + +5. Locally rebase the upstream development branch into your topic branch: + + ```bash + git pull --rebase upstream master + ``` + +6. Push your topic branch up to your fork: + + ```bash + git push origin + ``` + +10. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) + with a clear title and description. + + Please submit a separate pull request for any appropriate changes required + in the `v1` branch for legacy browsers. + +**IMPORTANT**: By submitting a patch, you agree to allow the project owner to +license your work under the same license as that used by the project. + + + +## Maintainers + +If you have commit access, please follow this process for merging patches and +cutting new releases. + +### Accepting patches + +1. Check that a patch is within the scope and philosophy of the project. +2. Check that a patch has any necessary tests and a proper, descriptive commit + message. +3. Test the patch locally. +4. Do not use GitHub's merge button. Apply the patch to `master` locally + (either via `git am` or by checking the whole branch out). Amend minor + problems with the author's original commit if necessary. Then push to GitHub. +5. If a patch should be included in `v1`, cherry-pick the commits or manually + apply if all else fails. + +### Releasing a new version + +1. Include all new functional changes in the CHANGELOG. +2. Use a dedicated commit to increment the version. The version needs to be + added to the CHANGELOG (inc. date), and edited in the README, + `component.json`, and `normalize.css` files. +3. The commit message must be of `v0.0.0` format. +4. Create an annotated tag for the version: `git tag -m v0.0.0`. +5. Push the changes and tags to GitHub: `git push --tags origin master` +6. Checkout the `gh-pages` branch and follow the instructions in the README. diff --git a/README.md b/README.md index b5e9dc1d2..d44161ec7 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,7 @@ override the defaults later in your CSS. ## Contribute -Please read my [issue -guidelines](https://github.com/necolas/issue-guidelines/). +Please read the CONTRIBUTING.md ## Acknowledgements From 34614f481141498630edd1f79008da75357fa6d0 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 7 Apr 2013 17:26:43 -0700 Subject: [PATCH 25/86] Fix example `git tag` command in docs --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 76e55b7e4..30ffc0d6f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -171,6 +171,6 @@ cutting new releases. added to the CHANGELOG (inc. date), and edited in the README, `component.json`, and `normalize.css` files. 3. The commit message must be of `v0.0.0` format. -4. Create an annotated tag for the version: `git tag -m v0.0.0`. +4. Create an annotated tag for the version: `git tag -m "v0.0.0" v0.0.0`. 5. Push the changes and tags to GitHub: `git push --tags origin master` 6. Checkout the `gh-pages` branch and follow the instructions in the README. From 691c71b98518b09a8c83412168a27653c302ef75 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 7 Apr 2013 17:27:53 -0700 Subject: [PATCH 26/86] v2.1.1 --- CHANGELOG.md | 2 ++ README.md | 2 +- component.json | 2 +- normalize.css | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2147977aa..21c1e8c8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ == HEAD +== 2.1.1 (April 7, 2013) + * Normalize root `color` and `background` to counter the effects of system color schemes. diff --git a/README.md b/README.md index d44161ec7..c7eaba1ca 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# normalize.css v2.1.0 +# normalize.css v2.1.1 Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the diff --git a/component.json b/component.json index a4b271dd5..624623916 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "2.1.0", + "version": "2.1.1", "author": "Nicolas Gallagher", "homepage": "http://necolas.github.com/normalize.css/", "main": "normalize.css", diff --git a/normalize.css b/normalize.css index dcf0f82ae..6d24a3853 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ +/*! normalize.css v2.1.1 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions From 920b3ea72ba296d723377eabce59148398aa3e8c Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 7 Apr 2013 18:34:38 -0700 Subject: [PATCH 27/86] Fix typo in CONTRIBUTING.md --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 30ffc0d6f..82bab9a2b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -88,6 +88,7 @@ Please adhere to the coding conventions used throughout a project (whitespace, accurate comments, etc.) and any other requirements (such as test coverage). Follow this process if you'd like your work considered for inclusion in the +project: 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork, and configure the remotes: From a611f096b53faa508cce66ad172c4a6625e626f9 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 7 Apr 2013 19:41:16 -0700 Subject: [PATCH 28/86] Correct date of 2.1.1 release in CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21c1e8c8b..d0e9f937c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ == HEAD -== 2.1.1 (April 7, 2013) +== 2.1.1 (April 8, 2013) * Normalize root `color` and `background` to counter the effects of system color schemes. From 03c8f449d039c0fa3560bf03e1b4b3de4c5c26b1 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 21 Apr 2013 20:17:09 -0700 Subject: [PATCH 29/86] Change the Bower website URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7eaba1ca..62ac43cf8 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ the styles that need normalizing. Download from the [project page](http://necolas.github.io/normalize.css/). -Install with [Bower](http://twitter.github.io/bower/): `bower install --save normalize-css` +Install with [Bower](http://bower.io/): `bower install --save normalize-css` ## What does it do? From c9ff1dd48d822ea1092cba42f82755c71ca31c61 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 7 May 2013 23:33:22 -0700 Subject: [PATCH 30/86] Add Bower manifest file Ignore files that don't need to be installed. --- bower.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bower.json diff --git a/bower.json b/bower.json new file mode 100644 index 000000000..fb5026bdf --- /dev/null +++ b/bower.json @@ -0,0 +1,12 @@ +{ + "name": "normalize-css", + "version": "2.1.1", + "main": "normalize.css", + "author": "Nicolas Gallagher", + "ignore": [ + "CHANGELOG.md", + "CONTRIBUTING.md", + "component.json", + "test.html" + ] +} From 87db01937460a16964d7f1a6c675624c5107448b Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 7 May 2013 23:36:17 -0700 Subject: [PATCH 31/86] Simplify the Component(1) manifest file --- component.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/component.json b/component.json index 624623916..09ed0c1c0 100644 --- a/component.json +++ b/component.json @@ -1,8 +1,6 @@ { "name": "normalize-css", "version": "2.1.1", - "author": "Nicolas Gallagher", - "homepage": "http://necolas.github.com/normalize.css/", - "main": "normalize.css", - "styles": ["normalize.css"] + "styles": ["normalize.css"], + "author": "Nicolas Gallagher" } From 71d6cdc9a85ac70da6d3208e397fcb5b1c0ad960 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 7 May 2013 23:40:22 -0700 Subject: [PATCH 32/86] Revert root color and background normalization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit: 907890983eb2d6667e4b9cbd8bd03ead4b077e34 The change caused problems with `body` background color no longer bubbling up the the `html` element. It also prevented you from setting `color` or `background` styles on `html` before the normalize.css styles. It might not be possibly to safely address – within normalize.css – the problem that it was trying to avoid. Fix gh-188 --- CHANGELOG.md | 2 ++ normalize.css | 16 +++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0e9f937c..41055ffa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ == HEAD +* Revert root `color` and `background` normalizations. + == 2.1.1 (April 8, 2013) * Normalize root `color` and `background` to counter the effects of system diff --git a/normalize.css b/normalize.css index 6d24a3853..e39087d3c 100644 --- a/normalize.css +++ b/normalize.css @@ -56,21 +56,15 @@ audio:not([controls]) { ========================================================================== */ /** - * 1. Prevent system color scheme's background color being used in Firefox, IE, - * and Opera. - * 2. Prevent system color scheme's text color being used in Firefox, IE, and - * Opera. - * 3. Set default font family to sans-serif. - * 4. Prevent iOS text size adjust after orientation change, without disabling + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ html { - background: #fff; /* 1 */ - color: #000; /* 2 */ - font-family: sans-serif; /* 3 */ - -ms-text-size-adjust: 100%; /* 4 */ - -webkit-text-size-adjust: 100%; /* 4 */ + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ } /** From f74e43083330faa9d6b8b223a8b60f12d32d8da2 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 11 May 2013 13:51:45 -0700 Subject: [PATCH 33/86] Add `bower.json` to release instructions --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 82bab9a2b..4c526bb08 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -169,8 +169,8 @@ cutting new releases. 1. Include all new functional changes in the CHANGELOG. 2. Use a dedicated commit to increment the version. The version needs to be - added to the CHANGELOG (inc. date), and edited in the README, - `component.json`, and `normalize.css` files. + added to the CHANGELOG (inc. date), and the `bower.json`, `component.json`, + and `normalize.css` files. 3. The commit message must be of `v0.0.0` format. 4. Create an annotated tag for the version: `git tag -m "v0.0.0" v0.0.0`. 5. Push the changes and tags to GitHub: `git push --tags origin master` From 56af2b11703dd9e8819ae725ee67192a4b55a48c Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 11 May 2013 13:59:52 -0700 Subject: [PATCH 34/86] v2.1.2 --- CHANGELOG.md | 2 ++ README.md | 4 ++-- bower.json | 2 +- component.json | 2 +- normalize.css | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41055ffa2..0ca7cdfcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ == HEAD +== 2.1.2 (May 11, 2013) + * Revert root `color` and `background` normalizations. == 2.1.1 (April 8, 2013) diff --git a/README.md b/README.md index 62ac43cf8..87b60ea55 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# normalize.css v2.1.1 +# normalize.css v2 Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing. -[Check out the demo](http://necolas.github.io/normalize.css/2.1.0/test.html) +[Check out the demo](http://necolas.github.io/normalize.css/latest/test.html) [Legacy browser support is available in v1](https://github.com/necolas/normalize.css/tree/v1) diff --git a/bower.json b/bower.json index fb5026bdf..c96b7cd34 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "2.1.1", + "version": "2.1.2", "main": "normalize.css", "author": "Nicolas Gallagher", "ignore": [ diff --git a/component.json b/component.json index 09ed0c1c0..41e4d0ba0 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "2.1.1", + "version": "2.1.2", "styles": ["normalize.css"], "author": "Nicolas Gallagher" } diff --git a/normalize.css b/normalize.css index e39087d3c..6adf56e79 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v2.1.1 | MIT License | git.io/normalize */ +/*! normalize.css v2.1.2 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions From 37b483c1e1f0a11f3734c86410d051a31378a512 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 1 Jul 2013 23:42:37 -0700 Subject: [PATCH 35/86] Fix IE 10 active link background color Remove the gray background color from active links in IE 10. Fix gh-172 --- CHANGELOG.md | 2 ++ normalize.css | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ca7cdfcf..98c6a9b54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ == HEAD +* Remove the gray background color from active links in IE 10. + == 2.1.2 (May 11, 2013) * Revert root `color` and `background` normalizations. diff --git a/normalize.css b/normalize.css index 6adf56e79..8b977e137 100644 --- a/normalize.css +++ b/normalize.css @@ -79,6 +79,14 @@ body { Links ========================================================================== */ +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background: transparent; +} + /** * Address `outline` inconsistency between Chrome and other browsers. */ From 77982e20d82421b4303a5eee4afa224ea371e978 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 1 Jul 2013 23:54:45 -0700 Subject: [PATCH 36/86] Normalize the `template` element display The `template` element shipped in Firefox 22 and Chrome 26. Browsers without HTML template support should at least hide the element. --- normalize.css | 6 ++++-- test.html | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/normalize.css b/normalize.css index 8b977e137..5e79cf07c 100644 --- a/normalize.css +++ b/normalize.css @@ -44,10 +44,12 @@ audio:not([controls]) { } /** - * Address styling not present in IE 8/9. + * Address `[hidden]` styling not present in IE 8/9. + * Hide the `template` element in IE, Safari, and Firefox < 22. */ -[hidden] { +[hidden], +template { display: none; } diff --git a/test.html b/test.html index d7103c49b..d610c3173 100644 --- a/test.html +++ b/test.html @@ -96,6 +96,12 @@

Text-level semantics

The var element example

+

Template content

+ +

Embedded content

audio

From 0050384c0b108ed5e7066da5ff52f54ef88e1f66 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 15 Aug 2013 19:46:33 -0700 Subject: [PATCH 37/86] README: change guidance and demphasise v1 * Recommend that normalize.css is used as library code (i.e., not modified). * Add a note that v1 is no longer actively developed. --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 87b60ea55..40acfd1b4 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # normalize.css v2 Normalize.css is a customisable CSS file that makes browsers render all -elements more consistently and in line with modern standards. We researched the -differences between default browser styles in order to precisely target only -the styles that need normalizing. +elements more consistently and in line with modern standards. -[Check out the demo](http://necolas.github.io/normalize.css/latest/test.html) +The project relies on researching the differences between default browser +styles in order to precisely target only the styles that need or benefit from +normalizing. -[Legacy browser support is available in v1](https://github.com/necolas/normalize.css/tree/v1) +[Check out the demo](http://necolas.github.io/normalize.css/latest/test.html) ## Install @@ -25,11 +25,10 @@ Install with [Bower](http://bower.io/): `bower install --save normalize-css` ## How to use it -Normalize.css is intended to be used as an alternative to CSS resets. +No other styles should come before Normalize.css. -It's suggested that you read the `normalize.css` file and consider customising -it to meet your needs. Alternatively, include the file in your project and -override the defaults later in your CSS. +It is recommended that you include the `normalize.css` file as untouched +library code. ## Browser support @@ -39,7 +38,11 @@ override the defaults later in your CSS. * Opera 12+ * Internet Explorer 8+ -## Contribute +[Normalize.css v1 provides legacy browser +support](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+), +but is no longer actively developed. + +## Contributing Please read the CONTRIBUTING.md From 3e12409c6111299b32bb64584f7a5f9a4dd5a86a Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 15 Aug 2013 21:52:25 -0700 Subject: [PATCH 38/86] Add Component(1) install instructions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 40acfd1b4..273482726 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Download from the [project page](http://necolas.github.io/normalize.css/). Install with [Bower](http://bower.io/): `bower install --save normalize-css` +Install with [Component(1)](http://component.io/): `component install necolas/normalize.css` + ## What does it do? * Preserves useful defaults, unlike many CSS resets. From 9709e680d02c58c9265173e71fbf2be3e2e8e1ff Mon Sep 17 00:00:00 2001 From: Ricky de Laveaga Date: Mon, 5 Aug 2013 10:04:57 -0700 Subject: [PATCH 39/86] Fix incorrect closing tag in `test.html` --- test.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.html b/test.html index d610c3173..c90099163 100644 --- a/test.html +++ b/test.html @@ -98,7 +98,7 @@

Text-level semantics

Template content

From 5d4ef1c56fe6e29399f8e2bf31f39ed6c6a11bd3 Mon Sep 17 00:00:00 2001 From: Kalifriki Date: Mon, 15 Apr 2013 20:47:25 +0400 Subject: [PATCH 40/86] Add IE 10 to checkbox/radio normalization comments --- normalize.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/normalize.css b/normalize.css index 5e79cf07c..1fd276a0e 100644 --- a/normalize.css +++ b/normalize.css @@ -339,8 +339,8 @@ html input[disabled] { } /** - * 1. Address box sizing set to `content-box` in IE 8/9. - * 2. Remove excess padding in IE 8/9. + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. */ input[type="checkbox"], From 690f8abb195fcdb4b4f910f3e7f23b88bdffb01d Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 26 Aug 2013 11:34:21 -0700 Subject: [PATCH 41/86] Fix component.json The Component(1) spec was updated to require a `repo` property. --- component.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/component.json b/component.json index 41e4d0ba0..bd42e8551 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,8 @@ { "name": "normalize-css", + "repo": "necolas/normalize.css", "version": "2.1.2", "styles": ["normalize.css"], - "author": "Nicolas Gallagher" + "author": "Nicolas Gallagher", + "license": "MIT" } From 4925d9b50807c784abac0f73290e60a28322376b Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 26 Aug 2013 11:36:05 -0700 Subject: [PATCH 42/86] Update CHANGELOG --- CHANGELOG.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98c6a9b54..ac5828314 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,18 @@ -== HEAD +=== HEAD +* Fix component.json. * Remove the gray background color from active links in IE 10. -== 2.1.2 (May 11, 2013) +=== 2.1.2 (May 11, 2013) * Revert root `color` and `background` normalizations. -== 2.1.1 (April 8, 2013) +=== 2.1.1 (April 8, 2013) * Normalize root `color` and `background` to counter the effects of system color schemes. -== 2.1.0 (January 21, 2013) +=== 2.1.0 (January 21, 2013) * Normalize `text-transform` for `button` and `select`. * Normalize `h1` margin when within HTML5 sectioning elements. @@ -20,11 +21,11 @@ * Add `main` element to HTML5 display definitions. * Fix cursor style for disabled button `input`. -== 2.0.1 (August 20, 2012) +=== 2.0.1 (August 20, 2012) * Remove stray IE 6/7 `inline-block` hack from HTML5 display settings. -== 2.0.0 (August 19, 2012) +=== 2.0.0 (August 19, 2012) * Remove legacy browser form normalizations. * Remove all list normalizations. @@ -33,11 +34,11 @@ * Form elements automatically inherit `font-family` from ancestor. * Drop support for IE 6/7, Firefox < 4, and Safari < 5. -== 1.0.1 (August 19, 2012) +=== 1.0.1 (August 19, 2012) * Adjust `small` font size normalization. -== 1.0.0 (August 14, 2012) +=== 1.0.0 (August 14, 2012) (Only the notable changes since public release) From dafaf9ee60ff76173954aca755c78a6912a0ee6c Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 26 Aug 2013 11:37:18 -0700 Subject: [PATCH 43/86] v2.1.3 --- CHANGELOG.md | 2 ++ bower.json | 2 +- component.json | 2 +- normalize.css | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac5828314..86d0d1df5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ === HEAD +=== 2.1.3 (August 26, 2013) + * Fix component.json. * Remove the gray background color from active links in IE 10. diff --git a/bower.json b/bower.json index c96b7cd34..6e5e4b758 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "2.1.2", + "version": "2.1.3", "main": "normalize.css", "author": "Nicolas Gallagher", "ignore": [ diff --git a/component.json b/component.json index bd42e8551..1310efffd 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "normalize-css", "repo": "necolas/normalize.css", - "version": "2.1.2", + "version": "2.1.3", "styles": ["normalize.css"], "author": "Nicolas Gallagher", "license": "MIT" diff --git a/normalize.css b/normalize.css index 1fd276a0e..c2de8df94 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v2.1.2 | MIT License | git.io/normalize */ +/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions From 6992935807a5ed7ec60fb97e3f9fd02cc102a110 Mon Sep 17 00:00:00 2001 From: thoppe Date: Sun, 12 Jan 2014 12:56:12 +0100 Subject: [PATCH 44/86] Fix fieldset width in Chrome and Firefox Fixes an issue in Firefox [1] and Chrome [2]. The implicit width of `fieldset` can be determined by the width of descendants rather than the parent container. This change (adding `min-width:0`) makes the `fieldset` behave like a `div` in this regard. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=504622 [2] http://stackoverflow.com/questions/8084343/google-chrome-fieldset-overflow-bug Close #272 --- normalize.css | 10 ++++++---- test.html | 7 +++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/normalize.css b/normalize.css index c2de8df94..a892722c5 100644 --- a/normalize.css +++ b/normalize.css @@ -257,13 +257,15 @@ figure { ========================================================================== */ /** - * Define consistent border, margin, and padding. + * 1. Define consistent border, margin, and padding. + * 2. Address width being affected by wide descendants in Chrome and Firefox. */ fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; + border: 1px solid #c0c0c0; /* 1 */ + margin: 0 2px; /* 1 */ + min-width: 0; /* 2 */ + padding: 0.35em 0.625em 0.75em; /* 1 */ } /** diff --git a/test.html b/test.html index c90099163..ab9a79b7d 100644 --- a/test.html +++ b/test.html @@ -268,6 +268,13 @@

Tabular data

Forms

+
+
+ Fieldset with a wider child +
+
+
+
Inputs as descendents of labels (form legend). This doubles up as a long legend that can test word wrapping.

From 0b5badd591e63b1dcc914a2479f681b9297e6514 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 15 Jan 2014 14:21:28 -0800 Subject: [PATCH 45/86] Fix `font` and `color` inheritance for forms Inherit all `font` properties. Inherit `color` for form controls. Chrome and Safari on OS X will not inherit `color` as they heavily restrict the author-defined styles that will be respected for that element. Fix gh-157 --- normalize.css | 9 +++++---- test.html | 9 +++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/normalize.css b/normalize.css index a892722c5..4601d6f7f 100644 --- a/normalize.css +++ b/normalize.css @@ -279,8 +279,9 @@ legend { } /** - * 1. Correct font family not being inherited in all browsers. - * 2. Correct font size not being inherited in all browsers. + * 1. Correct color not being inherited in all browsers. + * Known issue: `select` will not inherit color in Chrome and Safari on OS X. + * 2. Correct font properties not being inherited in all browsers. * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. */ @@ -288,8 +289,8 @@ button, input, select, textarea { - font-family: inherit; /* 1 */ - font-size: 100%; /* 2 */ + color: inherit; /* 1 */ + font: inherit; /* 2 */ margin: 0; /* 3 */ } diff --git a/test.html b/test.html index ab9a79b7d..51dda7b37 100644 --- a/test.html +++ b/test.html @@ -275,6 +275,15 @@

Forms

+
+ Color inheritance +

+

+

+

+

+
+
Inputs as descendents of labels (form legend). This doubles up as a long legend that can test word wrapping.

From 496702aab6a80bdb1d03f3011a0c0962635a8b02 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 15 Jan 2014 14:40:36 -0800 Subject: [PATCH 46/86] Set correct display for `progress` in IE 8/9 Set to `inline-block` to match default value in modern browsers. Fix #253 Close #254 --- normalize.css | 1 + 1 file changed, 1 insertion(+) diff --git a/normalize.css b/normalize.css index 4601d6f7f..cf184607c 100644 --- a/normalize.css +++ b/normalize.css @@ -29,6 +29,7 @@ summary { audio, canvas, +progress, video { display: inline-block; } From 37d1c1ef8ba2ddd5708bfc93083cda964711e6aa Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 15 Jan 2014 16:16:32 -0800 Subject: [PATCH 47/86] Remove default table cell padding Normalize.css makes some convenience changes to the default table rendering. This change removes the 1px of padding around table cells. --- normalize.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/normalize.css b/normalize.css index cf184607c..d38d7914b 100644 --- a/normalize.css +++ b/normalize.css @@ -408,3 +408,8 @@ table { border-collapse: collapse; border-spacing: 0; } + +td, +th { + padding: 0; +} From 3d3096db745224192292584445b5114bf1af8a71 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 15 Jan 2014 16:30:33 -0800 Subject: [PATCH 48/86] Normalize `optgroup` Address Firefox not inheriting `font` properties for `optgroup`. Fix gh-102 --- normalize.css | 1 + 1 file changed, 1 insertion(+) diff --git a/normalize.css b/normalize.css index d38d7914b..94b03c707 100644 --- a/normalize.css +++ b/normalize.css @@ -288,6 +288,7 @@ legend { button, input, +optgroup, select, textarea { color: inherit; /* 1 */ From 5b9bf5e1a365509141bb26669cc6cd45ed2cda1e Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 15 Jan 2014 16:45:04 -0800 Subject: [PATCH 49/86] Fix `optgroup` normalization and add test Ref gh-102 --- normalize.css | 9 +++++++++ test.html | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/normalize.css b/normalize.css index 94b03c707..771c8f3d1 100644 --- a/normalize.css +++ b/normalize.css @@ -296,6 +296,15 @@ textarea { margin: 0; /* 3 */ } +/** + * Re-apply the `font-weight` to avoid modifying the default UX, and because + * the default cannot be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + /** * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. diff --git a/test.html b/test.html index 51dda7b37..ef13851bf 100644 --- a/test.html +++ b/test.html @@ -300,6 +300,13 @@

Forms

+

From ccbb28b123186a419abd8f8211f7431885943fd9 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 15 Jan 2014 16:52:18 -0800 Subject: [PATCH 50/86] Fix `figure` margin normalization All browsers that support `figure` apply margin of `1em 40px`. Fix gh-262 --- normalize.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index 771c8f3d1..9d23b7f2b 100644 --- a/normalize.css +++ b/normalize.css @@ -250,7 +250,7 @@ svg:not(:root) { */ figure { - margin: 0; + margin: 1em 40px; } /* ========================================================================== From 4b94eb7d4d290251d43684a087d0564ef4eb3685 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 15 Jan 2014 21:32:00 -0800 Subject: [PATCH 51/86] Remove `a:focus` outline normalization My hypothesis is that it's more important for a user to get the focus style they expect *within* their browser than it is to have consistent focus styles *between* browsers. In particular, replacing Chrome's default focus style (esp. just for links) seems presumptuous. Component designers/developers can make the decision on when to modify these browser defaults. Fix gh-216 --- normalize.css | 8 -------- 1 file changed, 8 deletions(-) diff --git a/normalize.css b/normalize.css index 9d23b7f2b..cd2bbee1f 100644 --- a/normalize.css +++ b/normalize.css @@ -90,14 +90,6 @@ a { background: transparent; } -/** - * Address `outline` inconsistency between Chrome and other browsers. - */ - -a:focus { - outline: thin dotted; -} - /** * Improve readability when focused and also mouse hovered in all browsers. */ From d86aa8500ee7e8c6568413ccfc115fe437010727 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 12:59:12 -0800 Subject: [PATCH 52/86] Fix number input button cursor on OS X Chrome Fix the cursor style for Chrome's increment/decrement buttons on `input[type="number"]. For certain `font-size` values of the `input`, it causes the cursor style of the decrement button to change from `default` to `text`. Fix gh-283 --- normalize.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/normalize.css b/normalize.css index cd2bbee1f..530ef2da9 100644 --- a/normalize.css +++ b/normalize.css @@ -355,6 +355,17 @@ input[type="radio"] { padding: 0; /* 2 */ } +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + /** * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome From 20e58223c9f07607289063c649a7e0e569ec7f97 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 13:03:24 -0800 Subject: [PATCH 53/86] Revert `textarea` alignment modification Leave the default baseline alignment in place. Fix gh-280 --- normalize.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/normalize.css b/normalize.css index 530ef2da9..615fa33a0 100644 --- a/normalize.css +++ b/normalize.css @@ -400,13 +400,11 @@ input::-moz-focus-inner { } /** - * 1. Remove default vertical scrollbar in IE 8/9. - * 2. Improve readability and alignment in all browsers. + * Remove default vertical scrollbar in IE 8/9. */ textarea { - overflow: auto; /* 1 */ - vertical-align: top; /* 2 */ + overflow: auto; } /* ========================================================================== From e372fcd83d2de2f08ce6755660c36da7954fdb4d Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 13:15:41 -0800 Subject: [PATCH 54/86] Fix rendering of test file on mobile --- test.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.html b/test.html index ef13851bf..a2257bada 100644 --- a/test.html +++ b/test.html @@ -2,7 +2,7 @@ - + Normalize CSS From 68322db312c1c8eb9fd1e9d2571c7728ea9c4cbe Mon Sep 17 00:00:00 2001 From: Oleg Korsunsky Date: Fri, 24 Jan 2014 13:16:11 -0800 Subject: [PATCH 55/86] Address `button` overflow in IE 8/9/10 --- normalize.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index 615fa33a0..7ae90bb87 100644 --- a/normalize.css +++ b/normalize.css @@ -297,12 +297,19 @@ optgroup { font-weight: bold; } +/** + * Address `overflow` set to `hidden` in IE 8/9/10. + */ + +button { + overflow: visible; +} + /** * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */ -button, input { line-height: normal; } From 45cc401523c73a7ea48d433a269a7164059a4812 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 13:23:52 -0800 Subject: [PATCH 56/86] Change indentation: 4 -> 2 spaces --- CONTRIBUTING.md | 2 +- normalize.css | 130 ++++++++++++++++++++++++------------------------ 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4c526bb08..abcbae257 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -172,6 +172,6 @@ cutting new releases. added to the CHANGELOG (inc. date), and the `bower.json`, `component.json`, and `normalize.css` files. 3. The commit message must be of `v0.0.0` format. -4. Create an annotated tag for the version: `git tag -m "v0.0.0" v0.0.0`. +4. Create an annotated tag for the version: `git tag -m "v0.0.0" 0.0.0`. 5. Push the changes and tags to GitHub: `git push --tags origin master` 6. Checkout the `gh-pages` branch and follow the instructions in the README. diff --git a/normalize.css b/normalize.css index 7ae90bb87..955481d6a 100644 --- a/normalize.css +++ b/normalize.css @@ -20,7 +20,7 @@ main, nav, section, summary { - display: block; + display: block; } /** @@ -31,7 +31,7 @@ audio, canvas, progress, video { - display: inline-block; + display: inline-block; } /** @@ -40,8 +40,8 @@ video { */ audio:not([controls]) { - display: none; - height: 0; + display: none; + height: 0; } /** @@ -51,7 +51,7 @@ audio:not([controls]) { [hidden], template { - display: none; + display: none; } /* ========================================================================== @@ -65,9 +65,9 @@ template { */ html { - font-family: sans-serif; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ } /** @@ -75,7 +75,7 @@ html { */ body { - margin: 0; + margin: 0; } /* ========================================================================== @@ -87,7 +87,7 @@ body { */ a { - background: transparent; + background: transparent; } /** @@ -96,7 +96,7 @@ a { a:active, a:hover { - outline: 0; + outline: 0; } /* ========================================================================== @@ -109,8 +109,8 @@ a:hover { */ h1 { - font-size: 2em; - margin: 0.67em 0; + font-size: 2em; + margin: 0.67em 0; } /** @@ -118,7 +118,7 @@ h1 { */ abbr[title] { - border-bottom: 1px dotted; + border-bottom: 1px dotted; } /** @@ -127,7 +127,7 @@ abbr[title] { b, strong { - font-weight: bold; + font-weight: bold; } /** @@ -135,7 +135,7 @@ strong { */ dfn { - font-style: italic; + font-style: italic; } /** @@ -143,9 +143,9 @@ dfn { */ hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; } /** @@ -153,8 +153,8 @@ hr { */ mark { - background: #ff0; - color: #000; + background: #ff0; + color: #000; } /** @@ -165,8 +165,8 @@ code, kbd, pre, samp { - font-family: monospace, serif; - font-size: 1em; + font-family: monospace, serif; + font-size: 1em; } /** @@ -174,7 +174,7 @@ samp { */ pre { - white-space: pre-wrap; + white-space: pre-wrap; } /** @@ -182,7 +182,7 @@ pre { */ q { - quotes: "\201C" "\201D" "\2018" "\2019"; + quotes: "\201C" "\201D" "\2018" "\2019"; } /** @@ -190,7 +190,7 @@ q { */ small { - font-size: 80%; + font-size: 80%; } /** @@ -199,18 +199,18 @@ small { sub, sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; } sup { - top: -0.5em; + top: -0.5em; } sub { - bottom: -0.25em; + bottom: -0.25em; } /* ========================================================================== @@ -222,7 +222,7 @@ sub { */ img { - border: 0; + border: 0; } /** @@ -230,7 +230,7 @@ img { */ svg:not(:root) { - overflow: hidden; + overflow: hidden; } /* ========================================================================== @@ -242,7 +242,7 @@ svg:not(:root) { */ figure { - margin: 1em 40px; + margin: 1em 40px; } /* ========================================================================== @@ -255,10 +255,10 @@ figure { */ fieldset { - border: 1px solid #c0c0c0; /* 1 */ - margin: 0 2px; /* 1 */ - min-width: 0; /* 2 */ - padding: 0.35em 0.625em 0.75em; /* 1 */ + border: 1px solid #c0c0c0; /* 1 */ + margin: 0 2px; /* 1 */ + min-width: 0; /* 2 */ + padding: 0.35em 0.625em 0.75em; /* 1 */ } /** @@ -267,8 +267,8 @@ fieldset { */ legend { - border: 0; /* 1 */ - padding: 0; /* 2 */ + border: 0; /* 1 */ + padding: 0; /* 2 */ } /** @@ -283,9 +283,9 @@ input, optgroup, select, textarea { - color: inherit; /* 1 */ - font: inherit; /* 2 */ - margin: 0; /* 3 */ + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ } /** @@ -294,7 +294,7 @@ textarea { */ optgroup { - font-weight: bold; + font-weight: bold; } /** @@ -302,7 +302,7 @@ optgroup { */ button { - overflow: visible; + overflow: visible; } /** @@ -311,7 +311,7 @@ button { */ input { - line-height: normal; + line-height: normal; } /** @@ -323,7 +323,7 @@ input { button, select { - text-transform: none; + text-transform: none; } /** @@ -338,8 +338,8 @@ button, html input[type="button"], /* 1 */ input[type="reset"], input[type="submit"] { - -webkit-appearance: button; /* 2 */ - cursor: pointer; /* 3 */ + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ } /** @@ -348,7 +348,7 @@ input[type="submit"] { button[disabled], html input[disabled] { - cursor: default; + cursor: default; } /** @@ -358,8 +358,8 @@ html input[disabled] { input[type="checkbox"], input[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ } /** @@ -370,7 +370,7 @@ input[type="radio"] { input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { - height: auto; + height: auto; } /** @@ -380,10 +380,10 @@ input[type="number"]::-webkit-outer-spin-button { */ input[type="search"] { - -webkit-appearance: textfield; /* 1 */ - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; /* 2 */ - box-sizing: content-box; + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; } /** @@ -393,7 +393,7 @@ input[type="search"] { input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; + -webkit-appearance: none; } /** @@ -402,8 +402,8 @@ input[type="search"]::-webkit-search-decoration { button::-moz-focus-inner, input::-moz-focus-inner { - border: 0; - padding: 0; + border: 0; + padding: 0; } /** @@ -411,7 +411,7 @@ input::-moz-focus-inner { */ textarea { - overflow: auto; + overflow: auto; } /* ========================================================================== @@ -423,11 +423,11 @@ textarea { */ table { - border-collapse: collapse; - border-spacing: 0; + border-collapse: collapse; + border-spacing: 0; } td, th { - padding: 0; + padding: 0; } From 37ea6ae1874dce2ecd4aa3a5b0edc89f7da29337 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 21:59:28 -0800 Subject: [PATCH 57/86] Fix vertical alignment of `progress` Chrome, Firefox, and Opera set `vertical-align: -0.2em`. The browser implementations aren't great. They scale badly with font size and when the height of the element is changed. Aligning them to the baseline, as IE does, helps make their alignment consistent with other similar elements. --- normalize.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/normalize.css b/normalize.css index 955481d6a..a7a42e76a 100644 --- a/normalize.css +++ b/normalize.css @@ -24,14 +24,16 @@ summary { } /** - * Correct `inline-block` display not defined in IE 8/9. + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */ audio, canvas, progress, video { - display: inline-block; + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ } /** From a8edd0c5aa06b905e8e1550fd6a5c01e46375194 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 22:04:39 -0800 Subject: [PATCH 58/86] Fix `pre` text formatting and overflow Don't visually break `pre` text over multiple lines. Trigger a scrollbar when the preformatted text is too wide for its container. --- normalize.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/normalize.css b/normalize.css index a7a42e76a..41d438124 100644 --- a/normalize.css +++ b/normalize.css @@ -172,11 +172,11 @@ samp { } /** - * Improve readability of pre-formatted text in all browsers. + * Contain overflow in all browsers. */ pre { - white-space: pre-wrap; + overflow: auto; } /** From 7e80851c5fd2d49772235e2d453c9e1caaeb2bc5 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 23:09:36 -0800 Subject: [PATCH 59/86] Fix i18n for `q` element Don't attempt to normalize `q` because it prevents the browser from automatically adapting the quotes used based on the value of a `lang` attribute. --- normalize.css | 8 -------- 1 file changed, 8 deletions(-) diff --git a/normalize.css b/normalize.css index 41d438124..0fbd474e0 100644 --- a/normalize.css +++ b/normalize.css @@ -179,14 +179,6 @@ pre { overflow: auto; } -/** - * Set consistent quote types. - */ - -q { - quotes: "\201C" "\201D" "\2018" "\2019"; -} - /** * Address inconsistent and variable font size in all browsers. */ From a2ae3b5d7a49b67da03ff9b0878c2d2a53fbc821 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 25 Jan 2014 16:50:27 -0800 Subject: [PATCH 60/86] Revert 6992935807a5ed7ec60fb97e3f9fd02cc102a110 Doesn't work in Firefox. --- normalize.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/normalize.css b/normalize.css index 0fbd474e0..691996f52 100644 --- a/normalize.css +++ b/normalize.css @@ -244,15 +244,13 @@ figure { ========================================================================== */ /** - * 1. Define consistent border, margin, and padding. - * 2. Address width being affected by wide descendants in Chrome and Firefox. + * Define consistent border, margin, and padding. */ fieldset { - border: 1px solid #c0c0c0; /* 1 */ - margin: 0 2px; /* 1 */ - min-width: 0; /* 2 */ - padding: 0.35em 0.625em 0.75em; /* 1 */ + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; } /** From 3fe0df0fe511a914bee47c6e11b1832a5a6830ff Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 25 Jan 2014 20:37:46 -0800 Subject: [PATCH 61/86] Reorganise normalize.css and edit comments Update comments in line with any changes browsers have introduced. Minor reordering of rulesets. --- normalize.css | 226 +++++++++++++++++++++++++------------------------- 1 file changed, 112 insertions(+), 114 deletions(-) diff --git a/normalize.css b/normalize.css index 691996f52..ffde8a6e5 100644 --- a/normalize.css +++ b/normalize.css @@ -1,7 +1,26 @@ /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ -/* ========================================================================== - HTML5 display definitions +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions ========================================================================== */ /** @@ -56,32 +75,7 @@ template { display: none; } -/* ========================================================================== - Base - ========================================================================== */ - -/** - * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - */ - -html { - font-family: sans-serif; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/** - * Remove default margin. - */ - -body { - margin: 0; -} - -/* ========================================================================== - Links +/* Links ========================================================================== */ /** @@ -101,20 +95,9 @@ a:hover { outline: 0; } -/* ========================================================================== - Typography +/* Text-level semantics ========================================================================== */ -/** - * Address variable `h1` font-size and margin within `section` and `article` - * contexts in Firefox 4+, Safari 5, and Chrome. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - /** * Address styling not present in IE 8/9, Safari 5, and Chrome. */ @@ -141,13 +124,13 @@ dfn { } /** - * Address differences between Firefox and other browsers. + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari 5, and Chrome. */ -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; +h1 { + font-size: 2em; + margin: 0.67em 0; } /** @@ -159,26 +142,6 @@ mark { color: #000; } -/** - * Correct font family set oddly in Safari 5 and Chrome. - */ - -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 1em; -} - -/** - * Contain overflow in all browsers. - */ - -pre { - overflow: auto; -} - /** * Address inconsistent and variable font size in all browsers. */ @@ -207,8 +170,7 @@ sub { bottom: -0.25em; } -/* ========================================================================== - Embedded content +/* Embedded content ========================================================================== */ /** @@ -227,8 +189,7 @@ svg:not(:root) { overflow: hidden; } -/* ========================================================================== - Figures +/* Grouping content ========================================================================== */ /** @@ -239,34 +200,48 @@ figure { margin: 1em 40px; } -/* ========================================================================== - Forms - ========================================================================== */ +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} /** - * Define consistent border, margin, and padding. + * Contain overflow in all browsers. */ -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; +pre { + overflow: auto; } /** - * 1. Correct `color` not being inherited in IE 8/9. - * 2. Remove padding so people aren't caught out if they zero out fieldsets. + * Address odd `em`-unit font size rendering in all browsers. */ -legend { - border: 0; /* 1 */ - padding: 0; /* 2 */ +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; } +/* Forms + ========================================================================== */ + /** - * 1. Correct color not being inherited in all browsers. - * Known issue: `select` will not inherit color in Chrome and Safari on OS X. - * 2. Correct font properties not being inherited in all browsers. + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. */ @@ -280,15 +255,6 @@ textarea { margin: 0; /* 3 */ } -/** - * Re-apply the `font-weight` to avoid modifying the default UX, and because - * the default cannot be changed in Chrome and Safari on OS X. - */ - -optgroup { - font-weight: bold; -} - /** * Address `overflow` set to `hidden` in IE 8/9/10. */ @@ -297,20 +263,11 @@ button { overflow: visible; } -/** - * Address Firefox 4+ setting `line-height` on `input` using `!important` in - * the UA stylesheet. - */ - -input { - line-height: normal; -} - /** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. - * Correct `select` style inheritance in Firefox 4+ and Opera. + * Correct `button` style inheritance in Firefox, IE 8+, and Opera + * Correct `select` style inheritance in Firefox. */ button, @@ -344,6 +301,28 @@ html input[disabled] { } /** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * * 1. Address box sizing set to `content-box` in IE 8/9/10. * 2. Remove excess padding in IE 8/9/10. */ @@ -379,8 +358,9 @@ input[type="search"] { } /** - * Remove inner padding and search cancel button in Safari 5 and Chrome - * on OS X. + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). */ input[type="search"]::-webkit-search-cancel-button, @@ -389,13 +369,23 @@ input[type="search"]::-webkit-search-decoration { } /** - * Remove inner padding and border in Firefox 4+. + * Define consistent border, margin, and padding. */ -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ } /** @@ -406,8 +396,16 @@ textarea { overflow: auto; } -/* ========================================================================== - Tables +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables ========================================================================== */ /** From 5b57298fc3ed1be2cafc7c02aef83a7f07bb1a5e Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 25 Jan 2014 20:39:18 -0800 Subject: [PATCH 62/86] Explicit tests for each normalization Use a test-like presentation to make it clearer what the test file is looking to test. Don't use the file as a dumping ground for every HTML element. This change makes the tests more focused and useful. Fix gh-276 Fix gh-284 Fix gh-285 --- test.html | 887 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 506 insertions(+), 381 deletions(-) diff --git a/test.html b/test.html index a2257bada..e6d63e7b2 100644 --- a/test.html +++ b/test.html @@ -1,383 +1,508 @@ - - - - Normalize CSS - - - - - -

Heading 1

-

Heading 2

-

Heading 3

-

Heading 4

-
Heading 5
-
Heading 6
- -
-

Heading 1 (in section)

-

Heading 2 (in section)

-

Heading 3 (in section)

-

Heading 4 (in section)

-
Heading 5 (in section)
-
Heading 6 (in section)
-
- -
-

Heading 1 (in article)

-

Heading 2 (in article)

-

Heading 3 (in article)

-

Heading 4 (in article)

-
Heading 5 (in article)
-
Heading 6 (in article)
-
- -
-
-

Heading 1 (in hgroup)

-

Heading 2 (in hgroup)

-
- -
- -

Text-level semantics

- - - -

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m.

-

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m.

- -
Address: somewhere, world
- -
- -
- -

- The a element example
- The abbr element and abbr element with title examples
- The b element example
- The cite element example
- The code element example
- The del element example
- The dfn element and dfn element with title examples
- The em element example
- The i element example
- The img element example
- The ins element example
- The kbd element example
- The mark element example
- The q element inside a q element example
- The s element example
- The samp element example
- The small element example
- The span element example
- The strong element example
- The sub element example
- The sup element example
- The u element example
- The var element example -

- -

Template content

- - -

Embedded content

- -

audio

- - - - -

img

- - - - -

svg

- - - - - -

video

- - - - -

Interactive content

- -

details / summary

-
- More info -

Additional information

-
    -
  • Point 1
  • -
  • Point 2
  • -
-
- -

Grouping content

- -

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m.

- -

pre

- -
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et me.
- -
<html>
-    <head>
-    </head>
-    <body>
-        <div class="main"> <div>
-    </body>
-</html>
- -

blockquote

- -
-

Some sort of famous witty quote marked up with a <blockquote> and a child <p> element.

-
- -
Even better philosophical quote marked up with just a <blockquote> element.
- -

ordered list

- -
    -
  1. list item 1
  2. -
  3. list item 1 -
      -
    1. list item 2
    2. -
    3. list item 2 -
        -
      1. list item 3
      2. -
      3. list item 3
      4. -
      -
    4. -
    5. list item 2
    6. -
    7. list item 2
    8. -
    -
  4. -
  5. list item 1
  6. -
  7. list item 1
  8. -
- -

unordered list

- -
    -
  • list item 1
  • -
  • list item 1 -
      -
    • list item 2
    • -
    • list item 2 -
        -
      • list item 3
      • -
      • list item 3
      • -
      -
    • -
    • list item 2
    • -
    • list item 2
    • -
    -
  • -
  • list item 1
  • -
  • list item 1
  • -
- -

description list

- -
-
Description name
-
Description value
-
Description name
-
Description value
-
Description value
-
Description name
-
Description name
-
Description value
-
- -

figure

- -
- -
Figcaption content
-
- -

Tabular data

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Jimi Hendrix - albums
AlbumYearPrice
AlbumYearPrice
Are You Experienced1967$10.00
Axis: Bold as Love1967$12.00
Electric Ladyland1968$10.00
Band of Gypsys1970$12.00
- -

Forms

- - -
-
- Fieldset with a wider child -
-
-
- -
- Color inheritance -

-

-

-

-

-
- -
- Inputs as descendents of labels (form legend). This doubles up as a long legend that can test word wrapping. -

-

-

-

-

-

-

- -

-

-

-

- -

-

-

-
- -
- Inputs as siblings of labels -

-

-

-

-

-

-

-

- -

-

-

-

- -

-

-
- -
- Clickable inputs and buttons -

-

-

-

-

- - -

-

-

-

-
- -
- box-sizing tests -
-
-
-
-
- -
-
-
-
-
-
-
-
- -
-
- -
-
- -
-
-
-
- -
-
-
-
- - - - + + +Normalize CSS: UI tests + + + + +
+ . + +

Normalize.css: UI tests

+ +

html

+

should have san-serif font family (opinionated)

+
+ abcdefghijklmnopqrstuvwxyz +
+ +

body

+

should have no margin (opinionated)

+
+ (there should be no red background visible on this page) +
+ +

article, aside, details, figure, figcaption, footer, header, hgroup, main, nav, section, summary

+

should render as block

+
+
article
+ +
+ summary + details +
+
+ figure +
figcaption
+
+
footer
+
header
+
hgroup
+
main
+ +
section
+
+ +

audio, canvas, progress, video

+

should render as inline-block and baseline-aligned

+
+ + canvas + progress + +
+ +

audio:not([controls]), template, [hidden]

+

should not display

+
+ + + +
+ +

a

+

should have a transparent background when active

+ +

should not have a focus outline when both focused and hovered (opinionated)

+ + +

abbr[title]

+

should have a dotted bottom border

+
+ abbr +
+ +

b, strong

+

should have bold font-weight

+
+ b + strong +
+ +

dfn

+

should have italic font-style

+
+ dfn +
+ +

h1

+

should not change size within an article

+
+

Heading (control)

+
+

Heading (in article)

+
+
+

should not change size within a section

+
+

Heading (control)

+
+

Heading (in section)

+
+
+ +

mark

+

should have a yellow background

+
+ mark +
+ +

small

+

should render equally small in all browsers

+
+ control. small. +
+ +

sub and sup

+

should not affect a line's visual line-height

+
+

control.

+

control. sub.

+

control. sup.

+
+ +

img

+

should not have a border when wrapped in an anchor

+ + +

svg

+

should not overflow

+
+ + + +
+ +

figure

+

should have margins

+
+
+ +
+
+ +

hr

+

should have a content-box box model

+
+
+
+ +

pre

+

should trigger a scrollbar when too wide for its container

+
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et me.
+
+ +

code, kbd, pre, samp

+

should render em-unit preformatted text at the same absolute size as normal text

+
+ span: abcdefghijklmnopqrstuvwxyz.
+ code: abcdefghijklmnopqrstuvwxyz.
+ kbd: abcdefghijklmnopqrstuvwxyz.
+ samp: abcdefghijklmnopqrstuvwxyz. +
pre: abcdefghijklmnopqrstuvwxyz.
+
+ +

button, input, optgroup, select, textarea

+

should inherit color from ancestor

+
+
+
+
+ +
+

should inherit font from ancestor

+
+
+
+
+ +
+

should not have margins

+
+ + + + + +
+ +

button

+

should have visible overflow

+
+ + +
+ +

button, select

+

should not inherit text-transform

+
+ + +
+ +

button and button-style input

+

should have pointer cursor style

+
+

+

+

+

+

+
+

should be stylable

+
+ +

+

+

+

+

+
+ +

disabled button and input

+

should have default cursor style

+
+

+

+

+

+

+
+ +

button, input

+

should not have extra inner padding in Firefox

+
+ +

+

+

+

+

+
+ +

input

+

should not inherit line-height

+
+ +
+ +

input[type="checkbox"], input[type="radio"]

+

should have a border-box box model

+
+ + + +
+

should not have padding

+
+ + +
+ +

input[type="number"]

+

should display a default cursor for the decrement button's click target in Chrome

+
+ +
+ +

input[type="search"]

+

should be stylable

+
+ +
+

should have a content-box box model

+
+
+ +
+
+

should not have a cancel button in Safari or Chrome

+
+ +
+ +

fieldset

+

should have consistent border, padding, and margin

+
+
+
+
+
+ +

legend

+

should inherit color

+
+
+ legend +
+
+

should not have padding

+
+
+ legend +
+
+ +

legend

+

should not have a scrollbar unless overflowing

+
+ +
+ +

table

+

should not have spaces between cells

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Jimi Hendrix - albums
AlbumYearPrice
AlbumYearPrice
Are You Experienced1967$10.00
Axis: Bold as Love1967$12.00
Electric Ladyland1968$10.00
Band of Gypsys1970$12.00
+
+ +
From d00c1c98ae09f760ee8f9a72a61d92dae88cdc30 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 25 Jan 2014 20:53:05 -0800 Subject: [PATCH 63/86] Update browser support --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 273482726..b1dd82517 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The project relies on researching the differences between default browser styles in order to precisely target only the styles that need or benefit from normalizing. -[Check out the demo](http://necolas.github.io/normalize.css/latest/test.html) +[View the test file](http://necolas.github.io/normalize.css/latest/test.html) ## Install @@ -34,10 +34,11 @@ library code. ## Browser support -* Google Chrome -* Mozilla Firefox 4+ -* Apple Safari 5+ -* Opera 12+ +* Google Chrome (latest) +* Mozilla Firefox (latest) +* Mozilla Firefox 4 +* Opera (latest) +* Apple Safari 6+ * Internet Explorer 8+ [Normalize.css v1 provides legacy browser From 488f365fdd04fb9b2c9e85718952a698cb2e6e84 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 25 Jan 2014 21:06:09 -0800 Subject: [PATCH 64/86] Update CHANGELOG --- CHANGELOG.md | 14 ++++++++++++++ test.html | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86d0d1df5..71ffe403e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ === HEAD +* Explicit tests for each normalization. +* Fix i18n for `q` element. +* Fix `pre` text formatting and overflow. +* Fix vertical alignment of `progress`. +* Address `button` overflow in IE 8/9/10. +* Revert `textarea` alignment modification. +* Fix number input button cursor in Chrome on OS X. +* Remove `a:focus` outline normalization. +* Fix `figure` margin normalization. +* Normalize `optgroup`. +* Remove default table cell padding. +* Set correct display for `progress` in IE 8/9. +* Fix `font` and `color` inheritance for forms. + === 2.1.3 (August 26, 2013) * Fix component.json. diff --git a/test.html b/test.html index e6d63e7b2..e85aafb76 100644 --- a/test.html +++ b/test.html @@ -334,7 +334,7 @@

should have pointer cursor style

-

should be stylable

+

should be styleable

#button-like-style button, @@ -418,7 +418,7 @@

should display a default cursor for the decrement button's c

input[type="search"]

-

should be stylable

+

should be styleable

From 7f1e59a9df84ce92e8db31fa822f859573a628bb Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 25 Jan 2014 21:14:26 -0800 Subject: [PATCH 65/86] v3.0.0-rc.1 --- CHANGELOG.md | 2 ++ bower.json | 2 +- component.json | 2 +- normalize.css | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71ffe403e..53fa8b5f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ === HEAD +=== 3.0.0-rc.1 (January 26, 2014) + * Explicit tests for each normalization. * Fix i18n for `q` element. * Fix `pre` text formatting and overflow. diff --git a/bower.json b/bower.json index 6e5e4b758..12885037a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "2.1.3", + "version": "3.0.0-rc.1", "main": "normalize.css", "author": "Nicolas Gallagher", "ignore": [ diff --git a/component.json b/component.json index 1310efffd..ab2a729fe 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "normalize-css", "repo": "necolas/normalize.css", - "version": "2.1.3", + "version": "3.0.0-rc.1", "styles": ["normalize.css"], "author": "Nicolas Gallagher", "license": "MIT" diff --git a/normalize.css b/normalize.css index ffde8a6e5..a21e37801 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ +/*! normalize.css v3.0.0-rc.1 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. From 3d8f336d171354d615967b5ade85773aad83330f Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 26 Jan 2014 10:18:43 -0800 Subject: [PATCH 66/86] Fix `textarea` test title --- test.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.html b/test.html index e85aafb76..6eb58e9fa 100644 --- a/test.html +++ b/test.html @@ -455,7 +455,7 @@

should not have padding

-

legend

+

textarea

should not have a scrollbar unless overflowing

From f3db654b78ddfa84c4d33d8427126eb7bd745ca0 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 27 Jan 2014 17:09:24 +0100 Subject: [PATCH 67/86] =?UTF-8?q?Fix=20=E2=80=98san-serif=E2=80=99=20typo?= =?UTF-8?q?=20in=20test=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.html b/test.html index 6eb58e9fa..002b07b15 100644 --- a/test.html +++ b/test.html @@ -86,7 +86,7 @@

Normalize.css: UI tests

html

-

should have san-serif font family (opinionated)

+

should have sans-serif font family (opinionated)

abcdefghijklmnopqrstuvwxyz
From 6ec1a10b5d67b5c8085223aa62a5f63989d8adbc Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 28 Jan 2014 09:57:23 -0800 Subject: [PATCH 68/86] v3.0.0 --- CHANGELOG.md | 2 ++ README.md | 2 +- bower.json | 2 +- component.json | 2 +- normalize.css | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53fa8b5f0..81be7a251 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ === HEAD +=== 3.0.0 (January 28, 2014) + === 3.0.0-rc.1 (January 26, 2014) * Explicit tests for each normalization. diff --git a/README.md b/README.md index b1dd82517..91dc161c4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# normalize.css v2 +# normalize.css v3 Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. diff --git a/bower.json b/bower.json index 12885037a..b43cfe289 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "3.0.0-rc.1", + "version": "3.0.0", "main": "normalize.css", "author": "Nicolas Gallagher", "ignore": [ diff --git a/component.json b/component.json index ab2a729fe..b9061e90f 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "normalize-css", "repo": "necolas/normalize.css", - "version": "3.0.0-rc.1", + "version": "3.0.0", "styles": ["normalize.css"], "author": "Nicolas Gallagher", "license": "MIT" diff --git a/normalize.css b/normalize.css index a21e37801..196d223f1 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v3.0.0-rc.1 | MIT License | git.io/normalize */ +/*! normalize.css v3.0.0 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. From 058ee3b0adf88c4cdd3c9c6b4604d643f39f6075 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sun, 16 Feb 2014 20:08:25 -0800 Subject: [PATCH 69/86] Add package.json --- CHANGELOG.md | 2 ++ README.md | 6 ++++-- bower.json | 21 +++++++++++---------- component.json | 12 ++++++------ package.json | 17 +++++++++++++++++ 5 files changed, 40 insertions(+), 18 deletions(-) create mode 100644 package.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 81be7a251..ff479842d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ === HEAD +* Add package.json for npm support. + === 3.0.0 (January 28, 2014) === 3.0.0-rc.1 (January 26, 2014) diff --git a/README.md b/README.md index 91dc161c4..80ec51a20 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,11 @@ normalizing. Download from the [project page](http://necolas.github.io/normalize.css/). -Install with [Bower](http://bower.io/): `bower install --save normalize-css` +Install with [Component(1)](https://github.com/component/component/): `component install necolas/normalize.css` -Install with [Component(1)](http://component.io/): `component install necolas/normalize.css` +Install with [npm](http://npmjs.org/): `npm install --save normalize.css` + +Install with [Bower](http://bower.io/): `bower install --save normalize.css` ## What does it do? diff --git a/bower.json b/bower.json index b43cfe289..473f60fc6 100644 --- a/bower.json +++ b/bower.json @@ -1,12 +1,13 @@ { - "name": "normalize-css", - "version": "3.0.0", - "main": "normalize.css", - "author": "Nicolas Gallagher", - "ignore": [ - "CHANGELOG.md", - "CONTRIBUTING.md", - "component.json", - "test.html" - ] + "name": "normalize-css", + "version": "3.0.0", + "main": "normalize.css", + "author": "Nicolas Gallagher", + "ignore": [ + "CHANGELOG.md", + "CONTRIBUTING.md", + "component.json", + "package.json", + "test.html" + ] } diff --git a/component.json b/component.json index b9061e90f..0a9b8b646 100644 --- a/component.json +++ b/component.json @@ -1,8 +1,8 @@ { - "name": "normalize-css", - "repo": "necolas/normalize.css", - "version": "3.0.0", - "styles": ["normalize.css"], - "author": "Nicolas Gallagher", - "license": "MIT" + "name": "normalize.css", + "repo": "necolas/normalize.css", + "version": "3.0.0", + "styles": ["normalize.css"], + "author": "Nicolas Gallagher", + "license": "MIT" } diff --git a/package.json b/package.json new file mode 100644 index 000000000..a7e14e240 --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "normalize.css", + "version": "3.0.0", + "description": "Normalize.css as a node packaged module", + "style": "normalize.css", + "files": [ + "normalize.css", + "component.json" + ], + "homepage": "http://necolas.github.io/normalize.css", + "repository": { + "type": "git", + "url": "git://github.com/necolas/normalize.css.git" + }, + "author": "Nicolas Gallagher", + "license": "MIT" +} From bb3a1304a08adf88fb8ac2361269ea47a97691b0 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 17 Feb 2014 12:17:55 -0800 Subject: [PATCH 70/86] More accurate comments Fix #299 Fix #292 Fix #304 --- normalize.css | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/normalize.css b/normalize.css index 196d223f1..74b4c79e3 100644 --- a/normalize.css +++ b/normalize.css @@ -24,7 +24,9 @@ body { ========================================================================== */ /** - * Correct `block` display not defined in IE 8/9. + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. + * Correct `block` display not defined for `main` in IE 11. */ article, @@ -66,8 +68,8 @@ audio:not([controls]) { } /** - * Address `[hidden]` styling not present in IE 8/9. - * Hide the `template` element in IE, Safari, and Firefox < 22. + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */ [hidden], @@ -99,7 +101,7 @@ a:hover { ========================================================================== */ /** - * Address styling not present in IE 8/9, Safari 5, and Chrome. + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ abbr[title] { @@ -107,7 +109,7 @@ abbr[title] { } /** - * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ b, @@ -116,7 +118,7 @@ strong { } /** - * Address styling not present in Safari 5 and Chrome. + * Address styling not present in Safari and Chrome. */ dfn { @@ -125,7 +127,7 @@ dfn { /** * Address variable `h1` font-size and margin within `section` and `article` - * contexts in Firefox 4+, Safari 5, and Chrome. + * contexts in Firefox 4+, Safari, and Chrome. */ h1 { @@ -174,7 +176,7 @@ sub { ========================================================================== */ /** - * Remove border when inside `a` element in IE 8/9. + * Remove border when inside `a` element in IE 8/9/10. */ img { @@ -182,7 +184,7 @@ img { } /** - * Correct overflow displayed oddly in IE 9. + * Correct overflow not hidden in IE 9/10/11. */ svg:not(:root) { @@ -193,7 +195,7 @@ svg:not(:root) { ========================================================================== */ /** - * Address margin not present in IE 8/9 and Safari 5. + * Address margin not present in IE 8/9 and Safari. */ figure { @@ -242,7 +244,7 @@ samp { * 1. Correct color not being inherited. * Known issue: affects color of disabled elements. * 2. Correct font properties not being inherited. - * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */ button, @@ -256,7 +258,7 @@ textarea { } /** - * Address `overflow` set to `hidden` in IE 8/9/10. + * Address `overflow` set to `hidden` in IE 8/9/10/11. */ button { @@ -266,7 +268,7 @@ button { /** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Firefox, IE 8+, and Opera + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `select` style inheritance in Firefox. */ @@ -345,8 +347,8 @@ input[type="number"]::-webkit-outer-spin-button { } /** - * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome * (include `-moz` to future-proof). */ @@ -379,7 +381,7 @@ fieldset { } /** - * 1. Correct `color` not being inherited in IE 8/9. + * 1. Correct `color` not being inherited in IE 8/9/10/11. * 2. Remove padding so people aren't caught out if they zero out fieldsets. */ @@ -389,7 +391,7 @@ legend { } /** - * Remove default vertical scrollbar in IE 8/9. + * Remove default vertical scrollbar in IE 8/9/10/11. */ textarea { From de39c2c76e72545f4af376f0b9f492ed3d868158 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 26 Mar 2014 21:46:07 -0700 Subject: [PATCH 71/86] Fix indentation --- test.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.html b/test.html index 002b07b15..03d2bf690 100644 --- a/test.html +++ b/test.html @@ -389,7 +389,7 @@

should not inherit line-height

input[type="checkbox"], input[type="radio"]

should have a border-box box model

- + #radio-box-model { width: 200px; border: 1px solid red; @@ -471,7 +471,7 @@

should not have spaces between cells

Album Year Price - + From 071af828a2f6c882d5de1536135bf13b5711f554 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 26 Mar 2014 21:49:40 -0700 Subject: [PATCH 72/86] 3.0.1 --- CHANGELOG.md | 2 ++ bower.json | 2 +- component.json | 2 +- normalize.css | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff479842d..5c358bec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ === HEAD +=== 3.0.1 (March 27, 2014) + * Add package.json for npm support. === 3.0.0 (January 28, 2014) diff --git a/bower.json b/bower.json index 473f60fc6..9ddcdd0ae 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "3.0.0", + "version": "3.0.1", "main": "normalize.css", "author": "Nicolas Gallagher", "ignore": [ diff --git a/component.json b/component.json index 0a9b8b646..ac21fb1fe 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "normalize.css", "repo": "necolas/normalize.css", - "version": "3.0.0", + "version": "3.0.1", "styles": ["normalize.css"], "author": "Nicolas Gallagher", "license": "MIT" diff --git a/normalize.css b/normalize.css index 74b4c79e3..08f895079 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v3.0.0 | MIT License | git.io/normalize */ +/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. diff --git a/package.json b/package.json index a7e14e240..19afaa3ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "normalize.css", - "version": "3.0.0", + "version": "3.0.1", "description": "Normalize.css as a node packaged module", "style": "normalize.css", "files": [ From dd8d75c3491e5ce12dcd92f1b9c74cdd8b901766 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 22 Jul 2014 10:56:31 -0700 Subject: [PATCH 73/86] Add extended docs to README Additional details to clarify the esoteric parts of normalize.css. Fix #353 --- README.md | 56 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 44 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 80ec51a20..5518f3046 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,15 @@ normalizing. ## Install -Download from the [project page](http://necolas.github.io/normalize.css/). +* [npm](http://npmjs.org/): `npm install --save normalize.css` +* [Component(1)](https://github.com/component/component/): `component install necolas/normalize.css` +* [Bower](http://bower.io/): `bower install --save normalize.css` +* [Download](http://necolas.github.io/normalize.css/latest/normalize.css). -Install with [Component(1)](https://github.com/component/component/): `component install necolas/normalize.css` - -Install with [npm](http://npmjs.org/): `npm install --save normalize.css` +No other styles should come before Normalize.css. -Install with [Bower](http://bower.io/): `bower install --save normalize.css` +It is recommended that you include the `normalize.css` file as untouched +library code. ## What does it do? @@ -27,13 +29,6 @@ Install with [Bower](http://bower.io/): `bower install --save normalize.css` * Improves usability with subtle improvements. * Explains what code does using detailed comments. -## How to use it - -No other styles should come before Normalize.css. - -It is recommended that you include the `normalize.css` file as untouched -library code. - ## Browser support * Google Chrome (latest) @@ -47,6 +42,43 @@ library code. support](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+), but is no longer actively developed. +## Extended details + +Additional detail and explanation of the esoteric parts of normalize.css. + +#### `pre, code, kbd, samp` + +The `font-family: monospace, monospace` hack fixes the inheritance and scaling +of font-size for preformated text. The duplication of `monospace` is +intentional. [Source](http://en.wikipedia.org/wiki/User:Davidgothberg/Test59). + +#### `sub, sup` + +Normally, using `sub` or `sup` affects the line-box height of text in all +browsers. [Source](http://gist.github.com/413930). + +#### `svg:not(:root)` + +Adding `overflow: hidden` fixes IE9's SVG rendering. Earlier versions of IE +don't support SVG, so we can safely use the `:not()` and `:root` selectors that +modern browsers use in the default UA stylesheets to apply this style. [SVG +Mailing List discussion](http://lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0339.html) + +#### `input[type="search"]` + +The search input is not fully stylable by default. In Chrome and Safari on +OSX/iOS you can't control `font`, `padding`, `border`, or `background`. In +Chrome and Safari on Windows you can't control `border` properly. It will apply +`border-width` but will only show a border color (which cannot be controlled) +for the outer 1px of that border. Applying `-webkit-appearance: textfield` +addresses these issues without removing the benefits of search inputs (e.g. +showing past searches). + +#### `legend` + +Adding `border: 0` corrects an IE 8–11 bug where `color` (yes, `color`) is not +inherited by `legend`. + ## Contributing Please read the CONTRIBUTING.md From ff1cdc2a864f8cc1abc26d78e846ef0a6a63b123 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 4 Oct 2014 11:21:56 -0700 Subject: [PATCH 74/86] Fix package.json --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 19afaa3ca..90170d732 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,7 @@ "description": "Normalize.css as a node packaged module", "style": "normalize.css", "files": [ - "normalize.css", - "component.json" + "normalize.css" ], "homepage": "http://necolas.github.io/normalize.css", "repository": { From 5962c8982997bd164f57b28464065437509de426 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 4 Oct 2014 11:38:31 -0700 Subject: [PATCH 75/86] Add `menu` element to HTML5 display definitions Fix #370 --- CHANGELOG.md | 2 ++ normalize.css | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c358bec2..d0e3ff577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ === HEAD +* Add `menu` element to HTML5 display definitions. + === 3.0.1 (March 27, 2014) * Add package.json for npm support. diff --git a/normalize.css b/normalize.css index 08f895079..9da93aa8b 100644 --- a/normalize.css +++ b/normalize.css @@ -38,6 +38,7 @@ footer, header, hgroup, main, +menu, nav, section, summary { From 3a62048dae16c711a1db7350be2414913b598da3 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Fri, 30 May 2014 16:58:58 +0200 Subject: [PATCH 76/86] Only alter 'background-color' of links in IE 10 Close #337 --- CHANGELOG.md | 1 + normalize.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0e3ff577..e632e5fc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ === HEAD +* Only alter `background-color` of links in IE 10. * Add `menu` element to HTML5 display definitions. === 3.0.1 (March 27, 2014) diff --git a/normalize.css b/normalize.css index 9da93aa8b..4777b561f 100644 --- a/normalize.css +++ b/normalize.css @@ -86,7 +86,7 @@ template { */ a { - background: transparent; + background-color: transparent; } /** From a473cee8a2ab09e7590e9fcc130834d6248350a6 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 4 Oct 2014 12:29:57 -0700 Subject: [PATCH 77/86] Fix code style --- normalize.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index 4777b561f..93482ac49 100644 --- a/normalize.css +++ b/normalize.css @@ -25,7 +25,8 @@ body { /** * Correct `block` display not defined for any HTML5 element in IE 8/9. - * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. * Correct `block` display not defined for `main` in IE 11. */ From bb82bc9b87445865415c525495b7c8b39e85e998 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 4 Oct 2014 12:39:18 -0700 Subject: [PATCH 78/86] Add 'menu' to tests --- test.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test.html b/test.html index 03d2bf690..e0e96e10d 100644 --- a/test.html +++ b/test.html @@ -97,7 +97,13 @@

should have no margin (opinionated)

(there should be no red background visible on this page)
-

article, aside, details, figure, figcaption, footer, header, hgroup, main, nav, section, summary

+

+ article, aside, details, + figure, figcaption, footer, + header, hgroup, main, + menu, nav, section, + summary +

should render as block

article
@@ -114,6 +120,7 @@

should render as block

header
hgroup
main
+
  • menu
  • section
    From d83132802e8bc10ece0c0afbe88fce83674ec252 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 4 Oct 2014 12:39:33 -0700 Subject: [PATCH 79/86] 3.0.2 --- CHANGELOG.md | 2 ++ bower.json | 2 +- component.json | 2 +- normalize.css | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e632e5fc7..49681b6b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ === HEAD +=== 3.0.2 (October 4, 2014) + * Only alter `background-color` of links in IE 10. * Add `menu` element to HTML5 display definitions. diff --git a/bower.json b/bower.json index 9ddcdd0ae..ff0fde1c5 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "3.0.1", + "version": "3.0.2", "main": "normalize.css", "author": "Nicolas Gallagher", "ignore": [ diff --git a/component.json b/component.json index ac21fb1fe..940678b75 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "normalize.css", "repo": "necolas/normalize.css", - "version": "3.0.1", + "version": "3.0.2", "styles": ["normalize.css"], "author": "Nicolas Gallagher", "license": "MIT" diff --git a/normalize.css b/normalize.css index 93482ac49..458eea1ea 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. diff --git a/package.json b/package.json index 90170d732..a3d974d5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "normalize.css", - "version": "3.0.1", + "version": "3.0.2", "description": "Normalize.css as a node packaged module", "style": "normalize.css", "files": [ From 947b1ae124cc987848262b6513242c83348a733d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Brok=C3=A6r?= Date: Thu, 13 Nov 2014 16:29:21 +0100 Subject: [PATCH 80/86] Add main property to 'package.json' --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a3d974d5a..35cd3677c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "type": "git", "url": "git://github.com/necolas/normalize.css.git" }, + "main": "normalize.css", "author": "Nicolas Gallagher", "license": "MIT" } From 1d11c9bc5323fca60f8fc9924376df7dc4893fb4 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 17 Mar 2015 11:48:59 -0700 Subject: [PATCH 81/86] Add cdnjs link to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5518f3046..f8e0d101a 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ normalizing. * [npm](http://npmjs.org/): `npm install --save normalize.css` * [Component(1)](https://github.com/component/component/): `component install necolas/normalize.css` * [Bower](http://bower.io/): `bower install --save normalize.css` +* [cdnjs](https://cdnjs.com/libraries/normalize) * [Download](http://necolas.github.io/normalize.css/latest/normalize.css). No other styles should come before Normalize.css. From 0c31dada5189a577f16fc61cbd8680e7f35bcca3 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 17 Mar 2015 11:52:17 -0700 Subject: [PATCH 82/86] Fix project URL in normalize.css file --- normalize.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index 458eea1ea..87e37d221 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ +/*! normalize.css v3.0.2 | MIT License | github.com/necolas/normalize.css */ /** * 1. Set default font family to sans-serif. From ef2b006aad2d08e3f2a0f184093d01d9eb04bcb3 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 30 Mar 2015 14:14:46 -0700 Subject: [PATCH 83/86] Fix a few CSS comments --- normalize.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/normalize.css b/normalize.css index 87e37d221..408f751f3 100644 --- a/normalize.css +++ b/normalize.css @@ -2,8 +2,8 @@ /** * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. + * 2. Prevent iOS and IE text size adjust after device orientation change, + * without disabling user zoom. */ html { @@ -71,7 +71,7 @@ audio:not([controls]) { /** * Address `[hidden]` styling not present in IE 8/9/10. - * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22. */ [hidden], @@ -91,7 +91,8 @@ a { } /** - * Improve readability when focused and also mouse hovered in all browsers. + * Improve readability of focused elements when they are also in an + * active/hover state. */ a:active, From c78ecbb59e6a27042ec03b01a6577698976d88bf Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 30 Mar 2015 14:14:59 -0700 Subject: [PATCH 84/86] Remove unnecessary vendor prefixes Firefox ESR is currently at Firefox 31, which doesn't require box-sizing prefixes. Fix #400 --- README.md | 2 +- normalize.css | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f8e0d101a..cccbf96d6 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ library code. * Google Chrome (latest) * Mozilla Firefox (latest) -* Mozilla Firefox 4 +* Mozilla Firefox ESR * Opera (latest) * Apple Safari 6+ * Internet Explorer 8+ diff --git a/normalize.css b/normalize.css index 408f751f3..d78a0ffd3 100644 --- a/normalize.css +++ b/normalize.css @@ -210,7 +210,6 @@ figure { */ hr { - -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } @@ -351,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button { /** * 1. Address `appearance` set to `searchfield` in Safari and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari and Chrome - * (include `-moz` to future-proof). + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome. */ input[type="search"] { -webkit-appearance: textfield; /* 1 */ - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; /* 2 */ - box-sizing: content-box; + box-sizing: content-box; /* 2 */ } /** From c39a4c7163164511ddc59a4853e24d9a5252599b Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 30 Mar 2015 14:35:20 -0700 Subject: [PATCH 85/86] Force LICENCE to be published to npm Fix #430 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 35cd3677c..cc764cc4e 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Normalize.css as a node packaged module", "style": "normalize.css", "files": [ + "LICENSE.md", "normalize.css" ], "homepage": "http://necolas.github.io/normalize.css", From 2bdda84272650aedfb45d8abe11a6d177933a803 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 30 Mar 2015 17:26:52 -0700 Subject: [PATCH 86/86] 3.0.3 --- CHANGELOG.md | 5 +++++ bower.json | 2 +- component.json | 2 +- normalize.css | 2 +- package.json | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49681b6b6..aaa7a8f6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ === HEAD +=== 3.0.3 (March 30, 2015) + +* Remove unnecessary vendor prefixes. +* Add `main` property. + === 3.0.2 (October 4, 2014) * Only alter `background-color` of links in IE 10. diff --git a/bower.json b/bower.json index ff0fde1c5..44f2ee2b5 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "normalize-css", - "version": "3.0.2", + "version": "3.0.3", "main": "normalize.css", "author": "Nicolas Gallagher", "ignore": [ diff --git a/component.json b/component.json index 940678b75..82e70d50b 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "normalize.css", "repo": "necolas/normalize.css", - "version": "3.0.2", + "version": "3.0.3", "styles": ["normalize.css"], "author": "Nicolas Gallagher", "license": "MIT" diff --git a/normalize.css b/normalize.css index d78a0ffd3..5e5e3c898 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v3.0.2 | MIT License | github.com/necolas/normalize.css */ +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ /** * 1. Set default font family to sans-serif. diff --git a/package.json b/package.json index cc764cc4e..b6c26d298 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "normalize.css", - "version": "3.0.2", + "version": "3.0.3", "description": "Normalize.css as a node packaged module", "style": "normalize.css", "files": [