html-compress-twig icon indicating copy to clipboard operation
html-compress-twig copied to clipboard

All rules that uses custom CSS properties is removed

Open Grawl opened this issue 6 years ago • 1 comments

Input:

{% htmlcompress %}
<style>
.foo {
    --a: 1em;
    padding: var(--a);
    color: blue;
}
</style>
{% endhtmlcompress %}

Expected output:

<style>.foo {--a: 1em;padding: var(--a);color: blue;}</style>

Actual output:

<style>.foo {--a: 1em;color: blue;}</style>

Grawl avatar Oct 14 '19 04:10 Grawl

Just release 3.0.0 that includes the fix for this. Also opened https://github.com/nochso/html-compress-twig/pull/16 to get this version available in that package.

WyriHaximus avatar Feb 08 '20 23:02 WyriHaximus