Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All rules that uses custom CSS properties is removed #72

Closed
Grawl opened this issue Nov 7, 2019 · 3 comments · Fixed by #83
Closed

All rules that uses custom CSS properties is removed #72

Grawl opened this issue Nov 7, 2019 · 3 comments · Fixed by #83

Comments

@Grawl
Copy link

Grawl commented Nov 7, 2019

This issue is a copy of nochso/html-compress-twig#14

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
Copy link
Author

Grawl commented Nov 7, 2019

It's because an older version of this package in my project.

I commented out new CssMinCompressor() in constructSmallest() and problem is gone.

@WyriHaximus
Copy link
Owner

Resolving this upstream: WyriHaximus/php-css-compress#28

@WyriHaximus
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants