Closed GoogleCodeExporter closed 9 years ago
Could you specify the location of the stylesheet containing the .inlineHelp
class? It
is important, because the way the url is rewritten depends on the css location.
Regarding quotes handling: I don't quite understand the problem, as long as the
url is
rewritten even if you use the quotes. Do you mean that the output should
contain the
quotes as the input does?
Original comment by alex.obj...@gmail.com
on 18 May 2010 at 7:41
One more question: what do you mean by image should be referenced correctly?
What is
the correct url of the image?
I wouldn't recommend to start the background image url with "/" character,
because that
wouldn't make it relative to css but to app root context which may lead to
unexpected
behavior (when you deploy your application under a different context).
Original comment by alex.obj...@gmail.com
on 18 May 2010 at 8:19
The CSS is at /styles/combinable/tooltips.css.
Here's my wro.xml:
<group name="combined">
<js>/scripts/combinable/**.js</js>
<css>/styles/combinable/**.css</css>
</group>
The correct url is just /images/buttons/button_gry_bg.png as specified in the
CSS file. So no url rewriting is
necessary, and none happens when I omit the quotes in the CSS rule. But when I
add quotes, the url rewriting
seems to kick in and lead to a 404.
Original comment by david.hi...@gmail.com
on 18 May 2010 at 9:09
Indeed, you are right. When quotes are used, the url doesn't work consistently.
Thanks
for reporting this!
Original comment by alex.obj...@gmail.com
on 18 May 2010 at 10:05
Original comment by alex.obj...@gmail.com
on 18 May 2010 at 10:05
Fixed - when the background image url starts with '/', it won't be overwritten
no
matter if quotes are used or not.
Original comment by alex.obj...@gmail.com
on 18 May 2010 at 10:17
The fix seems to be specific only to the resources whose uri is a valid
ServletContext resource.(ie. if the css belongs to the servlet context)
The bug still remains for conditions where you have the css hosted in an
external server (ie. when we use the UrlUriLocator)
The fix probably should have been made in the
CssUrlRewritingProcessor.computeNewImageLocation(), the image url starts with
the '/' it should have left alone, shouldn't it ?
Original comment by doncarea...@gmail.com
on 13 Jun 2012 at 6:50
Original issue reported on code.google.com by
david.hi...@gmail.com
on 17 May 2010 at 3:01