7.6 KiB
Changes to sanitize.css
10.0.0 (June 3, 2019)
- Added: Opinionated page measure via
page.css. - Added: Opinionated
bordernormalization on form controls to match UA. - Added: Opinionated
fontandletter-spacingasinheriton form controls. - Added: Opinionated normalization of select controls.
- Added: Opinionated normalization of placeholders in Internet Explorer.
- Added: Opinionated
borderremoval on iframes in all browsers. - Removed: Opinionated
border-radiuson form controls. - Removed: Opinionated
box-shadowon form controls to match UA expectations. - Fixed:
Edgecomments withoutChromeare are changed toEdge 18-. - Fixed:
Chromecomments withoutEdgehaveEdgeadded. - Fixed: Nested list
dlnormalizations split. - Fixed: Logical
margin-blocknormalization changed tomargin. - 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)
- Removed: Opinionated removal of text shadow on text selections due to bugs in High Contrast mode.
- Removed: Opinionated removal of repeating backgrounds in all browsers due to form control unstyling.
- Removed: Opinionated interface typography in all browsers, which is moved to forms.css and typography.css.
- Changed: Visually hidden content now uses some less aggressive selectors.
- Added: Opinionated interface typography in all browsers via typography.css.
- Added: Opinionated standards-like form styling in all browsers via forms.css.
- Added: Opinionated removal of the grey highlight when tapping links in iOS.
8.0.1 (May 12, 2019)
- Fixed: Typo of
browerstypo tobrowsers
8.0.0 (October 8, 2018)
- Changed: Apply
aria-disableddisabled styles when[aria-disabled="true"] - Changed: Apply
svg { fill: currentColor }whensvg:not([fill]) - Fixed: Apply appropriate system font fallbacks for KDE Plasma
7.0.3 (September 4, 2018)
- Fix disabled cursor
7.0.2 (September 4, 2018)
- Fixed: Restored form control margin normalizations in Firefox
- Updated: Ordering of a few rules (opinionated)
7.0.1 (August 25, 2018)
- Added: Support the 4-space tab width in Firefox (opinionated)
7.0.0 (August 22, 2018)
- 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-innerand:-moz-focusringfixed 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
6.0.0 (June 24, 2018)
- Added:
word-break: break-wordtohtml - Added:
font-family: inheriton form elements - Added: normalize.css updates
- Added:
box-sizing: border-boxto*, ::before, ::after - Removed:
box-sizing: border-boxfromhtmlandbox-sizing: inheritfromhtml - Removed:
color: inheritandbackground-color: transparentfromform
5.0.0 (March 1, 2017)
- Added: normalize.css v6 parity, including
summarydisplay - Added: form elements to inherit line-height from html
- Removed: font styles on
html - Removed: unnecessary
border-spacingzeroing
4.1.0 (July 1, 2016)
- Updated: The focus removal on
:hovernow targetsa:hover
4.0.0 (June 20, 2016)
- Added: All improvements from normalize.css v4.1.1
- Added: Documentation for each opinionated feature
- Added: Universal
background-repeat: no-repeat - Removed: Reset of universal
marginandpadding - Removed: Inheritance of
font-sizeon elements (form controls still have it) - Removed: Pre-compiled files that used variables
- Updated:
abbr[title]styled usingborder-bottomovertext-decoration - Updated: Tests and linting
Why are variables removed in v4?
Variables were there for developers to override styles in sanitize.css without editing the original file or overriding the rule. However, you should override the rule so that your change is explicit, and so that your source maps accurately indicate your changes coming from your files.
3.3.0 (March 3, 2016)
- Added:
bandstrongnormalization - Added:
::-moz-focus-innernormalization - Added:
hrnormalization - Added:
svgfill as the current color - Updated: Organized rules into normalization, universal inheritance, opinionated defaults, and configurable defaults
- Updated: Moved source and compiled libraries
3.2.0 (February 3, 2016)
- Added:
selection.less - Updated: Use
root-prefixed values across all formats - Updated: Documentation
3.1.1 (February 1, 2016)
- Updated:
box-sizingvariable corrected toborder-boxin sass, scss, styl
3.1.0 (February 1, 2016)
- Added: Project configuration (.editorconfig)
- Added: Style linting rules and tests
- Added:
touch-action: manipulationto remove delays during mobile tapping - Removed:
text-renderingdue to performance issues - Updated:
::selectioncolor variable corrected to--selection-color - Updated: Use direct nesting
3.0.0 (October 23, 2015)
- Added: Normalization for iOS 8+
- Added:
background-repeatfor all elements - Added: CONTRIBUTING.md
- Updated: background color and color for
:rootpreviouslyhtml - Updated:
::selectioncolor to#ffffff - Updated: dist from CSS source using PostCSS, cssnext, and cssnano
- Updated: Documentation
2.1.1 (October 5, 2015)
- Updated: bower.json
2.1.1 (October 5, 2015)
- Added: CSS version
- Updated: Use percentage
font-sizeon:root - Updated: Documentation
- Removed:
background-colorinheritance
2.0.0 (September 3, 2015)
- Added: Visually hidden element style
[hidden][aria-hidden="false"] - Added: Currently updating element style
[aria-busy="true"] - Added: Trigger element style
[aria-controls] - Added: Color style for
html - Added: CHANGELOG.md
- Removed: Standards-breaking visually hidden style
[hidden~="screen"] - Removed: Standards-breaking IE-proprietary style
[unselectable="on"] - Removed: Prefix-less properties and the use of Autoprefixer
- Updated: Form styling
- Updated: Support for the latest Chrome, Edge, Firefox, and Safari
- Updated: Licensing reference in package.json
- Updated: Development dependencies
- Updated: README.md and code documentation
1.2.0 (June 16, 2015)
- Added: Control over options via Sass variables
- Added: Overflow normalization on :root
- Added:
font-styleinheritance - Updated: Support for the latest Firefox
- Removed: Redundant inheritance in ::before and ::after
- Removed: redundant cursor inheritance in anchor and form controls
1.1.0 (March 20, 2015)
- Added: Form support
- Updated: Normalization
- Updated: Border assignment
1.0.0 (11 6, 2012)
- Updated: Moved from normalize.css to sanitize.css
Normalize.css had and still has opinionated, developer-centric styles. For example,
subandsupelements are styled to not impact the line height of text, andtable,th, andtdomit all spacing. As Nicolas pushed Normalize.css into maturity, future preferences like these no longer had a place in the project. Almost a year later, Sanitize was officially branded. Where Normalize.css conservatively follows user agent consensus and results in more pre-styled elements, Sanitize.css liberally follows developer consensus and results in more unstyled elements.
0.0.0 (4 21, 2011)
- Added: Normalize.css