[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/css
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2009-05-22 4:43:28
Message-ID: 1242967408.560447.29012.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic