All variants of the following (be it relative or absolute URL set) results in failure of background image setting through the interface-I know it says some syntax won't be accepted but is there any way to make this work?

background:url("http://basedomain.com/sites/default/themes/theme/graphics/graphic.png");
background-image:url("http://basedomain.com/sites/default/themes/theme/graphics/graphic.png");
background:url(http://basedomain.com/sites/default/themes/theme/graphics/graphic.png);
background-image:url(http://basedomain.com/sites/default/themes/theme/graphics/graphic.png);
background:url('http://basedomain.com/sites/default/themes/theme/graphics/graphic.png');
background-image:url('http://basedomain.com/sites/default/themes/theme/graphics/graphic.png');

Please advise, link to documentation that shows expected syntax or I recommend adding to known issues. Quick search on drupal.org resulted in no real solutions.

Comments

Letharion’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I'm sorry, but I don't understand at all why this is in the Panels issue queue?

rayvan’s picture

Because this is a support request to have the ability to post any valid CSS in the override text area. This would help in situations where a developer has multiple development server environments and just wants to get something fixed in production fast without a code push.

Letharion’s picture

Title: background image does not work in css code text area » Background image does not work in css code text area
Status: Postponed (maintainer needs more info) » Fixed

I thought that your css itself was failing, and thought you needed to check your syntax. Sorry about that.

I'm not aware of a really easy way to do that from the UI no. The function ctools_css_filter_css_data() can be passed a custom list of allowed markup, but I see no way to do that from the UI. I think you would actually need to implement your own task-handler for that, likely inheriting from the current one.

You could also post a patch for allowing background-image, I don't see why it wouldn't be accepted, but there could of-course be a good reason for the current setup.

merlinofchaos’s picture

Status: Fixed » Closed (won't fix)

Unfortunately, background-image is restricted for security reasons. Allowing that CSS is considered exploitable, and thus we do not allow it in the UI.

rayvan’s picture

Ok, thanks anyways.

victor.bexelius’s picture

Issue summary: View changes

Hello,
If I want to edit the filter list and enable background-image along with other CSS-attributes: what file would I change?

Best regards

Victor