diff options
author | Jonathan Neal <jonathantneal@hotmail.com> | 2018-08-22 11:40:15 -0400 |
---|---|---|
committer | Jonathan Neal <jonathantneal@hotmail.com> | 2018-08-22 11:40:15 -0400 |
commit | b8ce2501aff91a77fccd54b04a673cc4c7e1972d (patch) | |
tree | d0f1e7222cd82f1b87f85e9d067e1f9c710ef44c | |
parent | 27b3b6ceb9f71ae6e50095fb96db7ed321dc4b7d (diff) | |
download | normalize.css-b8ce2501aff91a77fccd54b04a673cc4c7e1972d.tar.gz normalize.css-b8ce2501aff91a77fccd54b04a673cc4c7e1972d.zip |
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
-rw-r--r-- | CHANGELOG.md | 11 | ||||
-rw-r--r-- | normalize.css | 48 | ||||
-rw-r--r-- | package.json | 4 |
3 files changed, 30 insertions, 33 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e00294..ce93038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changes to normalize.css +### 9.0.0 (August 22, 2018) + +* 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 + ### 8.0.0 (June 15, 2018) * Remove normalizations for unsupported browsers, such as Android 4-, diff --git a/normalize.css b/normalize.css index 71ad9df..15963e0 100644 --- a/normalize.css +++ b/normalize.css @@ -68,7 +68,7 @@ pre { */ a { - background-color: transparent; /* 1 */ + background-color: transparent; } /** @@ -150,14 +150,12 @@ svg:not(:root) { * ========================================================================== */ /** - * Remove the margin in Firefox and Safari. + * Remove the margin in Safari. */ button, input, -optgroup, -select, -textarea { +select { margin: 0; } @@ -183,26 +181,6 @@ button, } /** - * Remove the inner border and padding in Firefox. - */ - -::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule in Firefox. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** * Correct the padding in Firefox. */ @@ -221,8 +199,6 @@ input { /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. */ legend { @@ -230,7 +206,6 @@ legend { color: inherit; /* 2 */ display: table; /* 1 */ max-width: 100%; /* 1 */ - padding: 0; /* 3 */ white-space: normal; /* 1 */ } @@ -253,11 +228,13 @@ select { } /** - * Remove the default vertical scrollbar in IE. + * 1. Remove the margin in Firefox and Safari. + * 2. Remove the default vertical scrollbar in IE. */ textarea { - overflow: auto; + margin: 0; /* 1 */ + overflow: auto; /* 2 */ } /** @@ -272,7 +249,7 @@ textarea { } /** - * Correct the cursor style of increment and decrement buttons in Chrome. + * Correct the cursor style of increment and decrement buttons in Safari. */ ::-webkit-inner-spin-button, @@ -291,6 +268,15 @@ textarea { } /** + * Correct the text style of placeholders in Chrome, Edge, and Safari. + */ + +::-webkit-input-placeholder { + color: inherit; + opacity: 0.54; +} + +/** * Remove the inner padding in Chrome and Safari on macOS. */ diff --git a/package.json b/package.json index 7a316d7..90f7b32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@csstools/normalize.css", - "version": "8.0.0", + "version": "9.0.0", "description": "A cross-browser CSS foundation", "author": "Jonathan Neal <jonathantneal@hotmail.com>", "contributors": [ @@ -21,7 +21,7 @@ "test": "stylelint normalize.css" }, "devDependencies": { - "stylelint": "^9.3.0", + "stylelint": "^9.5.0", "stylelint-config-standard": "^18.2.0" }, "stylelint": { |