• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

ItemTemplate
Summary @import empty styles causes Javascript error in FF 1.5
ReportedBy CrawfordCurrie
Codebase

SVN Range Sat, 14 Jan 2006 build 8289
AppliesTo Engine
Component

Priority Normal
CurrentState No Action Required
WaitingFor

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-01-16 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback