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

Compression with CSS filters break image file name with space in CSS result #736

Closed
stasdavydov opened this issue Jan 29, 2016 · 2 comments

Comments

@stasdavydov
Copy link

I have the background image CSS rule used file with a space in the name:

#checkout_form .credit-cards {
    background-image: url("../imgs/Credit cards.png");
}

{% compress css inline %} block produce the following result:
#checkout_form .credit-cards{background-image: url("../imgs/Creditcards.png")}
Space in file name is removed.

I use the following CSS filters:
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter']

@karyon
Copy link
Contributor

karyon commented Apr 24, 2016

hey, it would be cool if you could check whether it's the AbsoluteFilter or the minifier!

@karyon
Copy link
Contributor

karyon commented Oct 30, 2016

So, it looks like rcssmin is causing this. i built a test to assert the CssAbsoluteFilter is working correctly (#805) and opened ndparker/rcssmin#7.

@karyon karyon closed this as completed Oct 30, 2016
karyon added a commit to karyon/django-compressor that referenced this issue Oct 31, 2016
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

No branches or pull requests

2 participants