Bug 235517

Summary: [CSS 2.1 Conformance] A block box within an inline box must also be affected by relative positioning
Product: [Applications] konqueror Reporter: Gérard Talbot (no longer involved) <browserbugs2>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: CONFIRMED ---    
Severity: normal Keywords: reproducible, testcase
Priority: NOR    
Version: 4.7.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Gérard Talbot (no longer involved) 2010-04-27 04:17:19 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

Testcase
--------

http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/inline-box-002.htm

Actual results in Konqueror 4.4.2
---------------------------------
The orange box is within the yellow box, toward the top of the yellow box.

Expected results
----------------
The orange box should be between the two blue boxes.

Notes
-----
Firefox 3.5.9, Firefox 3.6.3, IE8 pass this testcase.

regards, Gérard
Comment 1 Gérard Talbot (no longer involved) 2010-04-28 03:55:42 UTC
Reference
---------

"
When an inline box contains a block box, the inline box (and its inline ancestors within the same line box) are broken around the block. The line boxes before the break and after the break are enclosed in anonymous boxes, and the block box becomes a sibling of those anonymous boxes. When such an inline box is affected by relative positioning, the relative positioning also affects the block box.
"
CSS 2.1, section 9.2.1.1 Anonymous block boxes
http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level

regards, Gérard
Comment 2 Gérard Talbot (no longer involved) 2012-01-13 05:56:46 UTC
Testcase
--------

http://test.csswg.org/suites/css2.1/latest/html4/inline-box-002.htm