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

List:       kde-commits
Subject:    KDE/kdelibs/khtml/css
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2005-07-11 13:08:49
Message-ID: 1121087329.310894.13584.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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