Re: Error Message for External Style Sheet

Thomas Gambet <[email protected]>
Newsgroups gmane.org.w3c.validator.css
Message-ID <[email protected]>
Le 2/21/2012 5:39 AM, Yves Lafon a écrit :
> On Thu, 16 Feb 2012, [email protected] wrote:
>
>> When validating an HTML file for CSS errors with the CSS validator,
>> the correctly formatted <link rel="stylesheet" type="text/css"
>> href="styles1..css" /> is reported as an error as follows: File not
>> found: import file://localhost/styles1.css: Operation not permitted

> The issue is not that it's an external style sheet, it's more that you
> are using 'localhost', which won't work for most people reading that
> page (unless you will be the only one to access the server from the same
> computer, of course).

Frank is correct. The errors suggests that the CSS Validator resolves 
relative uris in an uploaded html file against file://localhost/, 
whereas relative uris should not be considered in that case and reported 
as not validated.

Thomas

---

<!DOCTYPE html>
<html>
<head>
	<title>Test file</title>
	<link href="style.css" rel="stylesheet" />
</head>
<body></body>
</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.