By default USERSTYLEURL is not defined, so it expands to the empty string. This causes the
@import
statement to expand to
@import url()
which gives a console error in FF 1.5.
It would have been better to define TWIKILAYOUTURL to include the
@import
. Given that it's too late to do that, how about this instead:
%IF{"'%TWIKILAYOUTURL%'!=''" then="@import url(%TWIKILAYOUTURL%);"}%
%IF{"'%TWIKISTYLEURL%'!=''" then="@import url(%TWIKISTYLEURL%);"}%
%IF{"'%USERLAYOUTURL%'!=''" then="@import url(%USERLAYOUTURL%);"}%
%IF{"'%USERSTYLEURL%'!=''" then="@import url(%USERSTYLEURL%);"}%
which expands to:
@import
url(/pub/TWiki/PatternSkin/layout.css);
@import
url(/pub/TWiki/PatternSkin/style.css);
CC
Ignore me - I see you already did that. The error was coming from the kupu template, which can't support %IF (it has to be cairo compatible)
CC