Ticket #13972 (confirmed Feature Request)

Opened 2 years ago

Last modified 20 months ago

inline resources are not supported by Products.ResourceRegistry

Reported by: saily Owned by:
Priority: minor Milestone: 4.x
Component: Templates/CSS Version:
Keywords: Cc:

Description

inline images not supported in css, for example a base64 transparent gif image:

background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP) 

is transformed to an absolute url:

background-image: url(http://myplone.site/++theme++my.theme/css/data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP) 

Change History

comment:1 Changed 20 months ago by cwainwright

  • Status changed from new to confirmed
  • Component changed from Unknown to Templates/CSS
  • Type changed from Bug to Feature Request

This is only an issue only when 'Replace relative paths in url() statements with absolute paths' is checked for the file in the registry. You can create a separate CSS file without this options checked for the data images.

Though this may be something we'd want to change, that even if the option is checked, the absolute path would not be prepended to data:

Note: See TracTickets for help on using tickets.