- From: Kravvitz <Kravvitz@DynamicSiteSolutions.com>
- Date: Thu, 25 Aug 2005 23:01:12 -0400
- To: "Sergey E. Koposov" <math@sai.msu.ru>, www-validator-css@w3.org
Firefox and other browsers look for the <base> element. The CSS
Validator apparently does not.
Why don't you just specify the full URL,
"http://lnfm1.sai.msu.ru/~math/scripts/head.css"?
-- Kravvitz
Sergey E. Koposov wrote:
> 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:57:21 UTC