Bug 168625

Summary: [testcase] iframe height=100% misinterpreted when directly embedded in a div
Product: [Applications] konqueror Reporter: Heinz Wiesinger <pprkut>
Component: khtmlAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: andresbajotierra
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Heinz Wiesinger 2008-08-07 16:51:13 UTC
Version:            (using KDE 4.1.0)
Installed from:    Compiled From Sources
Compiler:          gcc-4.2.3 
OS:                Linux

Konqueror in both version 3.5.9 and 4.1.0 does misinterpret the following code:

<html> 
 <head> 
 <title>testcase</title> 
 </head>
 <body style="height: 100%; width: 100%; background-color: red "> 
 <div style="position:absolute; background-color:yellow; border: 10px solid black; right:5%; left:5%; bottom:5%; top:5%;">
	<iframe height="100%" width="100%"></iframe>
 </div>
 </body> 
 </html>

The iframe should be in the div surrounded by a 10px black border, but instead it overlaps at the bottom.

Interesting sidenote: if the iframe is put into a table, everything works fine.
Comment 1 Dario Andres 2008-08-09 20:04:28 UTC
Using KDE 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)) (KDEmod) in ArchLinux i686:
I can reproduce this behaviour. Both Firefox3 and Opera display the testcase correctly.
Comment 2 Dario Andres 2008-12-26 14:14:02 UTC
I can still reproduce this bug using:

Qt: 4.4.3
KDE: 4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221))
kdelibs svn rev. 901624 / kdebase svn rev. 901624
on ArchLinux x86_64 - Kernel 2.6.27.10

Confirming.
Comment 3 Justin Zobel 2021-03-21 00:26:00 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 4 Christoph Cullmann 2024-05-06 18:38:31 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann