[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: image scaling problem in khtml
From: Koos Vriezen <koos.vriezen () xs4all ! nl>
Date: 2002-03-30 23:07:25
[Download RAW message or body]
On Sat, 30 Mar 2002, Jelmer Feenstra wrote:
> On Saturday 30 March 2002 23:10, Koos Vriezen wrote:
> > IIRC, the width/height attributes of table cells are suggestions for the
> > HTTP client. If you modify the HTML to
> >
> > <TABLE>
> > <TD WIDTH=512 HEIGHT=512 VALIGN=TOP >
> > <IMG SRC="test.png" HEIGHT="512" WIDTH="512"></IMG>
> > </TABLE>
> >
> > it scales right.
>
> In that case it does, yes. However, the common behaviour by all other browsers
> is to scale the image to the available space. Khtml does this for horizontal
> space, but not for vertical space. So no matter what, it is a bug and I
> actually think it makes http://www.chilledbeats.org render incorrect (the
> left image should be stretched over the height of the cell). Probably quite
> some other sites render incorrectly because of this behaviour as well.
Yes, I agree. But I don't think it's a scaling bug, IMO it's a table
rendering bug. E.g.
<TABLE id="mytable" style="background-color:black;">
<TR><TD WIDTH=512 HEIGHT=512 VALIGN=TOP >
<IMG SRC="test.png" HEIGHT="100%" WIDTH="100%"></IMG>
</TABLE>
does make the table 512 by 512, but not the cell.
~$ dcop konqueror-2748 html-widget3 evalJS '
> document.mytable.firstChild.firstChild.firstChild.clientHeight'
return 66.
~$ dcop konqueror-2799 html-widget1 evalJS '
> document.mytable.firstChild.firstChild.firstChild.firstChild.clientHeight'
return 64
~$ dcop konqueror-2799 html-widget1 evalJS '
> document.mytable.firstChild.firstChild.firstChild.firstChild.height=512'
scales the image right.
BTW, I think I found why sometimes scrolling pages with images can be
slow. The images are scaled.
Regards,
Koos Vriezen
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic