Bug 223227

Summary: [CSS 2.1 Conformance] Height of a left-floated block is not rendered
Product: [Applications] konqueror Reporter: Gérard Talbot (no longer involved) <browserbugs2>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal Keywords: testcase
Priority: NOR    
Version: 4.7.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gérard Talbot (no longer involved) 2010-01-18 00:53:57 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Ubuntu Packages

Testcase
========
http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/float-left-height-not-rendered-1.html

Expected results
================
There should be a 300px tall green square and there should be no red.

Actual results in Konqueror 4.3.4
=================================
There is a 100px tall red rectangle.

Description
===========
The height of the left-floated block is not rendered.

The width of the #floated-left is 0px. 

Nevertheless, I believe that its height should be rendered.

Note
----
Firefox 3.5.7, Opera 10.10 and Safari 4.0.4 pass this test.

regards, Gérard
Comment 1 Gérard Talbot (no longer involved) 2010-04-07 02:14:49 UTC
3 testcases precisely regarding this bug have been submitted to (current alpha 2: March 16th 2010) CSS 2.1 test suite:

Margin-top of following siblings of a block on which 'clear' has been set (to a different value than 'none') must not be substracted when calculating clearance. When an element's own margins collapse, and that element has had clearance applied to it, its top margin collapses with the adjoining margins of following siblings.

http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/margin-collapsing-033.htm

http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/margin-collapsing-034.htm

http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/margin-collapsing-035.htm

regards, Gérard
Comment 3 Christoph Cullmann 2024-05-06 18:39:06 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