- From: Thomas Gambet <tgambet@w3.org>
- Date: Wed, 22 Feb 2012 17:56:34 -0500
- 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. Thomas --- <!DOCTYPE html> <html> <head> <title>Test file</title> <link href="style.css" rel="stylesheet" /> </head> <body></body> </html>
Received on Wednesday, 22 February 2012 22:56:50 UTC