From 41d0c4eb5d1d5f4d2c580d9f469270668d427ea2 Mon Sep 17 00:00:00 2001 From: battaglr Date: Wed, 27 Jan 2016 11:30:06 -0300 Subject: [PATCH] Add files from 3.0.3 tag instead of current `master` --- 3.0.3/normalize.css | 55 ++++++++++++++++++-------------------------- 3.0.3/test.html | 18 +++++++++++++++ latest/normalize.css | 55 ++++++++++++++++++-------------------------- latest/test.html | 18 +++++++++++++++ 4 files changed, 82 insertions(+), 64 deletions(-) mode change 100644 => 100755 3.0.3/normalize.css mode change 100644 => 100755 3.0.3/test.html mode change 100644 => 100755 latest/normalize.css mode change 100644 => 100755 latest/test.html diff --git a/3.0.3/normalize.css b/3.0.3/normalize.css old mode 100644 new mode 100755 index 8debc1d..5e5e3c8 --- a/3.0.3/normalize.css +++ b/3.0.3/normalize.css @@ -37,6 +37,7 @@ figcaption, figure, footer, header, +hgroup, main, menu, nav, @@ -103,31 +104,20 @@ a:hover { ========================================================================== */ /** - * Address inconsistent styling of `abbr[title]`. - * 1. Correct styling in Firefox 39 and Opera 12. - * 2. Correct missing styling in Chrome, Edge, IE, Opera, and Safari. + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ + border-bottom: 1px dotted; } /** - * Address inconsistent styling of b and strong. - * 1. Correct duplicate application of `bolder` in Safari 6.0.2. - * 2. Correct style set to `bold` in Edge 12+, Safari 6.2+, and Chrome 18+. + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ b, strong { - font-weight: inherit; /* 1 */ -} - -b, -strong { - font-weight: bolder; /* 2 */ + font-weight: bold; } /** @@ -153,7 +143,7 @@ h1 { */ mark { - background-color: #ff0; + background: #ff0; color: #000; } @@ -216,15 +206,12 @@ figure { } /** - * Address inconsistent styling of `hr`. - * 1. Correct `box-sizing` set to `border-box` in Firefox. - * 2. Correct `overflow` set to `hidden` in IE 8/9/10/11 and Edge 12. + * Address differences between Firefox and other browsers. */ hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ + box-sizing: content-box; + height: 0; } /** @@ -236,16 +223,15 @@ pre { } /** - * 1. Correct inheritance and scaling of font-size for preformatted text. - * 2. Address odd `em`-unit font size rendering in all browsers. + * Address odd `em`-unit font size rendering in all browsers. */ code, kbd, pre, samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ + font-family: monospace, monospace; + font-size: 1em; } /* Forms @@ -257,8 +243,10 @@ samp { */ /** - * 1. Correct font properties not being inherited. - * 2. Address margins set differently in Firefox 4+, Safari, and Chrome. + * 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, and Chrome. */ button, @@ -266,8 +254,9 @@ input, optgroup, select, textarea { - font: inherit; /* 1 */ - margin: 0; /* 2 */ + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ } /** @@ -360,11 +349,13 @@ input[type="number"]::-webkit-outer-spin-button { } /** - * Address `appearance` set to `searchfield` in Safari and Chrome. + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome. */ input[type="search"] { - -webkit-appearance: textfield; + -webkit-appearance: textfield; /* 1 */ + box-sizing: content-box; /* 2 */ } /** diff --git a/3.0.3/test.html b/3.0.3/test.html old mode 100644 new mode 100755 index ab5efdb..e0e96e1 --- a/3.0.3/test.html +++ b/3.0.3/test.html @@ -258,6 +258,18 @@

button, input, optgroup, select, textarea

+

should inherit color from ancestor

+
+
+
+
+ +

should inherit font from ancestor


@@ -417,6 +429,12 @@
+

should have a content-box box model

+
+
+ +
+

should not have a cancel button in Safari or Chrome

diff --git a/latest/normalize.css b/latest/normalize.css old mode 100644 new mode 100755 index 8debc1d..5e5e3c8 --- a/latest/normalize.css +++ b/latest/normalize.css @@ -37,6 +37,7 @@ figcaption, figure, footer, header, +hgroup, main, menu, nav, @@ -103,31 +104,20 @@ a:hover { ========================================================================== */ /** - * Address inconsistent styling of `abbr[title]`. - * 1. Correct styling in Firefox 39 and Opera 12. - * 2. Correct missing styling in Chrome, Edge, IE, Opera, and Safari. + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ + border-bottom: 1px dotted; } /** - * Address inconsistent styling of b and strong. - * 1. Correct duplicate application of `bolder` in Safari 6.0.2. - * 2. Correct style set to `bold` in Edge 12+, Safari 6.2+, and Chrome 18+. + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ b, strong { - font-weight: inherit; /* 1 */ -} - -b, -strong { - font-weight: bolder; /* 2 */ + font-weight: bold; } /** @@ -153,7 +143,7 @@ h1 { */ mark { - background-color: #ff0; + background: #ff0; color: #000; } @@ -216,15 +206,12 @@ figure { } /** - * Address inconsistent styling of `hr`. - * 1. Correct `box-sizing` set to `border-box` in Firefox. - * 2. Correct `overflow` set to `hidden` in IE 8/9/10/11 and Edge 12. + * Address differences between Firefox and other browsers. */ hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ + box-sizing: content-box; + height: 0; } /** @@ -236,16 +223,15 @@ pre { } /** - * 1. Correct inheritance and scaling of font-size for preformatted text. - * 2. Address odd `em`-unit font size rendering in all browsers. + * Address odd `em`-unit font size rendering in all browsers. */ code, kbd, pre, samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ + font-family: monospace, monospace; + font-size: 1em; } /* Forms @@ -257,8 +243,10 @@ samp { */ /** - * 1. Correct font properties not being inherited. - * 2. Address margins set differently in Firefox 4+, Safari, and Chrome. + * 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, and Chrome. */ button, @@ -266,8 +254,9 @@ input, optgroup, select, textarea { - font: inherit; /* 1 */ - margin: 0; /* 2 */ + color: inherit; /* 1 */ + font: inherit; /* 2 */ + margin: 0; /* 3 */ } /** @@ -360,11 +349,13 @@ input[type="number"]::-webkit-outer-spin-button { } /** - * Address `appearance` set to `searchfield` in Safari and Chrome. + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome. */ input[type="search"] { - -webkit-appearance: textfield; + -webkit-appearance: textfield; /* 1 */ + box-sizing: content-box; /* 2 */ } /** diff --git a/latest/test.html b/latest/test.html old mode 100644 new mode 100755 index ab5efdb..e0e96e1 --- a/latest/test.html +++ b/latest/test.html @@ -258,6 +258,18 @@

button, input, optgroup, select, textarea

+

should inherit color from ancestor

+
+
+
+
+ +

should inherit font from ancestor


@@ -417,6 +429,12 @@
+

should have a content-box box model

+
+
+ +
+

should not have a cancel button in Safari or Chrome