�PNG  IHDR��;���IDATx��ܻn�0���K�� �)(�pA��� ���7�LeG{�� �§㻢|��ذaÆ 6lذaÆ 6lذaÆ 6lom��$^�y���ذag�5bÆ 6lذaÆ 6lذa{���� 6lذaÆ �`����}H�Fkm�,�m����Ӫ���ô�ô!� �x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6� �h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t ��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ ��Rn��~G���R���C����� �wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L/��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L�� lذaÆ 6l�^k��̱aÆ 6lذaÆ 6lذa;���� �_��ذaÆ 6lذaÆ 6lذaÆ ���R���IEND�B` # stylehacks > Detect/remove browser hacks from CSS files. ## Install With [npm](https://npmjs.org/package/stylehacks) do: ``` npm install stylehacks --save ``` ## Example In its default mode, stylehacks will remove hacks from your CSS file, based on the browsers that you wish to support. ### Input ```css h1 { _color: white; color: rgba(255, 255, 255, 0.5); } ``` ### Output ```css h1 { color: rgba(255, 255, 255, 0.5); } ``` ## API ### `stylehacks.detect(node)` Type: `function` Returns: `boolean` This method will take any PostCSS *node*, run applicable plugins depending on its type, then will return a boolean depending on whether it found any of the supported hacks. For example, if the `decl` node found below is passed to the `detect` function, it will return `true`. But if the `rule` node is passed, it will return `false` instead. ```css h1 { _color: red } ``` ### `stylehacks.process(css, [options]).then(function(result) {})` #### options ##### lint Type: `boolean` Default: `false` If lint mode is enabled, stylehacks will not remove hacks from the CSS; instead, it will add warnings to `Result#messages`. ### `postcss([ stylehacks(opts) ])` stylehacks can also be consumed as a PostCSS plugin. See the [documentation](https://github.com/postcss/postcss#usage) for examples for your environment. ## Related stylehacks works well with your existing PostCSS setup: * [stylelint] - Comprehensive & modern CSS linter, to ensure that your code style rules are respected. ## Contributing Pull requests are welcome. If you add functionality, then please add unit tests to cover it. ## License MIT © [Ben Briggs](http://beneb.info) [stylelint]: https://github.com/stylelint/stylelint