<?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>187285</bug_id>
          
          <creation_ts>2009-03-16 09:24:17 +0000</creation_ts>
          <short_desc>background-image not used when background-repeat used in body element [testcase][regression]</short_desc>
          <delta_ts>2009-03-26 06:59:37 +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>4.2.1</version>
          <rep_platform>Slackware</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="Konrad Rzepecki">hannibal</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>andresbajotierra</cc>
    
    <cc>germain</cc>
    
    <cc>marcus</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>731167</commentid>
    <comment_count>0</comment_count>
    <who name="Konrad Rzepecki">hannibal</who>
    <bug_when>2009-03-16 09:24:17 +0000</bug_when>
    <thetext>Version:            (using KDE 4.2.1)
Compiler:          GCC 4.2.X or 4.3.X 
OS:                Linux
Installed from:    Slackware Packages

Konqueror 4.2.X refuses to render background image on body element when repeat-x is set. 3.5.X renders it correctly (as other browsers).

Minimal testcase is below. It should show gradient background it but doesn&apos;t. 

&lt;html&gt;
&lt;head&gt;
    &lt;style type=&quot;text/css&quot;&gt;
body {
    background-image: url(&apos;http://dentonet.pl/img/mainbg.png&apos;);
    background-repeat: repeat-x;
}
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;


Removing background-repeat property causes to show background. The sigle line version &quot;background:url(&apos;http://dentonet.pl/img/mainbg.png&apos;) repeat-x;&quot; is also affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>731168</commentid>
    <comment_count>1</comment_count>
      <attachid>32161</attachid>
    <who name="Konrad Rzepecki">hannibal</who>
    <bug_when>2009-03-16 09:25:29 +0000</bug_when>
    <thetext>Created attachment 32161
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>731231</commentid>
    <comment_count>2</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-03-16 12:39:24 +0000</bug_when>
    <thetext>I can confirm here using:

Qt: 4.5.0 + qt-copy-patches-936035
KDE: 4.2.66 (KDE 4.2.66 (KDE 4.3 &gt;= 20090310))
kdelibs svn rev. 939600 / kdebase svn rev. 939602
on ArchLinux i686 - Kernel 2.6.28.7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>731826</commentid>
    <comment_count>3</comment_count>
    <who name="Marcus Harrison">marcus</who>
    <bug_when>2009-03-17 19:44:32 +0000</bug_when>
    <thetext>Strangely, when the background-repeat option is used, the background only spans to the height of the content. However, when it isn&apos;t used, it spans the whole page. The question is whether this is standards compliant or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>731829</commentid>
    <comment_count>4</comment_count>
      <attachid>32209</attachid>
    <who name="Marcus Harrison">marcus</who>
    <bug_when>2009-03-17 19:47:34 +0000</bug_when>
    <thetext>Created attachment 32209
Shows the content spanning as opposed to the full-body spanning</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>731950</commentid>
    <comment_count>5</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-03-18 01:56:37 +0000</bug_when>
    <thetext>hmm looks like I goofed in r855521.
Will have to look at that, thank you for the testcase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>732000</commentid>
    <comment_count>6</comment_count>
    <who name="Konrad Rzepecki">hannibal</who>
    <bug_when>2009-03-18 07:03:49 +0000</bug_when>
    <thetext>Marcus this is not true. Look at http://dentonet.pl/ there is a loot of content beneath the background is not show.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>732084</commentid>
    <comment_count>7</comment_count>
    <who name="Marcus Harrison">marcus</who>
    <bug_when>2009-03-18 12:04:48 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Marcus this is not true. Look at http://dentonet.pl/ there is a loot of content
&gt; beneath the background is not show.

It&apos;s difficult to test that reliably: looking at the source of the website, a lot of the elements are positioned absolutely - which would ignore the body settings, which is actually compliant to standards. As you can see, the bar at the top isn&apos;t positioned absolutely, meaning the body&apos;s background does span to its contents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>732161</commentid>
    <comment_count>8</comment_count>
    <who name="Konrad Rzepecki">hannibal</who>
    <bug_when>2009-03-18 14:49:58 +0000</bug_when>
    <thetext>&gt; It&apos;s difficult to test that reliably: looking at the source of the website, a
&gt; lot of the elements are positioned absolutely

Absoluty are positioned left part of the page (two narrow boxes) and some content of boxes in central part.

The content of the central part is in &quot;relative&quot; div witch contain floated div witch again contain relatives. So &quot;absolute&quot; doesn&apos;t match here...


Even if it apply, the background-color shouldn&apos;t be draw either. And backgrounds whithout &quot;repeat&quot; property should be also cut.

Whatever will be decided, to cut or not to cut, khtml should do this in consistent way. However I prefer not to cut, as in other browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>732207</commentid>
    <comment_count>9</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2009-03-18 16:25:52 +0000</bug_when>
    <thetext>Bug 172409 may be related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>733381</commentid>
    <comment_count>10</comment_count>
    <who name="Marcus Harrison">marcus</who>
    <bug_when>2009-03-21 16:58:56 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; &gt; It&apos;s difficult to test that reliably: looking at the source of the website, a
&gt; &gt; lot of the elements are positioned absolutely
&gt; 
&gt; Absoluty are positioned left part of the page (two narrow boxes) and some
&gt; content of boxes in central part.
&gt; 
&gt; The content of the central part is in &quot;relative&quot; div witch contain floated div
&gt; witch again contain relatives. So &quot;absolute&quot; doesn&apos;t match here...
&gt; 
&gt; 
&gt; Even if it apply, the background-color shouldn&apos;t be draw either. And
&gt; backgrounds whithout &quot;repeat&quot; property should be also cut.
&gt; 
&gt; Whatever will be decided, to cut or not to cut, khtml should do this in
&gt; consistent way. However I prefer not to cut, as in other browsers.

Agreed: as a website designer, I&apos;d like all browsers to behave in a consistent manner - which is kinda the point in standards-compliance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>734970</commentid>
    <comment_count>11</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-03-26 02:07:31 +0000</bug_when>
    <thetext>SVN commit 944739 by ggarand:

fix regression in sizing of the background image for the root element.

this regressed in r855521, as I didn&apos;t quite understood all the subtleties
of the background size for the root case.

BUG: 187285


 M  +30 -10    render_box.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=944739</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>734977</commentid>
    <comment_count>12</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-03-26 02:25:26 +0000</bug_when>
    <thetext>SVN commit 944745 by ggarand:

automatically merged revision 944739:
fix regression in sizing of the background image for the root element.

this regressed in r855521, as I didn&apos;t quite understood all the subtleties
of the background size for the root case.

BUG: 187285

 M  +30 -10    render_box.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=944745</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>735030</commentid>
    <comment_count>13</comment_count>
    <who name="Konrad Rzepecki">hannibal</who>
    <bug_when>2009-03-26 06:59:37 +0000</bug_when>
    <thetext>Thanks for quick fix!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>32161</attachid>
            <date>2009-03-16 09:25:29 +0000</date>
            <delta_ts>2009-03-16 09:25:29 +0000</delta_ts>
            <desc>Testcase</desc>
            <filename>minimal.html</filename>
            <type>text/html</type>
            <size>184</size>
            <attacher name="Konrad Rzepecki">hannibal</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgoJPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCWJvZHkgewoJCWJhY2tncm91
bmQtaW1hZ2U6IHVybCgnaHR0cDovL2RlbnRvbmV0LnBsL2ltZy9tYWluYmcucG5nJyk7CgkJYmFj
a2dyb3VuZC1yZXBlYXQ6IHJlcGVhdC14OwoJfQoJPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KPC9i
b2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>32209</attachid>
            <date>2009-03-17 19:47:34 +0000</date>
            <delta_ts>2009-03-17 19:47:34 +0000</delta_ts>
            <desc>Shows the content spanning as opposed to the full-body spanning</desc>
            <filename>Test.html</filename>
            <type>text/html</type>
            <size>230</size>
            <attacher name="Marcus Harrison">marcus</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogICAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KYm9keSB7CiAgICBiYWNr
Z3JvdW5kLWltYWdlOiB1cmwoJ2h0dHA6Ly9kZW50b25ldC5wbC9pbWcvbWFpbmJnLnBuZycpOwog
ICAgYmFja2dyb3VuZC1yZXBlYXQ6IHJlcGVhdC14Owp9CiAgICA8L3N0eWxlPgo8L2hlYWQ+Cjxi
b2R5Pgo8aDE+U29tZSBoZWFkaW5nPC9oMT4KPHA+U29tZSB0ZXh0PC9wPgo8L2JvZHk+CjwvaHRt
bD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>