SVN commit 971235 by ggarand: don't allow special aligment values to percolate through tables even in strict mode, as it isn't Mozilla-compatible. BUG: 193093 M +9 -0 cssstyleselector.cpp M +1 -0 quirks.css --- trunk/KDE/kdelibs/khtml/css/cssstyleselector.cpp #971234:971235 @@ -905,6 +905,15 @@ style->setOverflowX(OVISIBLE); if (style->overflowY() != OVISIBLE && style->overflowY() != OHIDDEN) style->setOverflowY(OVISIBLE); + + // do comparable resets as Mozilla's nsStyleContext::ApplyStyleFixups + // except they decided to do it only for center and right, for whatever strange reason. cf.#193093 + if (style->display() == TABLE && (style->textAlign() == KHTML_LEFT || + style->textAlign() == KHTML_RIGHT || + style->textAlign() == KHTML_CENTER)) { + style->setTextAlign( TAAUTO ); + } + } // Cull out any useless layers and also repeat patterns into additional layers. --- trunk/KDE/kdelibs/khtml/css/quirks.css #971234:971235 @@ -27,6 +27,7 @@ line-height: normal; color: -khtml-text; font-size: medium; + font-variant: normal; empty-cells: hide; text-align: -khtml-auto; font-weight: initial;