[ http://issues.apache.org/jira/browse/ADFFACES-121?page=all ]

Simon Lessard updated ADFFACES-121:
-----------------------------------

    Attachment: ADFFACES-121_v2.patch

This patch applies Adam's suggestions:

Convert url();  anything other than than this syntax gets dropped
   and logged with a warning

 - URLs beginning with a slash get prefixed with the context root
   (like other such URLs in JSF)
 - URLs beginning with two slashes get trimmed to a single slash
   (special Trinidad URL rule, already used in Trinidad components)
 - Relative URLs get interpreted as relative to the original .css file,
   and converted so that they are still valid references to the
   desired file.
 - Other URLs (e.g., URLs with server names) are left alone.

> The url part in the css rule background:url("foo") is not being translated 
> the same way as background-image:url("foo")
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-121
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-121
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>          Components: Skinning
>         Environment: All
>            Reporter: Martin Kool
>            Priority: Minor
>         Attachments: ADFFACES-121.patch, ADFFACES-121_v2.patch
>
>
> It seems that in CSS-3 selectors, a url specified in "background-image" is 
> being converted correctly, whereas the same url specified in "backgroun" is 
> not. 
> For example, the following two lines of css:
>  background: url("../../afr/dropdown_n.gif");
>  background-image: url("../../afr/dropdown_n.gif");
> get converted to
>  background:url("../../afr/dropdown_n.gif");
>  background-image:url("/adf-richclient-demo-context-root/afr/dropdown_n.gif")
> So currently people can use background-url as a workaround, but this should 
> be supported at some time.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to