posthtml-inline-css
posthtml-inline-css copied to clipboard
CSS Inliner
Before: ```html body{color:silver} .class1{color:red} .class1:hover{color:blue !important} .class2{color:purple} ``` After: ```html .class1:hover{color:blue !important} ``` [styliner](https://npmjs.com/styliner) does this, and [juice](https://npmjs.com/juice) sort of does.
With corrected HTML trees, inline transformations can use correct CSS selectors. Bad HTML templates are common from designers: ``` html a { color:yellow } table a { color:red } link...
This module should only parse `` and `` elements, so that elements such as `` and `` are ignored.