Automattic / Automattic/juice

why is external css not working here

Open
#342 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.3k
Forks
233
Avg merge
1d 10h
Merged PRs (30d)
8

Description

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
`...content
`
I would suppose it should look something like
`...content`
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.

Contributor guide

Open the contributing guide

Research direction

Start by comparing Juice's documentation and configurable parameters with the external stylesheet used by the Hacker News example. Verify whether that stylesheet is supported and whether the shown span should receive inline styles; done means the documentation clearly states the supported behavior and required parameter combination.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.