sanitize.css
Advanced tools
Comparing version 9.0.0 to 10.0.0
# Changes to sanitize.css | ||
### 10.0.0 (June 3, 2019) | ||
- Added: Opinionated page measure via `page.css`. | ||
- Added: Opinionated `border` normalization on form controls to match UA. | ||
- Added: Opinionated `font` and `letter-spacing` as `inherit` on form controls. | ||
- Added: Opinionated normalization of select controls. | ||
- Added: Opinionated normalization of placeholders in Internet Explorer. | ||
- Added: Opinionated `border` removal on iframes in all browsers. | ||
- Removed: Opinionated `border-radius` on form controls. | ||
- Removed: Opinionated `box-shadow` on form controls to match UA expectations. | ||
- Fixed: `Edge` comments without `Chrome` are are changed to `Edge 18-`. | ||
- Fixed: `Chrome` comments without `Edge` have `Edge` added. | ||
- Fixed: Nested list `dl` normalizations split. | ||
- Fixed: Logical `margin-block` normalization changed to `margin`. | ||
- Fixed: Used consistent quotes around typefaces in `typography.css`. | ||
> These fixes were brought in from normalize.css v10.1.0. | ||
### 9.0.0 (May 16, 2019) | ||
@@ -32,23 +50,21 @@ | ||
- Restore form control margin normalizations in Firefox | ||
- Re-order a few rules (opinionated) | ||
- Fixed: Restored form control margin normalizations in Firefox | ||
- Updated: Ordering of a few rules (opinionated) | ||
### 7.0.1 (August 25, 2018) | ||
- Support the 4-space tab width in Firefox (opinionated) | ||
- Update documentation | ||
- Added: Support the 4-space tab width in Firefox (opinionated) | ||
### 7.0.0 (August 22, 2018) | ||
- Use the default user interface font in all browsers (opinionated) | ||
- Use the default monospace user interface font in all browsers (opinionated) | ||
- Use a 4-space tab width in all browsers (opinionated) | ||
- 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 | ||
- Added: System font in all browsers (opinionated) | ||
- Added: System monospace user interface font in all browsers (opinionated) | ||
- Added: 4-space tab width in all browsers (opinionated) | ||
- Removed: Unnecessary form control margin normalizations in Firefox | ||
- Removed: Opinionated fieldset padding in all browsers | ||
- Removed: Normalzations for `::-moz-focus-inner` and `:-moz-focusring` fixed | ||
in Firefox 53 (https://bugzilla.mozilla.org/show_bug.cgi?id=140562) | ||
- Fixed: Correction of cursor style of increment and decrement buttons in | ||
Safari, not Chrome | ||
- Fixed: Text style of placeholders in Chrome, Edge, and Safari | ||
@@ -83,4 +99,3 @@ ### 6.0.0 (June 24, 2018) | ||
- Removed: Reset of universal `margin` and `padding` | ||
- Removed: Inheritance of `font-size` on elements | ||
(form control elements still have it) | ||
- Removed: Inheritance of `font-size` on elements (form controls still have it) | ||
- Removed: Pre-compiled files that used variables | ||
@@ -171,3 +186,3 @@ - Updated: `abbr[title]` styled using `border-bottom` over `text-decoration` | ||
- Removed: Redundant inheritance in ::before and ::after | ||
- Removed: redundant cursor inheritance in anchor and form elements | ||
- Removed: redundant cursor inheritance in anchor and form controls | ||
@@ -174,0 +189,0 @@ ### 1.1.0 (March 20, 2015) |
{ | ||
"name": "sanitize.css", | ||
"version": "9.0.0", | ||
"version": "10.0.0", | ||
"description": "A best-practices CSS foundation", | ||
@@ -18,2 +18,3 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"forms.css", | ||
"page.css", | ||
"sanitize.css", | ||
@@ -24,3 +25,3 @@ "typography.css" | ||
"prepublishOnly": "npm test", | ||
"test": "stylelint forms.css sanitize.css typography.css" | ||
"test": "stylelint *.css" | ||
}, | ||
@@ -27,0 +28,0 @@ "devDependencies": { |
@@ -16,12 +16,30 @@ # sanitize.css [<img src="https://csstools.github.io/sanitize.css/logo.svg" alt="sanitize" width="90" height="90" align="right">][sanitize.css] | ||
A separate stylesheet normalizes typography using system interface fonts. | ||
### Forms | ||
A separate stylesheet that normalizes form controls without side effects. | ||
```html | ||
<link href="https://unpkg.com/sanitize.css/forms.css" rel="stylesheet" /> | ||
``` | ||
A separate stylesheet that sizes form controls without affecting native styles. | ||
```html | ||
<link href="https://unpkg.com/sanitize.css/formsize.css" rel="stylesheet" /> | ||
``` | ||
### Typography | ||
A separate stylesheet that normalizes typography using system interface fonts. | ||
```html | ||
<link href="https://unpkg.com/sanitize.css/typography.css" rel="stylesheet" /> | ||
``` | ||
A separate stylesheet normalizes forms using minimal, standards-like styling. | ||
### Measure | ||
A separate stylesheet that applies a comfortable measure to the page. | ||
```html | ||
<link href="https://unpkg.com/sanitize.css/forms.css" rel="stylesheet" /> | ||
<link href="https://unpkg.com/sanitize.css/measure.css" rel="stylesheet" /> | ||
``` | ||
@@ -28,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34405
8
546
335