Socket
Socket
Sign inDemoInstall

sanitize.css

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanitize.css - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

41

CHANGELOG.md

@@ -1,7 +0,16 @@

## 4.1.0 (2016-07-01)
# Changes to sanitize.css
- Updated: The focus removal on `:hover` now targets `a:hover`.
### 5.0.0 (March 1, 2017)
## 4.0.0 (2016-06-20)
- 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
### 4.1.0 (July 1, 2016)
- Updated: The focus removal on `:hover` now targets `a:hover`
### 4.0.0 (June 20, 2016)
- Added: All improvements from normalize.css v4.1.1

@@ -17,3 +26,3 @@ - Added: Documentation for each opinionated feature

### Why are variables removed in v4?
#### Why are variables removed in v4?

@@ -25,3 +34,3 @@ Variables were there for developers to override styles in sanitize.css without

## 3.3.0 (2016-03-03)
### 3.3.0 (March 3, 2016)

@@ -36,3 +45,3 @@ - Added: `b` and `strong` normalization

## 3.2.0 (2016-02-03)
### 3.2.0 (February 3, 2016)

@@ -43,7 +52,7 @@ - Added: `selection.less`

## 3.1.1 (2016-02-01)
## 3.1.1 (February 1, 2016)
- Updated: `box-sizing` variable corrected to `border-box` in sass, scss, styl
## 3.1.0 (2016-02-01)
### 3.1.0 (February 1, 2016)

@@ -57,3 +66,3 @@ - Added: Project configuration (.editorconfig)

## 3.0.0 (2015-10-23)
### 3.0.0 (October 23, 2015)

@@ -68,7 +77,7 @@ - Added: Normalization for **iOS 8+**

## 2.1.1 (2015-10-05)
### 2.1.1 (October 5, 2015)
- Updated: bower.json
## 2.1.1 (2015-10-05)
### 2.1.1 (October 5, 2015)

@@ -80,3 +89,3 @@ - Added: CSS version

## 2.0.0 (2015-09-03)
### 2.0.0 (September 3, 2015)

@@ -98,3 +107,3 @@ - Added: Visually hidden element style `[hidden][aria-hidden="false"]`

## 1.2.0 (2015-06-16)
### 1.2.0 (June 16, 2015)

@@ -108,3 +117,3 @@ - Added: Control over options via Sass variables

## 1.1.0 (2015-03-20)
### 1.1.0 (March 20, 2015)

@@ -115,3 +124,3 @@ - Added: Form support

## 1.0.0 (2012-11-06)
### 1.0.0 (11 6, 2012)

@@ -129,4 +138,4 @@ - Updated: Moved from normalize.css to sanitize.css

## 0.0.0 (2011-04-21)
### 0.0.0 (4 21, 2011)
- Added: Normalize.css
{
"name": "sanitize.css",
"version": "4.1.0",
"description": "The best-practices alternative to CSS resets.",
"main": "index.js",
"version": "5.0.0",
"description": "The best-practices CSS foundation",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
"repository": "jonathantneal/sanitize.css",
"homepage": "https://jonathantneal.github.io/sanitize.css",
"bugs": "https://github.com/jonathantneal/sanitize.css/issues",
"main": "sanitize.css",
"style": "sanitize.css",
"devDependencies": {
"postcss": "^5.0.21",
"postcss-reporter": "^1.3.3",
"stylelint": "^6.5.1",
"stylelint-config-10up": "github:jonathantneal/stylelint-config-10up"
},
"files": [
"sanitize.css"
],
"scripts": {
"test": "stylelint sanitize.css"
},
"engines": {
"node": ">=0.12.0"
"devDependencies": {
"stylelint": "^7.9.0",
"stylelint-config-dev": "^1.0.0"
},
"repository": "jonathantneal/sanitize.css",
"keywords": [
"css",
"cssnext",
"less",
"normalize",
"postcss",
"reset",
"sass",
"scss",
"stylelint",
"stylus"
],
"author": "Jonathan Neal <jonathantneal@hotmail.com> (http://jonathantneal.com)",
"license": "CC0-1.0",
"bugs": "https://github.com/jonathantneal/sanitize.css/issues",
"homepage": "https://github.com/jonathantneal/sanitize.css#readme",
"stylelint": {
"extends": "stylelint-config-10up"
"extends": "stylelint-config-dev"
}
}

@@ -1,10 +0,10 @@

# sanitize.css
# sanitize.css <a href="https://github.com/jonathantneal/sanitize.css"><img src="https://jonathantneal.github.io/sanitize.css/logo.svg" alt="sanitize.css logo" width="80" height="80" align="right"></a>
<a href="https://github.com/jonathantneal/sanitize.css"><img src="https://jonathantneal.github.io/sanitize.css/logo.svg" alt="sanitize.css logo" width="80" height="80" align="right"></a>
[![NPM Version][npm-img]][npm-url]
[![Bower Version][bow-img]][bow-url]
[![CDNJS Version][cdn-img]][cdn-url]
[![Build Status][cli-img]][cli-url]
[![License][lic-img]][lic-url]
[![Gitter Chat][git-img]][git-url]
> The best-practices CSS foundation.
[![npm][npm-image]][npm-url] [![bower][bower-image]][bower-url]
[![ci][ci-image]][ci-url] [![gitter][gitter-image]][gitter-url]
[sanitize.css] is a CSS library that corrects broken and missing styles in all

@@ -28,16 +28,4 @@ browsers, preserving useful defaults rather than unstyling everything. It’s

##### CDN
[cdnjs](https://cdnjs.com/libraries/10up-sanitize.css)
## Features
##### Backgrounds should not repeat by default
```css
* {
background-repeat: no-repeat;
}
```
##### Box sizing should be inherited and default to border-box

@@ -55,16 +43,15 @@

##### Cursor should only change to hint non-obvious interfaces
##### Backgrounds should not repeat by default
```css
html {
cursor: default;
* {
background-repeat: no-repeat;
}
```
##### Regular text should be sans serif with a comfortable line height
##### Cursor should only change to hint non-obvious interfaces
```css
html {
font-family: sans-serif
line-height: 1.5;
cursor: default;
}

@@ -113,10 +100,2 @@ ```

##### Outlines are redundant on hovered links
```css
:hover {
outline-width: 0;
}
```
##### Tables should not include additional border spacing

@@ -127,7 +106,6 @@

border-collapse: collapse;
border-spacing: 0;
}
```
##### Form controls should be fully style-able
##### Form controls should be easily style-able

@@ -137,5 +115,5 @@ ```css

background-color: transparent;
border-style: none;
color: inherit;
font-size: 1em;
font-size: inherit;
line-height: inherit;
}

@@ -152,2 +130,11 @@ ```

##### Single taps should be dispatched immediately on clickable elements
```css
a, area, button, input, label, select, summary, textarea, [tabindex] {
-ms-touch-action: manipulation;
touch-action: manipulation;
}
```
##### ARIA roles should include visual cursor hints

@@ -169,15 +156,6 @@

##### Single taps should be dispatched immediately on clickable elements
```css
a, area, button, input, label, select, textarea, [tabindex] {
-ms-touch-action: manipulation; /* 1 */
touch-action: manipulation;
}
```
##### Visually hidden content should remain accessible
```css
[hidden][aria-hidden="false"] {
[aria-hidden="false"][hidden]:not(:focus) {
clip: rect(0, 0, 0, 0);

@@ -187,6 +165,2 @@ display: inherit;

}
[hidden][aria-hidden="false"]:focus {
clip: auto;
}
```

@@ -196,7 +170,7 @@

[sanitize.css] styles elements more consistently with developers’ expectations
and preferences. [normalize.css] styles elements more consistently between
browsers. [reset.css] unstyles every element. Both sanitize.css and
normalize.css are maintained in sync, and both projects correct browser bugs
while carefully testing and documenting every change.
[normalize.css] and [sanitize.css] correct browser bugs while carefully testing
and documenting changes. normalize.css styles adhere to css specifications.
sanitize.css styles adhere to common developer expectations and preferences.
[reset.css] unstyles all elements. Both sanitize.css and normalize.css are
maintained in sync.

@@ -222,13 +196,17 @@ ## Support

[bower-image]: https://img.shields.io/bower/v/sanitize-css.svg?style=flat-square
[bower-url]: https://libraries.io/bower/sanitize-css
[ci-image]: https://img.shields.io/travis/jonathantneal/sanitize.css.svg?style=flat-square
[ci-url]: https://travis-ci.org/jonathantneal/sanitize.css
[gitter-image]: https://img.shields.io/gitter/room/jonathantneal/sanitize.css.svg?style=flat-square
[gitter-url]: https://gitter.im/jonathantneal/sanitize.css
[npm-image]: https://img.shields.io/npm/v/sanitize.css.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/sanitize.css
[bow-img]: https://img.shields.io/bower/v/sanitize-css.svg
[bow-url]: https://libraries.io/bower/sanitize-css
[cdn-img]: https://img.shields.io/cdnjs/v/10up-sanitize.css.svg
[cdn-url]: https://cdnjs.com/libraries/10up-sanitize.css
[cli-img]: https://img.shields.io/travis/jonathantneal/sanitize.css.svg
[cli-url]: https://travis-ci.org/jonathantneal/sanitize.css
[git-img]: https://img.shields.io/badge/chat-gitter-blue.svg
[git-url]: https://gitter.im/jonathantneal/sanitize.css
[lic-img]: https://img.shields.io/npm/l/sanitize.css.svg
[lic-url]: LICENSE.md
[npm-img]: https://img.shields.io/npm/v/sanitize.css.svg
[npm-url]: https://www.npmjs.com/package/sanitize.css
[normalize.css]: https://github.com/necolas/normalize.css
[reset.css]: http://meyerweb.com/eric/tools/css/reset/
[sanitize.css]: https://github.com/jonathantneal/sanitize.css
[reset.css]: http://meyerweb.com/eric/tools/css/reset/
[sanitize.css]: https://github.com/jonathantneal/sanitize.css

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc