normalize.css-without-attribute-selectors

8.0.1 • Public • Published

normalize.css without attribute selectors

This is a fork of the famous normalize.css from Nicolas Gallagher and Jonathan Neal where all attribute selectors have been removed.

npm license changelog

NPM

npm install --save normalize.css-without-attribute-selectors

Why remove attribute selectors?

There is a huge performance bottleneck in Microsofts Internet Explorer 11 when using attribute selectors. Rendering or styling of DOM elements takes up to 30-50 times longer when attributed selectors are involved. It's not only the usage of these selectors but there sole existance in a parsed CSS file or in a <style> tag.

Alexei Antipov wrote an excellent article on Medium.com where he figured out this IE11 issue.

Usage

@import 'node_modules/normalize.css-without-attribute-selectors/normalize.css';

or

<link rel="stylesheet" href="node_modules/normalize.css-without-attribute-selectors/normalize.css">

Credits

All credit should go to normalize.css. I just removed all attribute selectors. If you have questions about the source, check out the original source and this for details.

License

MIT

Package Sidebar

Install

npm i normalize.css-without-attribute-selectors

Weekly Downloads

1

Version

8.0.1

License

MIT

Unpacked Size

9.86 kB

Total Files

5

Last publish

Collaborators

  • ebual