Bug 137343 - Scaling some gifs seems to cause garbage to appear on webpages.
Summary: Scaling some gifs seems to cause garbage to appear on webpages.
Status: RESOLVED REMIND
Alias: None
Product: konqueror
Classification: Applications
Component: khtml renderer (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-14 17:05 UTC by Nach
Modified: 2008-06-05 08:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nach 2006-11-14 17:05:45 UTC
Version:           3.5.5 (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I was looking at this page here: http://cc.jct.ac.il/~elyahyu/projects/wall/daily_learning.php
It appears fine under Firefox, but screws up completely under Konqueror with garbage all over the screen.

If I take the image that appears on the upper left out of the webpage, it then no longer has garbage on the page. If I view the image by itself, that also comes up fine. So it seems there is some case with putting a gif into a page that Konqueror really screws up on
Comment 1 Martin Zbořil 2006-11-14 17:10:58 UTC
as you said, konqueror shows that as crap
its okay in opera
Comment 2 Allan Sandfeld 2006-11-14 18:15:43 UTC
Looks like the problem is with this image: 
<div id='date'>
  <img src='../JCT-logo.gif' alt='The JCT logo' height='9%' width='5%' id='logo'/>
   <h1>äéåí ë"â çùåï ä'úùñ"æ</h1>
   <span id='BSD'>áñ"ã</span>
</div>

With this style:
#date
{
   position: absolute;
   direction: rtl;
   top: 0;
   left: 0;
   width: 100%;
   background-color: #000088;
   color: #ffffff;
}
#logo
{
  position: absolute;
  left: 0.5%;
  top: 5%;
  height: 90%;
  width: 4%;
  z-index: 5;
}
Comment 3 Allan Sandfeld 2006-11-14 18:22:38 UTC
Okay. The CSS declared height wins over the attribute declared height, which it shouldn't. 

This way the image gets scaled to 90% of height instead of 9%
Comment 4 Maksim Orlovich 2006-11-14 18:45:21 UTC
That's weird, since e.g. in this:
<style>
#foo { color: red; }
</style>
<font id="foo" color="green">Foo</font>

the outside CSS is preferred by gecko as well...
Comment 5 Maksim Orlovich 2006-11-14 19:05:19 UTC
And this consistently shows small:
<style>
#foo { width: 10px; }
</style>
<img id="foo" width="200" src="http://kde.org/media/images/top-kde.jpg">


Comment 6 FiNeX 2008-04-20 23:18:30 UTC
On konqueror 4 the page is rendered like firefox.

The #5 testcase show the image 200px wide. Is this the right behaviour?
Comment 7 Jaime Torres 2008-06-05 08:57:58 UTC
Waiting for an answer.