Automattic / juice

Juice inlines CSS stylesheets into your HTML source.
MIT License
3.1k stars 220 forks source link

Resolve CSS variables #473

Closed oyejorge closed 11 months ago

oyejorge commented 11 months ago

Resolves

<style>
:root{
--color:blue;
}
p{
 color:var(--color);
}
</style>
<p>woot</p>

to

<p style="color: blue;">woot</p>

See also #312

jrit commented 11 months ago

looks good thanks. I need to publish a major version change with the default behavior updated, but 100% agree with the new default.

tantalic commented 10 months ago

@jrit - Any chance of getting a new release soon? I am trying to utilize this in a project.

AlanBreck commented 1 month ago

~@jrit, following up as well. This would be really great to have.~

Sorry for the noise. Seems that npm is on version 10.0.0. My confusion was that the releases on Github only say 9.1.0.