Bug 33903 - khtml renders <object>s too small. Should use intrinsic size. Testcase included.
Summary: khtml renders <object>s too small. Should use intrinsic size. Testcase included.
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml forms (show other bugs)
Version: 4.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 35232 46537 61286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-19 11:48 UTC by Marc Mutz
Modified: 2005-10-03 21:12 UTC (History)
5 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 Marc Mutz 2001-10-19 11:46:00 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           khtml
Version:           4.0 (using KDE 2.9.0 1 (CVS >= 20011012))
Severity:          normal
Installed from:    compiled sources
Compiler:          gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.44mdk)
OS:                Linux (i686) release 2.4.2-15mdk
OS/Compiler notes: 

khtml doesn't render <object> correctly. <object> is a "replaceable" and should be rendered at the intrinsic size of the object it contains just like <img> is. But compare the rendering of the following html file:

---BEGIN---
<html><body><p>
<img src="http://bugs.kde.org/wizard/images/konqi.gif" />
</p><p>
<object data="http://bugs.kde.org/wizard/images/konqi.gif" type="image/gif"></object>
</p></body></html>
---END---

Both elements should be rendered roughly equally. But the second is actually rendered icon-sized.

Equally using <object width=100% type="text/html"> should render the referenced html file at the width of the object element and make the object element as long as it needs to be to show the full content.


(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 oever 2002-07-16 11:28:53 UTC
Version:           4.0 (using KDE 3.0.1 )
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:                Linux (i686) release 2.4.18-4GB
OS/Compiler notes: 

This has not been fixed although it exists quite a while. That's a shame because the <object> tag has a lot of potential.

You can for example include ogg files in webpages as here:
http://www.fenk.wau.nl/~oever/veenendaal/test.html

Unfortunately although the file on mentioned page begins playing the object is too small so not all buttons are visible.

Of course this is also a bit of a bug of the control but it does demonstrate that object sizing needs more attention.

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 2 Pablo Pita Leira 2003-11-07 00:05:21 UTC
I am using KDE 3.1.92 (from CVS packages) and this bug is still there. 
Comment 3 John Firebaugh 2003-12-28 23:27:54 UTC
*** Bug 61286 has been marked as a duplicate of this bug. ***
Comment 4 John Firebaugh 2003-12-28 23:28:14 UTC
*** Bug 46537 has been marked as a duplicate of this bug. ***
Comment 5 John Firebaugh 2003-12-28 23:29:05 UTC
<head>
</head>
<body>
<object type="image/png"
        data="http://www.w3.org/Icons/valid-xhtml10">
        Valid XHTML 1.0 Strict.</object>
<object type="image/gif"
         data="http://jigsaw.w3.org/css-validator/images/vcss.gif">
        Valid CSS.</object>
</body></html>
Comment 6 Michel Nolard 2004-07-14 13:05:29 UTC
I use Konqueror 3.2.2 and this bug is still there !
Comment 7 Stephan Kulow 2004-10-28 22:25:41 UTC
*** Bug 35232 has been marked as a duplicate of this bug. ***
Comment 8 Maksim Orlovich 2005-07-10 03:38:15 UTC
Seems to work now, at least for the images?
Comment 9 Pieter Botha 2005-09-25 23:31:00 UTC
images look 100% good in 3.4.2 SUSE latest kde updates (22-09-2005). Mark as 
resolved?
Comment 10 Marc Mutz 2005-09-26 08:24:14 UTC
Images are only part of the problem:

> Equally using <object width=100% type="text/html"> should render the
> referenced html file at the width of the object element and make the object
> element as long as it needs to be to show the full content.

Does this work, too?

 
 
Comment 11 Germain Garand 2005-10-03 21:12:22 UTC
works fine