W3C home > Mailing lists > Public > www-validator-css@w3.org > February 2012

Re: Error Message for External Style Sheet

From: Thomas Gambet <tgambet@w3.org>
Date: Wed, 22 Feb 2012 17:56:34 -0500
Message-ID: <4F4572A2.7080601@w3.org>
To: Yves Lafon <ylafon@w3.org>
CC: "frank.barncord@student.swic.edu" <frank.barncord@student.swic.edu>, "www-validator-css@w3.org" <www-validator-css@w3.org>
Le 2/21/2012 5:39 AM, Yves Lafon a écrit :
> On Thu, 16 Feb 2012, frank.barncord@student.swic.edu 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.



<!DOCTYPE html>
	<title>Test file</title>
	<link href="style.css" rel="stylesheet" />
Received on Wednesday, 22 February 2012 22:56:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:48 UTC