Closed Bug 321675 Opened 20 years ago Closed 19 years ago

Image.X and Image.Y are incorrect if img-tag uses additional "style"-attribute when submitting form

Categories

(Firefox :: General, defect)

2.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: thilo, Unassigned)

Details

(Keywords: testcase, Whiteboard: CLOSEME 07/14)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Image.X and Image.Y (coordinates the user clicked on) have to be decreased by top and left used by the style-attribute Reproducible: Always Steps to Reproduce: Use a image as input type with e.g. style="position:absolute; top:250px; left:250px;" e.g.: [snip] <form name="form1" method="post" action="somescript.dll"> <input name="image" type="image" style="position:absolute; top:250px; left:250px;" src="someimage.jpg"> </form> [/snip] Actual Results: Values in image.x and image.y are increased by top and left, so clicking in the upper left corner gives the values 250/250 (in my example). The image is placed right, so I assume the "style" is not discarded... Expected Results: Clicking in the upper left corner should return 0/0 for image.x and image.y works with IE :-)
Attached file Testcase —
This test case shows the problem. By clicking on the top-left corner URL with "?coord.x=1&coord.y=1" appended (or with similarly small numbers) should be requested, but the actual result produced is "?coord.x=101&coord.y=101".
I was able to reproduce this bug on FF2.
Reporter, is this still a problem in trunk builds? http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
Keywords: testcase
Whiteboard: CLOSEME 07/14
Version: unspecified → 2.0 Branch
it finally works in the trunk build.
--> WFM (Fixed on trunk for Fx 3)
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: