Skip to content

Commit 004d58b

Browse files
committed
Update browser support
Drop support for older browsers: IE 9-, Android 4, Safari 7-. Close #676 Close #690 Close #712 Close #723 Fix #718
1 parent 331e2e4 commit 004d58b

File tree

2 files changed

+24
-138
lines changed

2 files changed

+24
-138
lines changed

README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,12 @@ See https://necolas.github.io/normalize.css/latest/normalize.css
4343

4444
## Browser support
4545

46-
* Chrome (last two)
47-
* Edge (last two)
48-
* Firefox (last two)
49-
* Firefox ESR
50-
* Internet Explorer 8+
51-
* iOS Safari (last two)
52-
* Opera (last two)
53-
* Safari 6+
54-
* _[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._
55-
46+
* Chrome
47+
* Edge
48+
* Firefox ESR+
49+
* Internet Explorer 10+
50+
* Safari 8+
51+
* Opera
5652

5753

5854
## Extended details and known issues
@@ -70,13 +66,6 @@ intentional. [Source](https://en.wikipedia.org/wiki/User:Davidgothberg/Test59).
7066
Normally, using `sub` or `sup` affects the line-box height of text in all
7167
browsers. [Source](https://gist.github.com/413930).
7268

73-
#### `svg:not(:root)`
74-
75-
Adding `overflow: hidden` fixes IE9's SVG rendering. Earlier versions of IE
76-
don't support SVG, so we can safely use the `:not()` and `:root` selectors that
77-
modern browsers use in the default UA stylesheets to apply this style.
78-
[Source](https://lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0339.html).
79-
8069
#### `select`
8170

8271
By default, Chrome on OS X and Safari on OS X allow very limited styling of

normalize.css

Lines changed: 18 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,25 @@
55

66
/**
77
* 1. Correct the line height in all browsers.
8-
* 2. Prevent adjustments of font size after orientation changes in
9-
* IE on Windows Phone and in iOS.
8+
* 2. Prevent adjustments of font size after orientation changes in iOS.
109
*/
1110

1211
html {
1312
line-height: 1.15; /* 1 */
14-
-ms-text-size-adjust: 100%; /* 2 */
1513
-webkit-text-size-adjust: 100%; /* 2 */
1614
}
1715

1816
/* Sections
1917
========================================================================== */
2018

2119
/**
22-
* Remove the margin in all browsers (opinionated).
20+
* Remove the margin in all browsers.
2321
*/
2422

2523
body {
2624
margin: 0;
2725
}
2826

29-
/**
30-
* Add the correct display in IE 9-.
31-
*/
32-
33-
article,
34-
aside,
35-
footer,
36-
header,
37-
nav,
38-
section {
39-
display: block;
40-
}
41-
4227
/**
4328
* Correct the font size and margin on `h1` elements within `section` and
4429
* `article` contexts in Chrome, Firefox, and Safari.
@@ -52,25 +37,6 @@ h1 {
5237
/* Grouping content
5338
========================================================================== */
5439

55-
/**
56-
* Add the correct display in IE 9-.
57-
* 1. Add the correct display in IE.
58-
*/
59-
60-
figcaption,
61-
figure,
62-
main { /* 1 */
63-
display: block;
64-
}
65-
66-
/**
67-
* Add the correct margin in IE 8.
68-
*/
69-
70-
figure {
71-
margin: 1em 40px;
72-
}
73-
7440
/**
7541
* 1. Add the correct box sizing in Firefox.
7642
* 2. Show the overflow in Edge and IE.
@@ -104,7 +70,7 @@ a {
10470
}
10571

10672
/**
107-
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
73+
* 1. Remove the bottom border in Chrome 57-
10874
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
10975
*/
11076

@@ -114,15 +80,6 @@ abbr[title] {
11480
text-decoration: underline dotted; /* 2 */
11581
}
11682

117-
/**
118-
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
119-
*/
120-
121-
b,
122-
strong {
123-
font-weight: inherit;
124-
}
125-
12683
/**
12784
* Add the correct font weight in Chrome, Edge, and Safari.
12885
*/
@@ -144,23 +101,6 @@ samp {
144101
font-size: 1em; /* 2 */
145102
}
146103

147-
/**
148-
* Add the correct font style in Android 4.3-.
149-
*/
150-
151-
dfn {
152-
font-style: italic;
153-
}
154-
155-
/**
156-
* Add the correct background and color in IE 9-.
157-
*/
158-
159-
mark {
160-
background-color: #ff0;
161-
color: #000;
162-
}
163-
164104
/**
165105
* Add the correct font size in all browsers.
166106
*/
@@ -194,44 +134,18 @@ sup {
194134
========================================================================== */
195135

196136
/**
197-
* Add the correct display in IE 9-.
198-
*/
199-
200-
audio,
201-
video {
202-
display: inline-block;
203-
}
204-
205-
/**
206-
* Add the correct display in iOS 4-7.
207-
*/
208-
209-
audio:not([controls]) {
210-
display: none;
211-
height: 0;
212-
}
213-
214-
/**
215-
* Remove the border on images inside links in IE 10-.
137+
* Remove the border on images inside links in IE 10.
216138
*/
217139

218140
img {
219141
border-style: none;
220142
}
221143

222-
/**
223-
* Hide the overflow in IE.
224-
*/
225-
226-
svg:not(:root) {
227-
overflow: hidden;
228-
}
229-
230144
/* Forms
231145
========================================================================== */
232146

233147
/**
234-
* 1. Change the font styles in all browsers (opinionated).
148+
* 1. Change the font styles in all browsers.
235149
* 2. Remove the margin in Firefox and Safari.
236150
*/
237151

@@ -267,16 +181,14 @@ select { /* 1 */
267181
}
268182

269183
/**
270-
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
271-
* controls in Android 4.
272-
* 2. Correct the inability to style clickable types in iOS and Safari.
184+
* Correct the inability to style clickable types in iOS and Safari.
273185
*/
274186

275187
button,
276-
html [type="button"], /* 1 */
188+
[type="button"],
277189
[type="reset"],
278190
[type="submit"] {
279-
-webkit-appearance: button; /* 2 */
191+
-webkit-appearance: button;
280192
}
281193

282194
/**
@@ -327,26 +239,24 @@ legend {
327239
}
328240

329241
/**
330-
* 1. Add the correct display in IE 9-.
331-
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
242+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
332243
*/
333244

334245
progress {
335-
display: inline-block; /* 1 */
336-
vertical-align: baseline; /* 2 */
246+
vertical-align: baseline;
337247
}
338248

339249
/**
340-
* Remove the default vertical scrollbar in IE.
250+
* Remove the default vertical scrollbar in IE 10+.
341251
*/
342252

343253
textarea {
344254
overflow: auto;
345255
}
346256

347257
/**
348-
* 1. Add the correct box sizing in IE 10-.
349-
* 2. Remove the padding in IE 10-.
258+
* 1. Add the correct box sizing in IE 10.
259+
* 2. Remove the padding in IE 10.
350260
*/
351261

352262
[type="checkbox"],
@@ -397,12 +307,10 @@ textarea {
397307
========================================================================== */
398308

399309
/*
400-
* Add the correct display in IE 9-.
401-
* 1. Add the correct display in Edge, IE, and Firefox.
310+
* Add the correct display in Edge, IE 10+, and Firefox.
402311
*/
403312

404-
details, /* 1 */
405-
menu {
313+
details {
406314
display: block;
407315
}
408316

@@ -414,30 +322,19 @@ summary {
414322
display: list-item;
415323
}
416324

417-
/* Scripting
325+
/* Misc
418326
========================================================================== */
419327

420328
/**
421-
* Add the correct display in IE 9-.
422-
*/
423-
424-
canvas {
425-
display: inline-block;
426-
}
427-
428-
/**
429-
* Add the correct display in IE.
329+
* Add the correct display in IE 10+.
430330
*/
431331

432332
template {
433333
display: none;
434334
}
435335

436-
/* Hidden
437-
========================================================================== */
438-
439336
/**
440-
* Add the correct display in IE 10-.
337+
* Add the correct display in IE 10.
441338
*/
442339

443340
[hidden] {

0 commit comments

Comments
 (0)