Version: 3.4.1 (using KDE KDE 3.4.1) Installed from: Debian testing/unstable Packages OS: Linux Hi, I think I found a small bug... I have a document with this doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Now if you have this piece of css: body { text-align:center; } td,th { width:200px; background-color:#887; } <td> will not be centered. This seems to be a bug, Firefox and Opera 8 both center the data, and it seems logical as (IIRC) the rule should be inherited from the <body> Strangely, if I remove the xhtml doctype, none of the 3 browsers centers it, so maybe it's an xhtml compliance bug... I'll attach a small testcase to save some typing.
Created attachment 11329 [details] Testcase
I'm not a CSS expert, but I agree with your assessment. And I can reproduce it (trunk 414026).
SVN commit 576076 by ggarand: text-align of tables should only be reset in quirk mode. BUG: 106812 M +0 -1 html4.css M +1 -0 quirks.css --- branches/KDE/3.5/kdelibs/khtml/css/html4.css #576075:576076 @@ -170,7 +170,6 @@ table { display: table; border-collapse: separate; - text-align: -khtml-auto; border-spacing: 2px; -khtml-flow-mode: -khtml-around-floats; box-sizing: border-box; --- branches/KDE/3.5/kdelibs/khtml/css/quirks.css #576075:576076 @@ -24,6 +24,7 @@ color: -khtml-text; font-size: medium; empty-cells: hide; + text-align: -khtml-auto; } LAYER {