<?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>82266</bug_id>
          
          <creation_ts>2004-05-26 20:31:50 +0000</creation_ts>
          <short_desc>[test case] Caption width is too short</short_desc>
          <delta_ts>2007-01-02 11:51:06 +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 renderer</component>
          <version>unspecified</version>
          <rep_platform>unspecified</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>1</everconfirmed>
          <reporter name="Mattias Hermansson">mattias</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>hadmut</cc>
    
    <cc>lex.lists</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>236341</commentid>
    <comment_count>0</comment_count>
    <who name="Mattias Hermansson">mattias</who>
    <bug_when>2004-05-26 20:31:50 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.2.1)
Installed from:    Unlisted Binary Package
OS:                Linux

The caption is not rendered over the entire table. Check out this testcase with konq and mozilla

http://shayol-ghul.csbnet.se/~mattias/sadIII/caption3.html


Screenshots below:
http://shayol-ghul.csbnet.se/~mattias/sadIII/screen1.png
http://shayol-ghul.csbnet.se/~mattias/sadIII/screen2.png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301630</commentid>
    <comment_count>1</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2005-01-10 15:42:00 +0000</bug_when>
    <thetext>Webpage is no longer active.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301877</commentid>
    <comment_count>2</comment_count>
    <who name="Mattias Hermansson">mattias</who>
    <bug_when>2005-01-11 12:34:43 +0000</bug_when>
    <thetext>Sorry. Apache daemon went down. Webpage problem fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>335851</commentid>
    <comment_count>3</comment_count>
    <who name="lexual">lex.lists</who>
    <bug_when>2005-04-19 14:47:40 +0000</bug_when>
    <thetext>Site couldn&apos;t be visited 2005-April-19</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352446</commentid>
    <comment_count>4</comment_count>
    <who name="lexual">lex.lists</who>
    <bug_when>2005-06-22 02:49:37 +0000</bug_when>
    <thetext>Mattias, I&apos;m not 100% what the problem is. Can you please clarify what the problem is?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352474</commentid>
    <comment_count>5</comment_count>
    <who name="Mattias Hermansson">mattias</who>
    <bug_when>2005-06-22 08:41:55 +0000</bug_when>
    <thetext>The problem is that the caption isn&apos;t rendered over the entire table.

If you look at the right border, where the table and caption meet, you see that the caption is shorter than the rest of the table.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>356945</commentid>
    <comment_count>6</comment_count>
    <who name="lexual">lex.lists</who>
    <bug_when>2005-07-11 04:43:32 +0000</bug_when>
    <thetext>Mattias, the above links are currently broken. Please consider creating attachments of those files so that your bug can be worked on regardless of the status of your web server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>362439</commentid>
    <comment_count>7</comment_count>
      <attachid>12060</attachid>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2005-08-03 12:55:26 +0000</bug_when>
    <thetext>Created attachment 12060
test case

Caption is two pixels narrower than table (3.5-branch)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423377</commentid>
    <comment_count>8</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2006-03-20 09:12:35 +0000</bug_when>
    <thetext>*** Bug 123952 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>478051</commentid>
    <comment_count>9</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2006-10-18 22:00:54 +0000</bug_when>
    <thetext>SVN commit 596875 by carewolf:

captions are independent of tables border and padding
BUG: 82266


 M  +4 -0      render_box.cpp  


--- branches/KDE/3.5/kdelibs/khtml/rendering/render_box.cpp #596874:596875
@@ -707,6 +707,10 @@
     }
 
     RenderBlock* cb = containingBlock();
+    if (isRenderBlock() &amp;&amp; cb-&gt;isTable()) {
+        //captions are not affected by table border or padding
+        return cb-&gt;width();
+    }
     if (usesLineWidth())
         return cb-&gt;lineWidth(m_y);
     else
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>478878</commentid>
    <comment_count>10</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2006-10-22 02:44:42 +0000</bug_when>
    <thetext>+    if (isRenderBlock() &amp;&amp; cb-&gt;isTable()) { 
+        //captions are not affected by table border or padding 

this doesn&apos;t screen out table cells, or I&apos;m missing something?
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497557</commentid>
    <comment_count>11</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2007-01-02 11:51:06 +0000</bug_when>
    <thetext>SVN commit 618852 by ggarand:

don&apos;t let other elements go in there
e.g. &lt;table border=5&gt;&lt;tr&gt;&lt;td style=position:relative;left:100%&gt;X

CCBUG:82266



 M  +1 -1      render_box.cpp  
 M  +1 -0      render_table.h  


--- trunk/KDE/kdelibs/khtml/rendering/render_box.cpp #618851:618852
@@ -707,7 +707,7 @@
     }
 
     RenderBlock* cb = containingBlock();
-    if (isRenderBlock() &amp;&amp; cb-&gt;isTable()) {
+    if (isRenderBlock() &amp;&amp; cb-&gt;isTable() &amp;&amp; static_cast&lt;RenderTable*&gt;(cb)-&gt;caption() == this) {
         //captions are not affected by table border or padding
         return cb-&gt;width();
     }
--- trunk/KDE/kdelibs/khtml/rendering/render_table.h #618851:618852
@@ -162,6 +162,7 @@
     CollapsedBorderValue* currentBorderStyle() { return m_currentBorder; }
 
     RenderTableSection *firstBodySection() const { return firstBody; }
+    RenderFlow*         caption() const { return tCaption; }
 
 protected:
 
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>12060</attachid>
            <date>2005-08-03 12:55:26 +0000</date>
            <delta_ts>2005-08-03 12:55:26 +0000</delta_ts>
            <desc>test case</desc>
            <filename>caption3.html</filename>
            <type>text/html</type>
            <size>333</size>
            <attacher name="Tommi Tervo">tommi.tervo</attacher>
            
              <data encoding="base64">CgoKPGh0bWw+Cgo8aGVhZD4KCTx0aXRsZT5DYXB0aW9udGVzdDwvdGl0bGU+Cgk8bGluayByZWw9
InN0eWxlc2hlZXQiIGhyZWY9Imh0dHA6Ly9zaGF5b2wtZ2h1bC5jc2JuZXQuc2Uvfm1hdHRpYXMv
ZGVmYXVsdC5jc3MiIC8+CjwvaGVhZD4KCjxib2R5PgoKPGRpdiBjbGFzcz0nRm9ybVZpZXcnPgo8
dGFibGUgY2xhc3M9J0Zvcm1WaWV3Jz4KPGNhcHRpb24+UmVuZGVyZWQgaW5jb3JyZWN0bHk8L2Nh
cHRpb24+Cjx0cj4KPHRkPkZpbGxvdXRmaWxsb3V0ZmlsbG91dDwvdGQ+Cjx0ZD5GaWxsb3V0Zmls
bG91dDwvdGQ+CjwvdHI+CjwvdGFibGU+CjwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>