<?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>103039</bug_id>
          
          <creation_ts>2005-04-02 00:15:58 +0000</creation_ts>
          <short_desc>[site-issue] does not render site correctly http://www.di.se/Avdelningar/Ettan.aspx</short_desc>
          <delta_ts>2007-01-07 08:05:43 +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="kek had">khadjari</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          
          
          <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>330837</commentid>
    <comment_count>0</comment_count>
    <who name="kek had">khadjari</who>
    <bug_when>2005-04-02 00:15:58 +0000</bug_when>
    <thetext>Version:           3.4.0 (using KDE 3.4.0, Gentoo)
Compiler:          gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
OS:                Linux (i686) release 2.6.10-gentoo-r6

The texts lines next to pictures are seperated too much from each other.

If there are no pictures the alignment looks allright.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331357</commentid>
    <comment_count>1</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2005-04-03 18:18:11 +0000</bug_when>
    <thetext>I can see it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465900</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Rodrigues">phil</who>
    <bug_when>2006-09-02 13:18:52 +0000</bug_when>
    <thetext>Same with SVN r575787</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>499043</commentid>
    <comment_count>3</comment_count>
      <attachid>19150</attachid>
    <who name="Germain Garand">germain</who>
    <bug_when>2007-01-07 07:54:32 +0000</bug_when>
    <thetext>Created attachment 19150
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>499044</commentid>
    <comment_count>4</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2007-01-07 08:05:42 +0000</bug_when>
    <thetext>SVN commit 620738 by ggarand:

Make vertical-align text-top/bottom more CSS 2.1 compliant: we are 
looking for the parent&apos;s font or font strut&apos;s *content area* 
(as per 10.6.1) so do not use its baselinePosition.

Add the missing half-leading for both text-top and text-bottom
(mozilla/css_1/vertical_align_texttop.html): that&apos;s also part of
content area.

Using baselinePosition on parent was even more bogus because of the
major semantic differences in CSS between baseline in table
context and other baselines. A mess that was the origin of #103039

BUG: 103039



 M  +2 -10     render_object.cpp  


--- trunk/KDE/kdelibs/khtml/rendering/render_object.cpp #620737:620738
@@ -1864,27 +1864,19 @@
                 return vpos - style()-&gt;verticalAlignLength().width( lineHeight( firstLine ) );
 
             const QFont &amp;f = ref-&gt;font( firstLine );
-            int fontheight = ref-&gt;lineHeight( firstLine );
             int fontsize = f.pixelSize();
-            int halfleading = ( fontheight - fontsize ) / 2;
 
             if ( va == SUB )
                 vpos += fontsize/5 + 1;
             else if ( va == SUPER )
                 vpos -= fontsize/3 + 1;
             else if ( va == TEXT_TOP ) {
-//                 qDebug( &quot;got TEXT_TOP vertical pos hint&quot; );
-//                 qDebug( &quot;parent:&quot; );
-//                 qDebug( &quot;CSSLH: %d, CSS_FS: %d, basepos: %d&quot;, fontheight, fontsize, ref-&gt;baselinePosition( firstLine ) );
-//                 qDebug( &quot;this:&quot; );
-//                 qDebug( &quot;CSSLH: %d, CSS_FS: %d, basepos: %d&quot;, lineHeight( firstLine ), style()-&gt;font().pixelSize(), baselinePosition( firstLine ) );
-                vpos += ( baselinePosition( firstLine ) - ref-&gt;baselinePosition( firstLine ) +
-                        halfleading );
+                vpos += baselinePosition( firstLine ) - (QFontMetrics(f).ascent() + QFontMetrics(f).leading()/2);
             } else if ( va == MIDDLE ) {
                 QRect b = QFontMetrics(f).boundingRect(&apos;x&apos;);
                 vpos += -b.height()/2 - lineHeight( firstLine )/2 + baselinePosition( firstLine );
             } else if ( va == TEXT_BOTTOM ) {
-                vpos += QFontMetrics(f).descent();
+                vpos += QFontMetrics(f).descent() + QFontMetrics(f).leading()/2;
                 if ( !isReplaced() )
                     vpos -= fontMetrics(firstLine).descent();
             } else if ( va == BASELINE_MIDDLE )
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19150</attachid>
            <date>2007-01-07 07:54:32 +0000</date>
            <delta_ts>2007-01-07 07:54:32 +0000</delta_ts>
            <desc>testcase</desc>
            <filename>x.html</filename>
            <type>text/html</type>
            <size>208</size>
            <attacher name="Germain Garand">germain</attacher>
            
              <data encoding="base64">PHRhYmxlIHdpZHRoPTMwMD4KPHRyPjx0ZD4KICA8aW1nIHNyYz1mIGhlaWdodD0xNTAgd2lkdGg9
MTUwPgogIDxzcGFuIHN0eWxlPSJ2ZXJ0aWNhbC1hbGlnbjogdGV4dC10b3AiPkxvcmVtIGlwc3Vt
IGRvbG9yIHNpdCBhbWV0IG9tbmlzIHRlcnJhIHZlbmVyYXR1ciB0aWJpIG9tbmVzIGFuZ2VsaSB0
aWJpIGNhZWxpIGV0IHVuaXZlcnNhZSBwb3Rlc3RhdGVzCgoKCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>