• 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.

Item7270: Embedded CSS cannot handle tabs

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Apparently, CSS code embedded in TWiki cannot handle tabs. The Chrome Developer Console shows the affected classes as empty.

This issue was discovered when previously working CSS/HTML code was copied from a .html file and pasted into a TWIki page. The CSS did not work in the TWiki page until tabs were converted to spaces.

Problem Code: Example

Consider the following CSS code:

<style type="text/css">
.MainBackground1 {
   background-image: url('%PUBURLPATH%/%WEB%/%TOPIC%/DocumentStack1.jpg');
   background-repeat: no-repeat;
}
</style>

A page that contains

<div class="MainBackground1"> 
...
</div>

should show the specified background gif behind the content between the div tags. It does not.

See VickiBrownCSS1 for live code.

The Chrome Developer console insists that the definition of class MainBackground1 is empty.

Working Code: Example

This CSS code works:

<style type="text/css">
.MainBackground1 {
  background-image: url('%PUBURLPATH%/%WEB%/%TOPIC%/DocumentStack1.jpg');
  background-repeat: no-repeat;
}
</style>

See VickiBrownCSS2 for live code.

The only difference is that the first example indents with tabs while the second indents with spaces.

-- TWiki:Main/VickiBrown - 2013-05-29

ItemTemplate
Summary Embedded CSS cannot handle tabs
ReportedBy TWiki:Main.VickiBrown
Codebase 5.1.4
SVN Range TWiki-5.1.3-trunk, Mon, 13 May 2013, build 25914
AppliesTo Engine
Component

Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic revision: r1 - 2013-05-29 - VickiBrown
 
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