Problem w. Tables in Author Mode, CSS attrib white-space:pre
Posted: Fri Mar 06, 2009 2:36 am
I reduced the problem to the following simple example, where a html table is simulated in XML. Using "white-space:pre" in the CSS-file is causing the problem:
==== XML-File Begin ======== XML-File END ====
==== Style Sheet file "Test.css" Begin ======== Style Sheef file "Test.css" End ====
Switching to author mode is working well now. But as soon as you remove the comment tags from "white-space:pre;", the table cannot be displayed any more in author mode and an error is shown.
In my (non-expert) opinion this is a bug. Thanks for any feedback!
==== XML-File Begin ====
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="Test.css" type="text/css"?>
<AA>
<BB>
<TABLE>
<TR>
<TD>
Some Cell Content
</TD>
<TD>
Other Cell Content
</TD>
</TR>
</TABLE>
</BB>
</AA>
==== Style Sheet file "Test.css" Begin ====
Code: Select all
BB { display:block; /* white-space:pre; */
border-style:solid; border-color:green; }
TABLE { display:table; border-style:inherit; }
TR { display:table-row; border-style:inherit; border-color:gray; }
TD { display:table-cell; border-style:inherit; border-color:inherit; }
Switching to author mode is working well now. But as soon as you remove the comment tags from "white-space:pre;", the table cannot be displayed any more in author mode and an error is shown.
In my (non-expert) opinion this is a bug. Thanks for any feedback!