- Added:
word-break: break-word
tohtml
- Added:
font-family: inherit
on form elements - Added: normalize.css updates
- Added:
box-sizing: border-box
to*, ::before, ::after
- Removed:
box-sizing: border-box
fromhtml
andbox-sizing: inherit
fromhtml
- Removed:
color: inherit
andbackground-color: transparent
fromform
- Added: normalize.css v6 parity, including
summary
display - Added: form elements to inherit line-height from html
- Removed: font styles on
html
- Removed: unnecessary
border-spacing
zeroing
- Updated: The focus removal on
:hover
now targetsa:hover
- 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
margin
andpadding
- Removed: Inheritance of
font-size
on elements (form control elements still have it) - Removed: Pre-compiled files that used variables
- Updated:
abbr[title]
styled usingborder-bottom
overtext-decoration
- Updated: Tests and linting
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.
- Added:
b
andstrong
normalization - Added:
::-moz-focus-inner
normalization - Added:
hr
normalization - Added:
svg
fill as the current color - Updated: Organized rules into normalization, universal inheritance, opinionated defaults, and configurable defaults
- Updated: Moved source and compiled libraries
- Added:
selection.less
- Updated: Use
root
-prefixed values across all formats - Updated: Documentation
- Updated:
box-sizing
variable corrected toborder-box
in sass, scss, styl
- Added: Project configuration (.editorconfig)
- Added: Style linting rules and tests
- Added:
touch-action: manipulation
to remove delays during mobile tapping - Removed:
text-rendering
due to performance issues - Updated:
::selection
color variable corrected to--selection-color
- Updated: Use direct nesting
- Added: Normalization for iOS 8+
- Added:
background-repeat
for all elements - Added: CONTRIBUTING.md
- Updated: background color and color for
:root
previouslyhtml
- Updated:
::selection
color to#ffffff
- Updated: dist from CSS source using PostCSS, cssnext, and cssnano
- Updated: Documentation
- Updated: bower.json
- Added: CSS version
- Updated: Use percentage
font-size
on:root
- Updated: Documentation
- Removed:
background-color
inheritance
- 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
- Added: Control over options via Sass variables
- Added: Overflow normalization on :root
- Added:
font-style
inheritance - Updated: Support for the latest Firefox
- Removed: Redundant inheritance in ::before and ::after
- Removed: redundant cursor inheritance in anchor and form elements
- Added: Form support
- Updated: Normalization
- Updated: Border assignment
- Updated: Moved from normalize.css to sanitize.css
Normalize.css had and still has opinionated, developer-centric styles. For example,
sub
andsup
elements are styled to not impact the line height of text, andtable
,th
, andtd
omit 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.
- Added: Normalize.css