W3C home > Mailing lists > Public > www-validator-css@w3.org > August 2005

@import and base href problem ?

From: Sergey E. Koposov <math@sai.msu.ru>
Date: Thu, 25 Aug 2005 04:36:25 +0400 (MSD)
To: www-validator-css@w3.org
Message-ID: <Pine.LNX.4.44.0508250402490.25986-100000@lnfm1.sai.msu.ru>

Hello, 

I just find a strange behaviour of the validator when using the @import 
directive. 

The <head> of the document contains (among other things):

<head>
<base href="http://lnfm1.sai.msu.ru/~math/">
<style type="text/css">
@import "scripts/head.css";
body {
    	font-family: "Comic Sans MS",serif;
	background-image: url("images/background1.jpg");
}
div.photo_list 
{
	font-size: 150%;
}
</style>
</head>

My document is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> and is
successfully validated by the W3C HTML 4.01 Transitional validator.

But the CSS validator shows me the error:
File not found http://lnfm1.sai.msu.ru/~math/photos/scripts/head.css: 
Not Found

So it searches the css file without using the base_href.

I found the thread in the mail list archives about the same thing: 
http://lists.w3.org/Archives/Public/www-validator-css/2004Feb/0079
And the reply to that message says that the error will be corrected soon. 

But it seems to me that it was not corrected and we still see the same error
of the validator. Am I right ? 

By the way, using  @import url("scripts/head.css")give the same validation 
error. Also, at least Firefox certainly load that css file without any 
problems.

With Best Regards,
	Sergey

------------------------------------------------------------
Sergey Koposov
Sternberg Astronomical Institute, Moscow State University (Russia)
Max-Planck Institute for Astronomy (Germany) 
Homepage: http://lnfm1.sai.msu.ru/~math/
Email: math@sai.msu.ru
Received on Friday, 26 August 2005 02:48:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:16 GMT