Post Reply 
Author Prefix URLs in CSS Templates Specification
flongo
AT core team member

Find all posts by this user
Quote this message in a reply
30 January 2014 15:06
@benoit: the purpose of the CR, if I understand correctly, is that they don't want to have to replicate the same folder structure in the media folder, as they do today, in order to make images visible. That's why they asked for it. The requirement comes from APP, I guess they know better...
mathbruyen
Member

Find all posts by this user
Quote this message in a reply
Default  4 February 2014 15:56
Hi,

(I am part of the team originally requesting this feature)

Is there a reason to handle only background properties and not any one which may refer to url()? For example could customizers include @font-face definitions?

How would the string being passed to the function be normalized? Would they always have their quotes removed or is it up to the function to do it by itself?

I am a little concerned about having only one mapping utility being registered in the whole application, it means that not two functional components may rely on this feature. Could there be an array of such functions? I know the way several mapping utilities may interact with each other is a tricky issue.
fbernardo
AT core team member

Find all posts by this user
Quote this message in a reply
4 February 2014 17:00
The method will search the url() pattern inside all css files and it will remove single/double quotes.
Olaf
Administrator

Find all posts by this user
Quote this message in a reply
5 February 2014 15:01
fwiw, I also prefer the solution that uses a method rather than a class.

@Mathieu: what's the use case that would require having multiple methods?

(@Fabiano: you can update the first post instead of copying it)
mathbruyen
Member

Find all posts by this user
Quote this message in a reply
5 February 2014 18:17
There is no use case that I see right know but declaring a global setting which applies only to a subset of CSS templates (the customized ones only) looks dangerous to me.
fbernardo
AT core team member

Find all posts by this user
Quote this message in a reply
6 February 2014 10:45
The idea is to use a global setting to apply to all CSS templates
mathbruyen
Member

Find all posts by this user
Quote this message in a reply
6 February 2014 16:47
Ok then. And what about the other usages of url()?
Post Reply