Skip to content

Commit b8ce250

Browse files
committed
9.0.0
* Fix correction of cursor style of increment and decrement buttons in Safari, not Chrome. * Correct the text style of placeholders in Chrome, Edge, and Safari. * Remove unnecessary form control margin normalizations in Firefox. * Remove opinionated fieldset padding in all browsers. * Remove `::-moz-focus-inner` and `:-moz-focusring` normalizations fixed in Firefox 53 https://bugzilla.mozilla.org/show_bug.cgi?id=140562
1 parent 27b3b6c commit b8ce250

3 files changed

Lines changed: 30 additions & 33 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changes to normalize.css
22

3+
### 9.0.0 (August 22, 2018)
4+
5+
* Fix correction of cursor style of increment and decrement buttons
6+
in Safari, not Chrome.
7+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
8+
* Remove unnecessary form control margin normalizations in Firefox.
9+
* Remove opinionated fieldset padding in all browsers.
10+
* Remove `::-moz-focus-inner` and `:-moz-focusring` normalizations
11+
fixed in Firefox 53
12+
https://bugzilla.mozilla.org/show_bug.cgi?id=140562
13+
314
### 8.0.0 (June 15, 2018)
415

516
* Remove normalizations for unsupported browsers, such as Android 4-,

normalize.css

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pre {
6868
*/
6969

7070
a {
71-
background-color: transparent; /* 1 */
71+
background-color: transparent;
7272
}
7373

7474
/**
@@ -150,14 +150,12 @@ svg:not(:root) {
150150
* ========================================================================== */
151151

152152
/**
153-
* Remove the margin in Firefox and Safari.
153+
* Remove the margin in Safari.
154154
*/
155155

156156
button,
157157
input,
158-
optgroup,
159-
select,
160-
textarea {
158+
select {
161159
margin: 0;
162160
}
163161

@@ -182,26 +180,6 @@ button,
182180
-webkit-appearance: button;
183181
}
184182

185-
/**
186-
* Remove the inner border and padding in Firefox.
187-
*/
188-
189-
::-moz-focus-inner {
190-
border-style: none;
191-
padding: 0;
192-
}
193-
194-
/**
195-
* Restore the focus styles unset by the previous rule in Firefox.
196-
*/
197-
198-
button:-moz-focusring,
199-
[type="button"]:-moz-focusring,
200-
[type="reset"]:-moz-focusring,
201-
[type="submit"]:-moz-focusring {
202-
outline: 1px dotted ButtonText;
203-
}
204-
205183
/**
206184
* Correct the padding in Firefox.
207185
*/
@@ -221,16 +199,13 @@ input {
221199
/**
222200
* 1. Correct the text wrapping in Edge and IE.
223201
* 2. Correct the color inheritance from `fieldset` elements in IE.
224-
* 3. Remove the padding so developers are not caught out when they zero out
225-
* `fieldset` elements in all browsers.
226202
*/
227203

228204
legend {
229205
box-sizing: border-box; /* 1 */
230206
color: inherit; /* 2 */
231207
display: table; /* 1 */
232208
max-width: 100%; /* 1 */
233-
padding: 0; /* 3 */
234209
white-space: normal; /* 1 */
235210
}
236211

@@ -253,11 +228,13 @@ select {
253228
}
254229

255230
/**
256-
* Remove the default vertical scrollbar in IE.
231+
* 1. Remove the margin in Firefox and Safari.
232+
* 2. Remove the default vertical scrollbar in IE.
257233
*/
258234

259235
textarea {
260-
overflow: auto;
236+
margin: 0; /* 1 */
237+
overflow: auto; /* 2 */
261238
}
262239

263240
/**
@@ -272,7 +249,7 @@ textarea {
272249
}
273250

274251
/**
275-
* Correct the cursor style of increment and decrement buttons in Chrome.
252+
* Correct the cursor style of increment and decrement buttons in Safari.
276253
*/
277254

278255
::-webkit-inner-spin-button,
@@ -290,6 +267,15 @@ textarea {
290267
outline-offset: -2px; /* 2 */
291268
}
292269

270+
/**
271+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
272+
*/
273+
274+
::-webkit-input-placeholder {
275+
color: inherit;
276+
opacity: 0.54;
277+
}
278+
293279
/**
294280
* Remove the inner padding in Chrome and Safari on macOS.
295281
*/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@csstools/normalize.css",
3-
"version": "8.0.0",
3+
"version": "9.0.0",
44
"description": "A cross-browser CSS foundation",
55
"author": "Jonathan Neal <[email protected]>",
66
"contributors": [
@@ -21,7 +21,7 @@
2121
"test": "stylelint normalize.css"
2222
},
2323
"devDependencies": {
24-
"stylelint": "^9.3.0",
24+
"stylelint": "^9.5.0",
2525
"stylelint-config-standard": "^18.2.0"
2626
},
2727
"stylelint": {

0 commit comments

Comments
 (0)