Open Bug 98102 Opened 24 years ago Updated 3 years ago

Percentage coordinates not supported for imagemaps

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
All
defect

Tracking

()

People

(Reporter: peder.stray, Unassigned)

References

()

Details

(Keywords: helpwanted, html4, Whiteboard: [HTML4-13.6.1])

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010808 BuildID: 2001080814 COORDS="0%,0%,50%,100%" is trated like the % were not there instead of calculating the real lengths from the image. a imagemap like the one below should cover the whole image but only coers th upper left block of 100x100 pixels. <MAP NAME="nav"> <AREA COORDS="0%,0%,50%,100%" ...> <AREA COORDS="50%,0%,100%,100%" ...> </MAP> this is fully walid HTML from th 4.01 spec Reproducible: Always Steps to Reproduce: use the imagemap included in the description Actual Results: all percentual lengths are treated like pixellengths Expected Results: the percentual lengths should get calculated from the size of the image using the imagemap
Over to layout. Reporter, could you attach a testcase?
Assignee: clayton → karnaze
URL: h
Status: UNCONFIRMED → NEW
Component: HTML Element → Layout
Ever confirmed: true
QA Contact: bsharma → petersen
added url to testcase
not a table specific bug, over to core owner
Assignee: karnaze → attinasi
Target Milestone: --- → mozilla1.2
Keywords: html4
Whiteboard: [HTML4-13.6.1]
Still isn't fixed in Mozilla 1.2
Still not fixed in 1.3...
Keywords: helpwanted
Still not fixed in 1.4 either... and I really would like a browser that managed to do this...
Yes, we're aware that it's still not fixed; that's why this bug is still open. No need to keep reminding... ;)
->Image: Layout
Assignee: attinasi → jdunn
Component: Layout → Image: Layout
OS: Linux → All
QA Contact: petersen → tpreston
Summary: imagemap ignore percentages in coordinates → Percentage coordinates not supported for imagemaps
Target Milestone: mozilla1.2alpha → ---
Whoever decides to work on this needs to keep in mind that a rect spec like: "10,200,10%,10%" Is either valid or not depending on the size of the image. Which means you need to either stop fixing up broken rect specs, start doing it on every single click/mousemove, or something....
over 3 years and counting. it this really that hard to fix? Updated the testcase url.
> it this really that hard to fix? Yes. See comment 9, for example. Also, imagemaps are currently shared by multiple images that reference them. Implementing this bug would mean getting rid of imagemap sharing, which would be a fairly major structural change to that code. Add to this the fact that this is nearly unused, and there's just not that much desire to implement it.
> Add to this the fact that this is nearly unused, and there's just not that much > desire to implement it. Well, of course it isn't used... it can't be used because it's never been implemented. Just because there aren't currently any pages using it (no doubt because it isn't supported) doesn't mean there's no demand for it. This lack of support for standards (HTML 4.01, XHTML) really holds people back from being able to write versatile web pages that can be accessed from various screen resolutions or even devices (PDAs and high resolution cell phones come to mind.) I appreciate the work being done here as much as anyone else, but "it isn't used" isn't a good reason because any number of features weren't in use before they were made available.
Assignee: jdunn → nobody
QA Contact: tpreston → layout.images
Bug 394124 also related on other tags where percentages are not properly interpreted. So it partly duplicated 98102 but was more extended.
A solution ?
http://jsfiddle.net/V3XyK/202/ <== Found my solution here
@jrgazay: Using percentage coordinates, both the image map and the image itself are shown as percentage width (and height) of parent and everything scales accordingly when the parent scales. The two 'solutions' you give do not address this desired behaviour. A workaround that serves me well is to drop image maps all together and use .svg instead. SVG has matured sufficiently since 2001 when the percentage bug was first reported.
blocking-b2g: --- → 2.2r?
blocking-b2g: 2.2r? → ---
blocking-b2g: --- → 2.2r?
blocking-b2g: 2.2r? → ---
Product: Core → Core Graveyard
Product: Core Graveyard → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: