webpage2html
webpage2html copied to clipboard
Imported CSS styles
The code doesn't handle the @import css rule, to embed other css style inside a css style. https://developer.mozilla.org/en/docs/Web/CSS/@import
This feature is critical to create a single html file correctly.
The equivalent webpage2html in node.js handle this case: https://github.com/remy/inliner/blob/master/lib/css.js
It's also interesting to add the feature of minification.
Yeah you are right, recursive css @import is important, yet hard to implement. Let me take some time to think it over.
Hi I know that my question is out of the topic of this issue, but... Do you know any alternative to zTrix/webpage2html and remy/inliner written in PHP? BTW, thanks for awesome library, it just works out of the box. My need of PHP is that I would like to implement it into Wordpress plugin
@gitowiec The code and logic is not complicated, maybe a full rewrite in PHP is not that hard?