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't. <html> <head> <style type="text/css"> body { background-image: url('http://dentonet.pl/img/mainbg.png'); background-repeat: repeat-x; } </style> </head> <body> </body> </html> Removing background-repeat property causes to show background. The sigle line version "background:url('http://dentonet.pl/img/mainbg.png') repeat-x;" is also affected.
Created attachment 32161 [details] Testcase
I can confirm here using: Qt: 4.5.0 + qt-copy-patches-936035 KDE: 4.2.66 (KDE 4.2.66 (KDE 4.3 >= 20090310)) kdelibs svn rev. 939600 / kdebase svn rev. 939602 on ArchLinux i686 - Kernel 2.6.28.7
Strangely, when the background-repeat option is used, the background only spans to the height of the content. However, when it isn't used, it spans the whole page. The question is whether this is standards compliant or not.
Created attachment 32209 [details] Shows the content spanning as opposed to the full-body spanning
hmm looks like I goofed in r855521. Will have to look at that, thank you for the testcase.
Marcus this is not true. Look at http://dentonet.pl/ there is a loot of content beneath the background is not show.
(In reply to comment #6) > Marcus this is not true. Look at http://dentonet.pl/ there is a loot of content > beneath the background is not show. It'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't positioned absolutely, meaning the body's background does span to its contents.
> It's difficult to test that reliably: looking at the source of the website, a > 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 "relative" div witch contain floated div witch again contain relatives. So "absolute" doesn't match here... Even if it apply, the background-color shouldn't be draw either. And backgrounds whithout "repeat" 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.
Bug 172409 may be related.
(In reply to comment #8) > > It's difficult to test that reliably: looking at the source of the website, a > > 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 "relative" div witch contain floated div > witch again contain relatives. So "absolute" doesn't match here... > > > Even if it apply, the background-color shouldn't be draw either. And > backgrounds whithout "repeat" 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. Agreed: as a website designer, I'd like all browsers to behave in a consistent manner - which is kinda the point in standards-compliance.
SVN commit 944739 by ggarand: fix regression in sizing of the background image for the root element. this regressed in r855521, as I didn'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&revision=944739
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'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&revision=944745
Thanks for quick fix!