Automattic / juice

Juice inlines CSS stylesheets into your HTML source.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why is external css not working here

bryanrasmussen opened this issue · comments

Hi,

I find the documentation a little unclear - is it possible to use external css and have the css rules be rewritten as internal style attributes? Some statements in the documentation suggest yes, but the parameters you can set suggest no to me.

If it is possible then what combination of parameters should I use to get it to work, for example with https://automattic.github.io/juice/ if I input the html from https://news.ycombinator.com/item?id=20906365 then when I see the following element
<span class="commtext c00">...content</span>
I would suppose it should look something like
<span class="commtext c00" style="color:#000000;font-family: Verdana, Geneva, sans-serif:font-size:9pt">...content</span>
but the inline style is not found. This leads me to suspect that I am incorrect and there is nothing to handle inlineing of external css files.