Bug 170091

Summary: [testcase] offsetParent of a position:fixed node should be null (CSSOM View Module compliance)
Product: [Applications] konqueror Reporter: Gérard Talbot (no longer involved) <browserbugs2>
Component: khtml parsingAssignee: Konqueror Developers <konq-bugs>
Status: VERIFIED FIXED    
Severity: normal CC: germain, maksim
Priority: NOR    
Version: 4.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
URL: http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/CSSOM-offsetParent-prop.html#ThirdTest
Latest Commit: Version Fixed In:

Description Gérard Talbot (no longer involved) 2008-08-30 18:41:21 UTC
offsetParent of nodeA when nodeA is a position: fixed element should be null.

If the computed value of the position property for nodeA is fixed, then nodeA.offsetParent returns null.

Testcase:
http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/CSSOM-offsetParent-prop.html#ThirdTest

Actual result in Konqueror 4.1 Windows:
document.getElementById("PositionFixedElem").offsetParent = [object HTMLHtmlElement]

Reference:
http://www.w3.org/TR/cssom-view/#offset-attributes

Regards, Gérard
Comment 1 Germain Garand 2008-08-30 20:06:08 UTC
wow. I had no idea there was a draft spec for those. Good news.
Comment 2 Maksim Orlovich 2008-08-30 20:08:23 UTC
Germain: if you're looking at this, could you please look at bug #170055 as well?
Comment 3 Germain Garand 2008-08-30 20:43:03 UTC
yes I was precisely investigating your logging testcase when I saw this reference to a specification. Should make things much easier, assuming this draft is accurate.
Comment 4 Germain Garand 2008-09-25 01:55:11 UTC
SVN commit 864534 by ggarand:

fix offsetTop/Left/Parent properties to be more in conformance with draft
CSSOM View module specification.

http://www.w3.org/TR/cssom-view/#offset-attributes

brings better compatibility as  a bonus.

BUG: 170091, 170055
Comment 5 Gérard Talbot (no longer involved) 2008-12-06 20:46:41 UTC
Konqueror 4.1.2 passes this test.

Marking as VERIFIED