Skip to content
 
 

Repository files navigation

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

About

normalize.css without attribute selectors

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages