-
Notifications
You must be signed in to change notification settings - Fork 322
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
background-image gradients are lost if background-image has a url defined as the "background" #466
Labels
Comments
That's surprising indeed! |
jakubpawlowicz
added a commit
that referenced
this issue
Mar 1, 2015
In case of multi-value shorthands (comma separated) we reuse tokens instead of cloning when splitting / rebuilding values. There was an edge case in rebuilding when having more than one `background` in a rule.
Fixed in 3.1.2! |
Thanks @jakubpawlowicz ! :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take the following CSS:
This will result in:
Note, the linear-gradient is lost.
If you remove the url on the background e.g. the following
becomes:
It does not occur.
It is probably not the most sensible CSS, however it is interpreted in the browser as expected, whereas clean-css gives you a surprise :-)
The text was updated successfully, but these errors were encountered: