Skip to content

Commit 41d0c4e

Browse files
author
battaglr
committed
Add files from 3.0.3 tag instead of current master
1 parent 98785fa commit 41d0c4e

File tree

4 files changed

+82
-64
lines changed

4 files changed

+82
-64
lines changed

3.0.3/normalize.css

100644100755
Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ figcaption,
3737
figure,
3838
footer,
3939
header,
40+
hgroup,
4041
main,
4142
menu,
4243
nav,
@@ -103,31 +104,20 @@ a:hover {
103104
========================================================================== */
104105

105106
/**
106-
* Address inconsistent styling of `abbr[title]`.
107-
* 1. Correct styling in Firefox 39 and Opera 12.
108-
* 2. Correct missing styling in Chrome, Edge, IE, Opera, and Safari.
107+
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
109108
*/
110109

111110
abbr[title] {
112-
border-bottom: none; /* 1 */
113-
text-decoration: underline; /* 2 */
114-
text-decoration: underline dotted; /* 2 */
111+
border-bottom: 1px dotted;
115112
}
116113

117114
/**
118-
* Address inconsistent styling of b and strong.
119-
* 1. Correct duplicate application of `bolder` in Safari 6.0.2.
120-
* 2. Correct style set to `bold` in Edge 12+, Safari 6.2+, and Chrome 18+.
115+
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
121116
*/
122117

123118
b,
124119
strong {
125-
font-weight: inherit; /* 1 */
126-
}
127-
128-
b,
129-
strong {
130-
font-weight: bolder; /* 2 */
120+
font-weight: bold;
131121
}
132122

133123
/**
@@ -153,7 +143,7 @@ h1 {
153143
*/
154144

155145
mark {
156-
background-color: #ff0;
146+
background: #ff0;
157147
color: #000;
158148
}
159149

@@ -216,15 +206,12 @@ figure {
216206
}
217207

218208
/**
219-
* Address inconsistent styling of `hr`.
220-
* 1. Correct `box-sizing` set to `border-box` in Firefox.
221-
* 2. Correct `overflow` set to `hidden` in IE 8/9/10/11 and Edge 12.
209+
* Address differences between Firefox and other browsers.
222210
*/
223211

224212
hr {
225-
box-sizing: content-box; /* 1 */
226-
height: 0; /* 1 */
227-
overflow: visible; /* 2 */
213+
box-sizing: content-box;
214+
height: 0;
228215
}
229216

230217
/**
@@ -236,16 +223,15 @@ pre {
236223
}
237224

238225
/**
239-
* 1. Correct inheritance and scaling of font-size for preformatted text.
240-
* 2. Address odd `em`-unit font size rendering in all browsers.
226+
* Address odd `em`-unit font size rendering in all browsers.
241227
*/
242228

243229
code,
244230
kbd,
245231
pre,
246232
samp {
247-
font-family: monospace, monospace; /* 1 */
248-
font-size: 1em; /* 2 */
233+
font-family: monospace, monospace;
234+
font-size: 1em;
249235
}
250236

251237
/* Forms
@@ -257,17 +243,20 @@ samp {
257243
*/
258244

259245
/**
260-
* 1. Correct font properties not being inherited.
261-
* 2. Address margins set differently in Firefox 4+, Safari, and Chrome.
246+
* 1. Correct color not being inherited.
247+
* Known issue: affects color of disabled elements.
248+
* 2. Correct font properties not being inherited.
249+
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
262250
*/
263251

264252
button,
265253
input,
266254
optgroup,
267255
select,
268256
textarea {
269-
font: inherit; /* 1 */
270-
margin: 0; /* 2 */
257+
color: inherit; /* 1 */
258+
font: inherit; /* 2 */
259+
margin: 0; /* 3 */
271260
}
272261

273262
/**
@@ -360,11 +349,13 @@ input[type="number"]::-webkit-outer-spin-button {
360349
}
361350

362351
/**
363-
* Address `appearance` set to `searchfield` in Safari and Chrome.
352+
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
364354
*/
365355

366356
input[type="search"] {
367-
-webkit-appearance: textfield;
357+
-webkit-appearance: textfield; /* 1 */
358+
box-sizing: content-box; /* 2 */
368359
}
369360

370361
/**

3.0.3/test.html

100644100755
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,18 @@ <h3 class="Test-it">should render <code>em</code>-unit preformatted text at the
258258
</div>
259259

260260
<h2 class="Test-describe"><code>button</code>, <code>input</code>, <code>optgroup</code>, <code>select</code>, <code>textarea</code></h2>
261+
<h3 class="Test-it">should inherit <code>color</code> from ancestor</h3>
262+
<div class="Test-run" style="color:#ADD8E6;">
263+
<button>button</button><br>
264+
<input value="input"><br>
265+
<select style="border:1px solid #999;">
266+
<optgroup label="optgroup">
267+
<option>option</option>
268+
</optgroup>
269+
<option>option</option>
270+
</select><br>
271+
<textarea>textarea</textarea>
272+
</div>
261273
<h3 class="Test-it">should inherit <code>font</code> from ancestor</h3>
262274
<div class="Test-run" style="font:bold italic 20px/1 serif;">
263275
<button>button</button><br>
@@ -417,6 +429,12 @@ <h3 class="Test-it">should be styleable</h3>
417429
<div class="Test-run">
418430
<input type="search" style="border:1px solid #ADD8E6; padding:10px; width:200px;">
419431
</div>
432+
<h3 class="Test-it">should have a <code>content-box</code> box model</h3>
433+
<div class="Test-run">
434+
<div style="background:red; display:inline-block; height:62px; width:242px;">
435+
<input type="search" style="border:1px solid #ADD8E6; height:20px; padding:20px; width:200px;">
436+
</div>
437+
</div>
420438
<h3 class="Test-it">should not have a cancel button in Safari or Chrome</h3>
421439
<div class="Test-run">
422440
<input type="search" value="search">

latest/normalize.css

100644100755
Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ figcaption,
3737
figure,
3838
footer,
3939
header,
40+
hgroup,
4041
main,
4142
menu,
4243
nav,
@@ -103,31 +104,20 @@ a:hover {
103104
========================================================================== */
104105

105106
/**
106-
* Address inconsistent styling of `abbr[title]`.
107-
* 1. Correct styling in Firefox 39 and Opera 12.
108-
* 2. Correct missing styling in Chrome, Edge, IE, Opera, and Safari.
107+
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
109108
*/
110109

111110
abbr[title] {
112-
border-bottom: none; /* 1 */
113-
text-decoration: underline; /* 2 */
114-
text-decoration: underline dotted; /* 2 */
111+
border-bottom: 1px dotted;
115112
}
116113

117114
/**
118-
* Address inconsistent styling of b and strong.
119-
* 1. Correct duplicate application of `bolder` in Safari 6.0.2.
120-
* 2. Correct style set to `bold` in Edge 12+, Safari 6.2+, and Chrome 18+.
115+
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
121116
*/
122117

123118
b,
124119
strong {
125-
font-weight: inherit; /* 1 */
126-
}
127-
128-
b,
129-
strong {
130-
font-weight: bolder; /* 2 */
120+
font-weight: bold;
131121
}
132122

133123
/**
@@ -153,7 +143,7 @@ h1 {
153143
*/
154144

155145
mark {
156-
background-color: #ff0;
146+
background: #ff0;
157147
color: #000;
158148
}
159149

@@ -216,15 +206,12 @@ figure {
216206
}
217207

218208
/**
219-
* Address inconsistent styling of `hr`.
220-
* 1. Correct `box-sizing` set to `border-box` in Firefox.
221-
* 2. Correct `overflow` set to `hidden` in IE 8/9/10/11 and Edge 12.
209+
* Address differences between Firefox and other browsers.
222210
*/
223211

224212
hr {
225-
box-sizing: content-box; /* 1 */
226-
height: 0; /* 1 */
227-
overflow: visible; /* 2 */
213+
box-sizing: content-box;
214+
height: 0;
228215
}
229216

230217
/**
@@ -236,16 +223,15 @@ pre {
236223
}
237224

238225
/**
239-
* 1. Correct inheritance and scaling of font-size for preformatted text.
240-
* 2. Address odd `em`-unit font size rendering in all browsers.
226+
* Address odd `em`-unit font size rendering in all browsers.
241227
*/
242228

243229
code,
244230
kbd,
245231
pre,
246232
samp {
247-
font-family: monospace, monospace; /* 1 */
248-
font-size: 1em; /* 2 */
233+
font-family: monospace, monospace;
234+
font-size: 1em;
249235
}
250236

251237
/* Forms
@@ -257,17 +243,20 @@ samp {
257243
*/
258244

259245
/**
260-
* 1. Correct font properties not being inherited.
261-
* 2. Address margins set differently in Firefox 4+, Safari, and Chrome.
246+
* 1. Correct color not being inherited.
247+
* Known issue: affects color of disabled elements.
248+
* 2. Correct font properties not being inherited.
249+
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
262250
*/
263251

264252
button,
265253
input,
266254
optgroup,
267255
select,
268256
textarea {
269-
font: inherit; /* 1 */
270-
margin: 0; /* 2 */
257+
color: inherit; /* 1 */
258+
font: inherit; /* 2 */
259+
margin: 0; /* 3 */
271260
}
272261

273262
/**
@@ -360,11 +349,13 @@ input[type="number"]::-webkit-outer-spin-button {
360349
}
361350

362351
/**
363-
* Address `appearance` set to `searchfield` in Safari and Chrome.
352+
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
364354
*/
365355

366356
input[type="search"] {
367-
-webkit-appearance: textfield;
357+
-webkit-appearance: textfield; /* 1 */
358+
box-sizing: content-box; /* 2 */
368359
}
369360

370361
/**

latest/test.html

100644100755
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,18 @@ <h3 class="Test-it">should render <code>em</code>-unit preformatted text at the
258258
</div>
259259

260260
<h2 class="Test-describe"><code>button</code>, <code>input</code>, <code>optgroup</code>, <code>select</code>, <code>textarea</code></h2>
261+
<h3 class="Test-it">should inherit <code>color</code> from ancestor</h3>
262+
<div class="Test-run" style="color:#ADD8E6;">
263+
<button>button</button><br>
264+
<input value="input"><br>
265+
<select style="border:1px solid #999;">
266+
<optgroup label="optgroup">
267+
<option>option</option>
268+
</optgroup>
269+
<option>option</option>
270+
</select><br>
271+
<textarea>textarea</textarea>
272+
</div>
261273
<h3 class="Test-it">should inherit <code>font</code> from ancestor</h3>
262274
<div class="Test-run" style="font:bold italic 20px/1 serif;">
263275
<button>button</button><br>
@@ -417,6 +429,12 @@ <h3 class="Test-it">should be styleable</h3>
417429
<div class="Test-run">
418430
<input type="search" style="border:1px solid #ADD8E6; padding:10px; width:200px;">
419431
</div>
432+
<h3 class="Test-it">should have a <code>content-box</code> box model</h3>
433+
<div class="Test-run">
434+
<div style="background:red; display:inline-block; height:62px; width:242px;">
435+
<input type="search" style="border:1px solid #ADD8E6; height:20px; padding:20px; width:200px;">
436+
</div>
437+
</div>
420438
<h3 class="Test-it">should not have a cancel button in Safari or Chrome</h3>
421439
<div class="Test-run">
422440
<input type="search" value="search">

0 commit comments

Comments
 (0)