Re: url() relativity... a bug?

Incidentally I fixed my paths to be absolute now (in case you look) -  
but the issue still remains and a simple test app would prove it.

JP


On 18 Jun 2008, at 15:53, James Pearce wrote:

>
> Hi all,
>
> In trying to get http://metajam.mobi to be MobileOK, I think I have a
> bug for you.
>
>    http://validator.w3.org/mobile/?docAddr=http%3A%2F%2Fmetajam.mobi
>
> I have a stylesheet one folder down from the root:
>
>    http://metajam.mobi/g/s.css
>
> Which contains (amongst other things)
>
>    background-image: url('bg.gif');
>
> But the checker is failing because it can't find http://metajam.mobi/bg.gif
>   (or rather that it's getting HTML, aka 404)
>
> According to
>
>    http://www.w3.org/TR/REC-CSS1#url
>
> The image specified is supposed to be relative to the source of the
> stylesheet, not the document.
>
> So the checker should be looking for http://metajam.mobi/g/bg.gif
> right? (Which is where it would have found it ;-) )
>
>
> James
>
>

Received on Wednesday, 18 June 2008 15:07:20 UTC