<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>106812</bug_id>
          
          <creation_ts>2005-06-05 01:03:06 +0000</creation_ts>
          <short_desc>text-align inheritance problem in strict (xhtml-1.0) mode</short_desc>
          <delta_ts>2006-08-23 04:21:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml</component>
          <version>3.4.1</version>
          <rep_platform>Debian testing</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Yves Glodt">yg</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>maksim</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>347689</commentid>
    <comment_count>0</comment_count>
    <who name="Yves Glodt">yg</who>
    <bug_when>2005-06-05 01:03:06 +0000</bug_when>
    <thetext>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:

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

Now if you have this piece of css:

	body {
		text-align:center;
	}
	td,th {
		width:200px;
		background-color:#887;
	}

&lt;td&gt; 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 &lt;body&gt;

Strangely, if I remove the xhtml doctype, none of the 3 browsers centers it, so maybe it&apos;s an xhtml compliance bug...
I&apos;ll attach a small testcase to save some typing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347690</commentid>
    <comment_count>1</comment_count>
      <attachid>11329</attachid>
    <who name="Yves Glodt">yg</who>
    <bug_when>2005-06-05 01:03:57 +0000</bug_when>
    <thetext>Created attachment 11329
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348554</commentid>
    <comment_count>2</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2005-06-08 03:59:51 +0000</bug_when>
    <thetext>I&apos;m not a CSS expert, but I agree with your assessment. And I can reproduce it (trunk 414026).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462546</commentid>
    <comment_count>3</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2006-08-23 04:21:08 +0000</bug_when>
    <thetext>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 {
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11329</attachid>
            <date>2005-06-05 01:03:57 +0000</date>
            <delta_ts>2005-06-05 01:03:57 +0000</delta_ts>
            <desc>Testcase</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>478</size>
            <attacher name="Yves Glodt">yg</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25h
bC5kdGQiPgo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CjxoZWFk
PgoJPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCWJvZHkgewoJCXRleHQtYWxpZ246Y2VudGVyOwoJ
fQoJdGQsdGggewoJCXdpZHRoOjIwMHB4OwoJCWJhY2tncm91bmQtY29sb3I6Izg4NzsKCX0KCTwv
c3R5bGU+CjwvaGVhZD4KPGJvZHk+Cgo8ZGl2IGFsaWduPSJjZW50ZXIiPgoKPHRhYmxlPgo8dHI+
Cjx0aD5UYWJsZSBoZWFkZXI8L3RoPgo8dGQ+VGFibGUgZGF0YTwvdGQ+CjwvdHI+Cjx0cj4KPHRo
PlRhYmxlIGhlYWRlcjwvdGg+Cjx0ZD5UYWJsZSBkYXRhPC90ZD4KPC90cj4KPC90YWJsZT4KCjwv
ZGl2PgoKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>