Bug 33379

Summary: Full Page Zoom: image maps not scaled with images
Product: WebKit Reporter: Nicholas Shanks <nickshanks>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Critical CC: christophe.public, mvujovic, simon.fraser
Priority: P2    
Version: 525.x (Safari 3.2)   
Hardware: Mac   
OS: OS X 10.6   
URL: http://s1.travian.com/
Attachments:
Description Flags
i already attached this when i filed the bug. why is it now missing?
none
image to go with test case
none
second image
none
reduced test case image
none
reduced test case: image map, no scaling
none
reduced test case: image map, css width and height scaling
none
reduced test case: image map, css zoom scaling none

Nicholas Shanks
Reported 2010-01-08 05:49:59 PST
When using the full page zoom (either scaling in Safari or using the zoom CSS keyword) the clickable regions of an image map do not scale to match the image.
Attachments
i already attached this when i filed the bug. why is it now missing? (3.85 KB, text/html)
2010-01-08 05:51 PST, Nicholas Shanks
no flags
image to go with test case (36.62 KB, image/jpeg)
2010-01-08 05:51 PST, Nicholas Shanks
no flags
second image (49 bytes, image/gif)
2010-02-03 14:14 PST, Nicholas Shanks
no flags
reduced test case image (3.09 KB, image/png)
2011-11-28 16:41 PST, Max Vujovic
no flags
reduced test case: image map, no scaling (372 bytes, text/html)
2011-11-28 16:43 PST, Max Vujovic
no flags
reduced test case: image map, css width and height scaling (467 bytes, text/html)
2011-11-28 16:44 PST, Max Vujovic
no flags
reduced test case: image map, css zoom scaling (445 bytes, text/html)
2011-11-28 16:45 PST, Max Vujovic
no flags
Nicholas Shanks
Comment 1 2010-01-08 05:51:28 PST
Created attachment 46133 [details] i already attached this when i filed the bug. why is it now missing?
Nicholas Shanks
Comment 2 2010-01-08 05:51:52 PST
Created attachment 46134 [details] image to go with test case
Nicholas Shanks
Comment 3 2010-02-03 14:14:29 PST
Created attachment 48068 [details] second image sorry, you need both of them
Simon Fraser (smfr)
Comment 4 2010-02-03 14:15:54 PST
Should be an easy fix.
Max Vujovic
Comment 5 2011-11-28 10:30:01 PST
I couldn't reproduce this in r101263. For me, the test case appears to work. The clickable regions of the image map scale up with the image using the zoom CSS keyword or using scaling in Safari.
Alexey Proskuryakov
Comment 6 2011-11-28 15:25:42 PST
Hmm, this sounds like original of bug 69421, which was still reproducible very recently.
Max Vujovic
Comment 7 2011-11-28 15:41:13 PST
(In reply to comment #6) > Hmm, this sounds like original of bug 69421, which was still reproducible very recently. That's interesting. I could also easily reproduce bug 69421 but not this bug in its test case. I'll take a look at what the difference is between the two test cases.
Max Vujovic
Comment 8 2011-11-28 16:41:09 PST
Created attachment 116850 [details] reduced test case image
Max Vujovic
Comment 9 2011-11-28 16:43:28 PST
Created attachment 116851 [details] reduced test case: image map, no scaling
Max Vujovic
Comment 10 2011-11-28 16:44:23 PST
Created attachment 116852 [details] reduced test case: image map, css width and height scaling
Max Vujovic
Comment 11 2011-11-28 16:45:14 PST
Created attachment 116853 [details] reduced test case: image map, css zoom scaling
Max Vujovic
Comment 12 2011-11-28 16:52:15 PST
I think this bug is about CSS zoom and bug 69421 is about CSS width and height. Both cause issues with image map scaling but in slightly different ways. I've added 3 test cases to demonstrate the issues. In some of the cases, you can see that the focus rectangles are off by holding down the mouse button on a clickable area. 1) CSS zoom case: https://bug-33379-attachments.webkit.org/attachment.cgi?id=116853 #image { zoom: 2.0; } Results: 1) Image scales (expected) 2) Clickable areas scale (expected) 3) Focus rectangles of clickable areas do NOT scale (bug) 2) CSS width and height case: https://bug-33379-attachments.webkit.org/attachment.cgi?id=116852 #image { /* The original image is 200x200. */ width: 400px; height: 400px; } Results: 1) Image scales (expected) 2) Clickable areas do NOT scale (bug) 3) Focus rectangles of clickable areas do NOT scale (bug) 3) Zooming in with Safari case (works as expected): https://bug-33379-attachments.webkit.org/attachment.cgi?id=116851 Pressing [CMD+] Results: 1) Image scales (expected) 2) Clickable areas scale (expected) 3) Focus rectangles of clickable areas scale (expected)
Max Vujovic
Comment 13 2011-12-01 17:36:45 PST
Based on the previous comment: Case 1) I've created a new bug to clarify the CSS zoom / focus ring issue mentioned in this bug: https://bugs.webkit.org/show_bug.cgi?id=73595 Case 2) The CSS width / height case is https://bugs.webkit.org/show_bug.cgi?id=69421 Case 3) Zooming in with Safari works as expected for me. Could not reproduce.
Note You need to log in before you can comment on or make changes to this bug.