W3C home > Mailing lists > Public > www-validator-css@w3.org > October 2003

Validator Bug: Uncaught errorjava.lang.Exception: Import loop

From: Laura Carlson <lcarlson@d.umn.edu>
Date: Thu, 23 Oct 2003 13:47:57 -0400
To: www-validator-css@w3.org
Message-ID: <3425552828.1066635534@mwah175-pc.d.umn.edu>

I believe that this is a CSS Validator Bug. The CSS validator is giving 
me the following error message.
Line: 54
ncaught errorjava.lang.Exception: Import loop detected in
The full report is here:
In Eric Meyer's "Cascading Style sheets the Definitive Guide" page 15 
he states, "...there can be more than one @import statement in a 
document." And the CSS below was valid previously. Has the validator 
On the Web Design list (see forwarded message below) Sam Marshall 
suggested that I contact you and report this bug. Can you please fix 
This is my CSS:
<style type="text/css">
import "http://www.d.umn.edu/itss/classroom/css/wireframe.css";
import "http://www.d.umn.edu/itss/classroom/css/classroomforms.css";
import "http://www.d.umn.edu/itss/classroom/css/classroomthreecol.css";
#content .item{
ont-size : 90%;
content h2 a {
argin : 0.33em 0 0.33em;
ont-size : 75%;
content h2 + p {
argin-top : 0.33em;
content h3 + * {
argin-top : 0.1em !important;
content h2 {
argin : 0 0 0em 0.33em;
adding : 0.2em 0 0;
order-bottom : 1px solid ;

--------- Forwarded Message ----------
ate: Monday, October 20, 2003 5:25 AM -0400
rom: "[WD] digest" <owner-digest@webdesign-l.com>
o: digest@webdesign-l.com
ubject: [WD] digest V2 #1616
Since you don't have an infinite loop (none of your stylesheets have
imports except the main one), I would say this is probably a validator
ug. Most likely the loop detection is failing because of one of two
a) you have multiple imports in the <style> statement rather than in
ifferent .css files and it is confused as it doesn't know a 'name' for
he style block .css 'file'.
b) your stylesheets have similar names until the last few characters
(Both of these would indicate a validator bug, I'm just making vague
uesses at why it might happen.)
You might want to make a copy of your files somewhere that they won't
hange (so it's useful as a reference while fixing the bug) and submit
t in a bug report to the validator people. Unless I'm being thick,
here is no infinite loop anywhere in your page and even if there's
omething else wrong with your CSS, the validator shouldn't report an
mport loop when one doesn't exist.
If you want your page to pass the validator as-is I would suggest either
oving those @imports into <link rel='stylesheet'> statements instead,
r importing a single external stylesheet that happens to import the
hree others.
- --sam
---------- End Forwarded Message ----------
aura L. Carlson
nformation Technology Systems and Services
niversity of Minnesota Duluth
uluth, MN  55812-3009
Received on Thursday, 23 October 2003 13:58:12 UTC

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