(*** This bug was imported into bugs.kde.org ***) Package: khtml Version: 3.0.5 (CVS >= 20020327) (using KDE 3.0.5 (CVS HEAD >= 20020427)) Severity: normal Installed from: compiled sources Compiler: gcc version 3.1 (Mandrake Linux 8.3 3.1-0.11mdk) OS: Linux (i686) release 2.4.18aa1 OS/Compiler notes: See for example the page: http://www.chessbase.com/puzzle/tactics/tac0521.htm My configuration: Compiled source code with gcc 3.1 enabled objprelink. The text is shifted too much to the right It should be under the diagram. Thanks Eyal (Submitted via bugs.kde.org) (Called from KBugReport dialog)
Rather the diagram should also be centered.
Created attachment 156 [details] testcase problem is this: <DIV ALIGN="center"> <PRE>centered or not centered?</PRE> </DIV> Mozilla puts it in the center, Konqi does not.
Testcase still fail and diagrams are still not centered. (I have kde 3.1.3 from Mandrake 9.2)
IE centers too.
still valid in KDE 3.2 rc1
*** Bug 84704 has been marked as a duplicate of this bug. ***
Actually the DIV _is_ centered. It is just the PRE-block that takes up an entire line.. I wonder why
Probably the text-align: khtml-auto thing for pre in html4.css Allan?
Seems like it. Removing it fixes the bug. I guess we need a better way to do the same
SVN commit 433700 by carewolf: PRE should not start its own alignment, and TH should only CENTER if not inheriting. BUG: 79498 BUG: 42906 M +4 -0 cssstyleselector.cpp M +0 -2 html4.css --- trunk/KDE/kdelibs/khtml/css/cssstyleselector.cpp #433699:433700 @@ -564,6 +564,10 @@ // style->setDisplay(style->isDisplayInlineType() ? INLINE_TABLE : TABLE); } + // Table headers with a text-align of auto will change the text-align to center. + if (e && e->id() == ID_TH && style->textAlign() == TAAUTO) + style->setTextAlign(CENTER); + // Mutate the display to BLOCK or TABLE for certain cases, e.g., if someone attempts to // position or float an inline, compact, or run-in. Cache the original display, since it // may be needed for positioned elements that have to compute their static normal flow --- trunk/KDE/kdelibs/khtml/css/html4.css #433699:433700 @@ -220,7 +220,6 @@ TH { font-weight: bolder; - text-align: center; } CAPTION { @@ -454,7 +453,6 @@ display: block; font-family: monospace; white-space: pre; - text-align: -khtml-auto; margin: 1__qem 0; }