Bug 174962 - [testcase] Dynamically moving a DHTML layer with unitless offset value should fail
Summary: [testcase] Dynamically moving a DHTML layer with unitless offset value should...
Status: VERIFIED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.1.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL: http://www.gtalbot.org/BrowserBugsSec...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 17:51 UTC by Gérard Talbot (no longer involved)
Modified: 2008-12-06 20:59 UTC (History)
1 user (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 Gérard Talbot (no longer involved) 2008-11-12 17:51:44 UTC
Self-explanatory testcase:

http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/moving-unitless-layer-feasible.html

Expected results
----------------
The green box should be located (should remain) at coordinates 100, 100 in the document box and, upon loading, an alert box should popup and should say exactly this:
{
Your browser PASSED this test.
document.getElementById("green-box").style.left = 100px
document.getElementById("green-box").style.top = 100px
}

Actual results in Konqueror 4.1.1
---------------------------------
The green box gets relocated at coordinates 300, 300 in the document box and, upon loading, an alert box popups and says exactly this:
{
Your browser FAILED this test.
The green box should be at coordinates 100, 100 and NOT at coordinates 300, 300
}

Additionally, a judicious error message should be reported in the javascript console about the missing of the unit for the left and top offset values.

Bug entry:
http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/#bug191

Notes
-----
* Firefox 3.0.3 build 2008092417, Safari 3.1.2 build 525.21, Safari 4.0, K-meleon 1.x, NS 7.2, Seamonkey 2.x all pass this test. 
* What is important is that Konqueror must not honor unitless offset value when in standards compliant rendering mode (when document.compatMode == CSS1Compat)
Generally speaking, all modern browsers (even IE 6) do not honor unitless position offset value when specified declaratively. So I am submitting that unitless position offset value should not be honored when specified dynamically via script: it should be ignored.
* I have filed correspondent bug reports at Opera (bug DSK-239393) and Microsoft (bug 381347).

Regards, Gérard
Comment 1 Germain Garand 2008-11-12 18:39:56 UTC
thank you for the testcase, this was a regression in parsing mode of inline CSS - I already fixed it in r864149 which was backported to 4.1 branch as of r864157 (included in KDE 4.1.2).
Comment 2 Gérard Talbot (no longer involved) 2008-12-06 20:59:50 UTC
> was backported to 4.1 branch as of r864157 (included in KDE 4.1.2).

Marking as VERIFIED