diff options
author | Jonathan Neal <jonathantneal@hotmail.com> | 2019-05-17 02:23:10 -0400 |
---|---|---|
committer | Jonathan Neal <jonathantneal@hotmail.com> | 2019-05-17 02:23:10 -0400 |
commit | 59cbacc0cbfc1cd520552dcba8d9a205fdac1fb2 (patch) | |
tree | 687dad35120db91607bd2d42a7f0be37ab9721e9 | |
parent | 946efd2cde37c939cbdb4bb541773e6527ee8851 (diff) | |
download | normalize.css-59cbacc0cbfc1cd520552dcba8d9a205fdac1fb2.tar.gz normalize.css-59cbacc0cbfc1cd520552dcba8d9a205fdac1fb2.zip |
10.0.0
-rw-r--r-- | CHANGELOG.md | 280 | ||||
-rw-r--r-- | LICENSE.md | 129 | ||||
-rw-r--r-- | README.md | 34 | ||||
-rw-r--r-- | normalize.css | 35 | ||||
-rw-r--r-- | opinionated.css (renamed from opinionated-normalize.css) | 35 | ||||
-rw-r--r-- | package.json | 11 |
6 files changed, 356 insertions, 168 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 83d0e9c..d7de27f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,200 +1,240 @@ -# Changes to normalize.css +# Changes to @csstools/normalize.css + +### 10.0.0 (May 14, 2019) + +- Added: Removal of the margin on nested lists in Chrome and Safari. +- Added: opinionated.css, normalize.css with classic opinionated styles. +- Changed: Reverted license to prehistory state, or CC0-1.0 as intended. + +> There are now 2 versions of normalize.css. Nicolas Gallagher and I started +> writing normalize.css together. I named and created the normalize.css +> repository with the help of Paul Irish and Ben Alman. I transferred the +> repository to Necolas, who made it into a “household” CSS library. Much +> later I resumed management of normalize.css with Luciano Battagliero. We +> tagged, deprecated, and removed “opinionated” styles — styles developers +> often prefer but which do not fix bugs or “normalize” browser differences. +> Necolas disagreed with this change, and resolved the matter AFAIK by removing +> all of the other contributors, locking discussion threads, wiping my name +> (and his) from all files, and blocking me from being able to follow the +> project. +> +> I may later create a new project with a new name, but for now I intend to +> continue working on the normalize.css project, sometimes under the +> “csstools” tag. I hope one day our differences are resolved and the projects +> will be one again. +> +> For reference: +> normalize.css resolves bugs and common browser inconsistencies. +> opinionated.css does the same while preserving the classic opinionated styles. + +--- ### 9.0.1 (September 4, 2018) -* Restore `::-moz-focus-inner` and `:-moz-focusring` normalizations +- Changed: Restored `::-moz-focus-inner` and `:-moz-focusring` normalizations confirmed necessary in Firefox 61. -* Sort the `::-webkit-inner-spin-button` and `::-webkit-outer-spin-button` - pseudo-class selectors. -* Update tests. +- Changed: Sorted the `::-webkit-inner-spin-button` and + `::-webkit-outer-spin-button` pseudo-class selectors. +- Updated: Tests. ### 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 +- Fixed: Cursor style of increment and decrement buttons in Safari, not Chrome. +- Fixed: Text style of placeholders in Chrome, Edge, and Safari. +- Removed: unnecessary form control margin normalizations in Firefox. +- Removed: opinionated fieldset padding in all browsers. +- Removed: `::-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-, +- Removed: Normalizations for unsupported browsers, such as Android 4-, Chrome 57-, Firefox 52-, IE 8-, and Safari 7-. -* Do not remove gaps on link underlines in iOS and Safari. -* Reduce the selector weight on form control normalizations. -* Do not remove the search input cancel button in Chrome and Safari. -* Add dialog styles for Edge, IE, and Safari. -* Update tests to test every single feature. -* Update all documentation to be more clear and helpful. +- Removed: Removal of gaps on link underlines in iOS and Safari. +- Changed: Selector weight on form control normalizations. +- Removed: Removal of search input cancel button in Chrome and Safari. +- Added: Dialog styles for Edge, IE, and Safari. +- Added: Tests for every single feature. +- Updated: Documentation to be more clear and helpful. + +--- ### 7.0.0 (May 26, 2017) -* Separate out selector targeted fixes for readability -* Update browser landscape of abbr[title] fixes -* Update browser landscape of details fixes -* Correct browser landscape of displays -* Remove sub and sup opinionated changes +- Changed: Separated out selector targeted fixes for readability. +- Updated: Browser landscape of abbr[title] fixes. +- Updated: Browser landscape of details fixes. +- Fixed: Browser landscape of displays. +- Removed: Opinionated changes on sub and sup elements. + +--- ### 6.0.0 (March 26, 2017) -* Remove all opinionated rules -* Correct document heading comment -* Update `abbr[title]` support +- Removed: All opinionated rules. +- Fixed: Document heading comment. +- Updated: Support for `abbr[title]`. -_For anyone who still wants/needs the opinionated rules, see [opinionate.css](https://github.com/adamgruber/opinionate.css)_ +> At the time of this writing, for anyone who still wants/needs the opinionated +> rules, see [opinionate.css](https://github.com/adamgruber/opinionate.css)_. + +--- ### 5.0.0 (October 3, 2016) -* Add normalized sections not already present from +- Added: Normalized sections not already present from https://html.spec.whatwg.org/multipage/. -* Move unsorted rules into their respective sections. -* Update the `summary` style in all browsers. -* Remove `::placeholder` styles due to a bug in Edge. -* More explicitly define font resets on form controls. -* Remove the `optgroup` normalization needed by the previous font reset. -* Update text-size-adjust documentation
for IE on Windows Phone -* Update OS X reference to macOS -* Update the semver strategy. +- Removed: `::placeholder` styles due to a bug in Edge. +- Removed: `optgroup` normalization needed by the previous font reset. +- Changed: Moved unsorted rules into their respective sections. +- Changed: Explicitly defined font resets on form controls. +- Updated: `summary` style in all browsers. +- Updated: Text-size-adjust documentation
for IE on Windows Phone +- Updated: OS X reference to macOS +- Updated: Semver strategy. + +--- ### 4.2.0 (June 30, 2016) -* Correct the `line-height` in all browsers. -* Restore `optgroup` font inheritance. -* Update normalize.css heading. +- Fixed: `line-height` in all browsers. +- Fixed: `optgroup` font inheritance. +- Updated: Project heading. ### 4.1.1 (April 12, 2016) -* Update normalize.css heading. +- Updated: Project heading. ### 4.1.0 (April 11, 2016) -* Normalize placeholders in Chrome, Edge, and Safari. -* Normalize `text-decoration-skip` property in Safari. -* Normalize file select buttons. -* Normalize search input outlines in Safari. -* Limit Firefox focus normalizations to buttons. -* Restore `main` to package.json. -* Restore proper overflow to certain `select` elements. -* Remove opinionated cursor styles on buttons. -* Update stylelint configuration. -* Update tests. +- Added: Normalized placeholders in Chrome, Edge, and Safari. +- Added: Normalized `text-decoration-skip` property in Safari. +- Added: Normalized file select buttons. +- Added: Normalized search input outlines in Safari. +- Removed: Opinionated cursor styles on buttons. +- Changed: Limited Firefox focus normalizations to buttons. +- Changed: Restored `main` to package.json. +- Changed: Restored proper overflow to certain `select` elements. +- Updated: Stylelint configuration. +- Updated: Tests. ### 4.0.0 (March 19, 2016) -* Add the correct font weight for `b` and `strong` in Chrome, Edge, and Safari. -* Correct inconsistent `overflow` for `hr` in Edge and IE. -* Correct inconsistent `box-sizing` for `hr` in Firefox. -* Correct inconsistent `text-decoration` and `border-bottom` for `abbr[title]` - in Chrome, Edge, Firefox IE, Opera, and Safari. -* Correct inheritance and scaling of `font-size` for preformatted text. -* Correct `legend` text wrapping not present in Edge and IE. -* Remove unnecessary normalization of `line-height` for `input`. -* Remove unnecessary normalization of `color` for form controls. -* Remove unnecessary `box-sizing` for `input[type="search"]` in Chrome, Edge, +- Added: Correct font weight for `b` and `strong` in Chrome, Edge, and Safari. +- Removed: Unnecessary normalization of `line-height` for `input`. +- Removed: Unnecessary normalization of `color` for form controls. +- Removed: Unnecessary `box-sizing` for `input[type="search"]` in Chrome, Edge, Firefox, IE, and Safari. -* Remove opinionated table resets. -* Remove opinionated `pre` overflow. -* Remove selector weight from some input selectors. -* Update normalization of `border-style` for `img`. -* Update normalization of `color` inheritance for `legend`. -* Update normalization of `background-color` for `mark`. -* Update normalization of `outline` for `:-moz-focusring` removed by a previous - normalization in Firefox. -* Update opinionated style of `outline-width` for `a:active` and `a:hover`. -* Update comments to identify opinionated styles. -* Update comments to specify browser/versions affected by all changes. -* Update comments to use one voice. +- Removed: Opinionated table resets. +- Removed: Opinionated `pre` overflow. +- Removed: Selector weight from some input selectors. +- Updated: Normalization of `border-style` for `img`. +- Updated: Normalization of `color` inheritance for `legend`. +- Updated: Normalization of `background-color` for `mark`. +- Updated: Normalization of `outline` for `:-moz-focusring` removed by a + previous Normalization in Firefox. +- Updated: Opinionated style of `outline-width` for `a:active` and `a:hover`. +- Updated: Comments to identify opinionated styles. +- Updated: Comments to specify browser/versions affected by all changes. +- Updated: Comments to use one voice. +- Fixed: inconsistent `overflow` for `hr` in Edge and IE. +- Fixed: inconsistent `box-sizing` for `hr` in Firefox. +- Fixed: inconsistent `text-decoration` and `border-bottom` for `abbr[title]` + in Chrome, Edge, Firefox IE, Opera, and Safari. +- Fixed: inheritance and scaling of `font-size` for preformatted text. +- Fixed: `legend` text wrapping not present in Edge and IE. --- ### 3.0.3 (March 30, 2015) -* Remove unnecessary vendor prefixes. -* Add `main` property. +- Added: `main` property. +- Removed: Unnecessary vendor prefixes. ### 3.0.2 (October 4, 2014) -* Only alter `background-color` of links in IE 10. -* Add `menu` element to HTML5 display definitions. +- Added: `menu` element to HTML5 display definitions. +- Changed: alter `background-color` of links in IE 10. ### 3.0.1 (March 27, 2014) -* Add package.json for npm support. +- Added: package.json for npm support. ### 3.0.0 (January 28, 2014) ### 3.0.0-rc.1 (January 26, 2014) -* Explicit tests for each normalization. -* Fix i18n for `q` element. -* Fix `pre` text formatting and overflow. -* Fix vertical alignment of `progress`. -* Address `button` overflow in IE 8/9/10. -* Revert `textarea` alignment modification. -* Fix number input button cursor in Chrome on OS X. -* Remove `a:focus` outline normalization. -* Fix `figure` margin normalization. -* Normalize `optgroup`. -* Remove default table cell padding. -* Set correct display for `progress` in IE 8/9. -* Fix `font` and `color` inheritance for forms. +- Added: Explicit tests for each normalization. +- Added: Normalizations for `optgroup`. +- Added: Display for `progress` in IE 8/9. +- Removed: `textarea` alignment modification. +- Removed: `a:focus` outline normalization. +- Removed: default table cell padding. +- Fixed: i18n for `q` element. +- Fixed: `pre` text formatting and overflow. +- Fixed: Vertical alignment of `progress`. +- Fixed: `button` overflow in IE 8/9/10. +- Fixed: number input button cursor in Chrome on OS X. +- Fixed: `figure` margin normalization. +- Fixed: `font` and `color` inheritance for forms. --- ### 2.1.3 (August 26, 2013) -* Fix component.json. -* Remove the gray background color from active links in IE 10. +- Fixed: component.json. +- Removed: the gray background color from active links in IE 10. ### 2.1.2 (May 11, 2013) -* Revert root `color` and `background` normalizations. +- Changed: Reverted root `color` and `background` normalizations. ### 2.1.1 (April 8, 2013) -* Normalize root `color` and `background` to counter the effects of system - color schemes. +- Added: root `color` and `background` normalizations to counter the effects of +- system color schemes. ### 2.1.0 (January 21, 2013) -* Normalize `text-transform` for `button` and `select`. -* Normalize `h1` margin when within HTML5 sectioning elements. -* Normalize `hr` element. -* Remove unnecessary `pre` styles. -* Add `main` element to HTML5 display definitions. -* Fix cursor style for disabled button `input`. +- Added: Normalization of `text-transform` for `button` and `select`. +- Added: Normalization of `h1` margin when within HTML5 sectioning elements. +- Added: Normalization of `hr` element. +- Added: `main` element to HTML5 display definitions. +- Removed: unnecessary `pre` styles. +- Fixed: cursor style for disabled button `input`. ### 2.0.1 (August 20, 2012) -* Remove stray IE 6/7 `inline-block` hack from HTML5 display settings. +- Removed: stray IE 6/7 `inline-block` hack from HTML5 display settings. ### 2.0.0 (August 19, 2012) -* Remove legacy browser form normalizations. -* Remove all list normalizations. -* Add `quotes` normalizations. -* Remove all heading normalizations except `h1` font size. -* Form elements automatically inherit `font-family` from ancestor. -* Drop support for IE 6/7, Firefox < 4, and Safari < 5. +- Removed: Legacy browser form normalizations. +- Removed: List normalizations. +- Removed: heading normalizations except `h1` font size. +- Removed: Support for IE 6/7, Firefox < 4, and Safari < 5. +- Added: `quotes` normalizations. +- Changed: Form elements automatically inherit `font-family` from ancestor. --- ### 1.0.1 (August 19, 2012) -* Adjust `small` font size normalization. +- Changed: Adjusted `small` font size normalization. ### 1.0.0 (August 14, 2012) -(Only the notable changes since public release) +- Added: MIT License. +- Added: Hide `audio` elements without controls in iOS 5. +- Added: Heading margins and font size. +- Removed: scrollbar normalization. +- Removed: excess padding from checkbox and radio inputs in IE 7. +- Changed: Moved font-family normalization from `body` to `html`. +- Added: IE9 correction for SVG overflow. +- Added: Fix for legend not inheriting color in IE 6/7/8/9. + +### Prehistory -* Add MIT License. -* Hide `audio` elements without controls in iOS 5. -* Normalize heading margins and font size. -* Move font-family normalization from `body` to `html`. -* Remove scrollbar normalization. -* Remove excess padding from checkbox and radio inputs in IE 7. -* Add IE9 correction for SVG overflow. -* Add fix for legend not inheriting color in IE 6/7/8/9. +- Initial version @@ -1,21 +1,108 @@ -# The MIT License (MIT) - -Copyright © Jonathan Neal and Nicolas Gallagher - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +# CC0 1.0 Universal + +## Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator and +subsequent owner(s) (each and all, an “owner”) of an original work of +authorship and/or a database (each, a “Work”). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific works +(“Commons”) that the public can reliably and without fear of later claims of +infringement build upon, modify, incorporate in other works, reuse and +redistribute as freely as possible in any form whatsoever and for any purposes, +including without limitation commercial purposes. These owners may contribute +to the Commons to promote the ideal of a free culture and the further +production of creative, cultural and scientific works, or to gain reputation or +greater distribution for their Work in part through the use and efforts of +others. + +For these and/or other purposes and motivations, and without any expectation of +additional consideration or compensation, the person associating CC0 with a +Work (the “Affirmer”), to the extent that he or she is an owner of Copyright +and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and +publicly distribute the Work under its terms, with knowledge of his or her +Copyright and Related Rights in the Work and the meaning and intended legal +effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be + protected by copyright and related or neighboring rights (“Copyright and + Related Rights”). Copyright and Related Rights include, but are not limited + to, the following: + 1. the right to reproduce, adapt, distribute, perform, display, communicate, + and translate a Work; + 2. moral rights retained by the original author(s) and/or performer(s); + 3. publicity and privacy rights pertaining to a person’s image or likeness + depicted in a Work; + 4. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(i), below; + 5. rights protecting the extraction, dissemination, use and reuse of data in + a Work; + 6. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation thereof, + including any amended or successor version of such directive); and + 7. other similar, equivalent or corresponding rights throughout the world + based on applicable law or treaty, and any national implementations + thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, + applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and + unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright + and Related Rights and associated claims and causes of action, whether now + known or unknown (including existing as well as future claims and causes of + action), in the Work (i) in all territories worldwide, (ii) for the maximum + duration provided by applicable law or treaty (including future time + extensions), (iii) in any current or future medium and for any number of + copies, and (iv) for any purpose whatsoever, including without limitation + commercial, advertising or promotional purposes (the “Waiver”). Affirmer + makes the Waiver for the benefit of each member of the public at large and + to the detriment of Affirmer’s heirs and successors, fully intending that + such Waiver shall not be subject to revocation, rescission, cancellation, + termination, or any other legal or equitable action to disrupt the quiet + enjoyment of the Work by the public as contemplated by Affirmer’s express + Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be + judged legally invalid or ineffective under applicable law, then the Waiver + shall be preserved to the maximum extent permitted taking into account + Affirmer’s express Statement of Purpose. In addition, to the extent the + Waiver is so judged Affirmer hereby grants to each affected person a + royalty-free, non transferable, non sublicensable, non exclusive, + irrevocable and unconditional license to exercise Affirmer’s Copyright and + Related Rights in the Work (i) in all territories worldwide, (ii) for the + maximum duration provided by applicable law or treaty (including future time + extensions), (iii) in any current or future medium and for any number of + copies, and (iv) for any purpose whatsoever, including without limitation + commercial, advertising or promotional purposes (the “License”). The License + shall be deemed effective as of the date CC0 was applied by Affirmer to the + Work. Should any part of the License for any reason be judged legally + invalid or ineffective under applicable law, such partial invalidity or + ineffectiveness shall not invalidate the remainder of the License, and in + such case Affirmer hereby affirms that he or she will not (i) exercise any + of his or her remaining Copyright and Related Rights in the Work or (ii) + assert any associated claims and causes of action with respect to the Work, + in either case contrary to Affirmer’s express Statement of Purpose. + +4. Limitations and Disclaimers. + 1. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + 2. Affirmer offers the Work as-is and makes no representations or warranties + of any kind concerning the Work, express, implied, statutory or + otherwise, including without limitation warranties of title, + merchantability, fitness for a particular purpose, non infringement, or + the absence of latent or other defects, accuracy, or the present or + absence of errors, whether or not discoverable, all to the greatest + extent permissible under applicable law. + 3. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person’s Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the Work. + 4. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to this + CC0 or use of the Work. + +For more information, please see +http://creativecommons.org/publicdomain/zero/1.0/. @@ -1,29 +1,35 @@ -# csstools-normalize [<img src="https://camo.githubusercontent.com/0d1347e7b4ede3d714150c863a44c932f3c4d84e/68747470733a2f2f6e65636f6c61732e6769746875622e696f2f6e6f726d616c697a652e6373732f6c6f676f2e737667" alt="normalize" width="90" height="90" align="right">][csstools-normalize] +# @csstools/normalize.css [<img src="https://csstools.github.io/normalize.css/logo.svg" alt="normalize" width="90" height="90" align="right">][@csstools/normalize.css] -[csstools-normalize] is a CSS library that provides consistent, cross-browser -default styling of HTML elements. +[@csstools/normalize.css] is a CSS library that provides consistent, +cross-browser default styling of HTML elements. ## Usage +```html +<link href="https://unpkg.com/@csstools/normalize.css" rel="stylesheet" /> +``` + +### Install + ```sh npm install --save @csstools/normalize.css ``` -### Usage in npm and webpack +#### Webpack Usage -Import [csstools-normalize] in CSS: +Import [@csstools/normalize.css] in CSS: ```css @import '~@csstools/normalize.css'; ``` -Alternatively, import [csstools-normalize] in JS: +Alternatively, import [@csstools/normalize.css] in JS: ```js import '@csstools/normalize.css'; ``` -In `webpack.config.js`, be sure to use the appropriate loaders: +In `webpack.config.js`, use the appropriate loaders: ```js module.exports = { @@ -66,12 +72,20 @@ contribution process easy and effective for everyone involved. ## Similar Projects -- [opinionate.css](https://github.com/adamgruber/opinionate.css) - A supplement to normalize.css with opinionated rules -- [sanitize.css](https://github.com/csstools/sanitize.css) - An alternative to normalize.css, adhering to common developer expectations and preferences +- [opinionate.css](https://github.com/adamgruber/opinionate.css) - A supplement +to normalize.css with opinionated rules. +- [sanitize.css](https://github.com/csstools/sanitize.css) - An alternative to +normalize.css, adhering to common developer expectations and preferences +- [remedy.css](https://github.com/csstools/sanitize.css) - An alternative to +normalize.css, adhering to different common developer expectations and +preferences. +- [modern-normalize.css](https://github.com/csstools/sanitize.css) - An +alternative to normalize.css, adhering to a minimal set of normalizations and +common developer expectations and preferences. ## Acknowledgements normalize.css is a project by [Jonathan Neal](https://github.com/jonathantneal), co-created with [Nicolas Gallagher](https://github.com/necolas). -[csstools-normalize]: https://github.com/csstools/normalize.css +[@csstools/normalize.css]: https://github.com/csstools/normalize.css diff --git a/normalize.css b/normalize.css index 8cc5b16..ffddfa7 100644 --- a/normalize.css +++ b/normalize.css @@ -1,5 +1,3 @@ -/*! csstools-normalize v9.0.1 | github.com/csstools/normalize.css */ - /* Document * ========================================================================== */ @@ -32,6 +30,23 @@ h1 { * ========================================================================== */ /** + * Remove the margin on nested lists in Chrome and Safari. + */ + +dl dl, +dl ol, +dl ul, +ol dl, +ol ol, +ol ul, +ul dl, +ul ol, +ul ul { + margin-block-start: 0; + margin-block-end: 0; +} + +/** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */ @@ -131,7 +146,7 @@ audio:not([controls]) { } /** - * Remove the border on images inside links in IE 10-. + * Remove the border on images within links in IE 10-. */ img { @@ -150,7 +165,7 @@ svg:not(:root) { * ========================================================================== */ /** - * Remove the margin in Safari. + * Remove the margin on controls in Safari. */ button, @@ -170,7 +185,7 @@ button { } /** - * Correct the inability to style clickable types in iOS and Safari. + * Correct the inability to style buttons in iOS and Safari. */ button, @@ -285,7 +300,7 @@ textarea { } /** - * 1. Correct the inability to style clickable types in iOS and Safari. + * 1. Correct the inability to style upload buttons in iOS and Safari. * 2. Change font properties to `inherit` in Safari. */ @@ -311,6 +326,14 @@ textarea { outline: 1px dotted ButtonText; } +/** + * Remove the additional :invalid styles in Firefox. + */ + +:-moz-ui-invalid { + box-shadow: none; +} + /* Interactive * ========================================================================== */ diff --git a/opinionated-normalize.css b/opinionated.css index e0613bc..6d0fa77 100644 --- a/opinionated-normalize.css +++ b/opinionated.css @@ -1,5 +1,3 @@ -/*! csstools-normalize v9.0.1 | github.com/csstools/normalize.css */ - /* Document * ========================================================================== */ @@ -40,6 +38,23 @@ h1 { * ========================================================================== */ /** + * Remove the margin on nested lists in Chrome and Safari. + */ + +dl dl, +dl ol, +dl ul, +ol dl, +ol ol, +ol ul, +ul dl, +ul ol, +ul ul { + margin-block-start: 0; + margin-block-end: 0; +} + +/** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */ @@ -139,7 +154,7 @@ audio:not([controls]) { } /** - * Remove the border on images inside links in IE 10-. + * Remove the border on images within links in IE 10-. */ img { @@ -158,7 +173,7 @@ svg:not(:root) { * ========================================================================== */ /** - * Remove the margin in Safari. + * Remove the margin on controls in Safari. */ button, @@ -178,7 +193,7 @@ button { } /** - * Correct the inability to style clickable types in iOS and Safari. + * Correct the inability to style buttons in iOS and Safari. */ button, @@ -297,7 +312,7 @@ textarea { } /** - * 1. Correct the inability to style clickable types in iOS and Safari. + * 1. Correct the inability to style upload buttons in iOS and Safari. * 2. Change font properties to `inherit` in Safari. */ @@ -323,6 +338,14 @@ textarea { outline: 1px dotted ButtonText; } +/** + * Remove the additional :invalid styles in Firefox. + */ + +:-moz-ui-invalid { + box-shadow: none; +} + /* Interactive * ========================================================================== */ diff --git a/package.json b/package.json index cbf41da..f4576d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@csstools/normalize.css", - "version": "9.0.1", + "version": "10.0.0", "description": "A cross-browser CSS foundation", "author": "Jonathan Neal <jonathantneal@hotmail.com>", "contributors": [ @@ -14,15 +14,16 @@ "main": "normalize.css", "style": "normalize.css", "files": [ - "normalize.css" + "normalize.css", + "opinionated.css" ], "scripts": { "prepublishOnly": "npm test", - "test": "stylelint normalize.css" + "test": "stylelint normalize.css opinionated.css" }, "devDependencies": { - "stylelint": "^9.5.0", - "stylelint-config-standard": "^18.2.0" + "stylelint": "^10.0.1", + "stylelint-config-standard": "^18.3.0" }, "stylelint": { "extends": "stylelint-config-standard", |