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)
Tracking
()
NEW
People
(Reporter: peder.stray, Unassigned)
References
()
Details
(Keywords: helpwanted, html4, Whiteboard: [HTML4-13.6.1])
Attachments
(1 file)
1.82 KB,
text/html
|
Details |
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
![]() |
||
Comment 1•24 years ago
|
||
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
Reporter | ||
Comment 2•24 years ago
|
||
added url to testcase
not a table specific bug, over to core owner
Assignee: karnaze → attinasi
Updated•24 years ago
|
Target Milestone: --- → mozilla1.2
Reporter | ||
Comment 4•23 years ago
|
||
Still isn't fixed in Mozilla 1.2
Reporter | ||
Comment 5•22 years ago
|
||
Still not fixed in 1.3...
![]() |
||
Updated•22 years ago
|
Keywords: helpwanted
Reporter | ||
Comment 6•22 years ago
|
||
Still not fixed in 1.4 either... and I really would like a browser that managed
to do this...
![]() |
||
Comment 7•22 years ago
|
||
Yes, we're aware that it's still not fixed; that's why this bug is still open.
No need to keep reminding... ;)
Comment 8•22 years ago
|
||
->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 → ---
![]() |
||
Comment 9•22 years ago
|
||
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....
Reporter | ||
Comment 10•21 years ago
|
||
over 3 years and counting. it this really that hard to fix? Updated the testcase
url.
![]() |
||
Comment 11•21 years ago
|
||
> 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.
Comment 12•21 years ago
|
||
> 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
Comment 14•18 years ago
|
||
Bug 394124 also related on other tags where percentages are not properly interpreted. So it partly duplicated 98102 but was more extended.
Comment 15•17 years ago
|
||
Comment 16•10 years ago
|
||
A solution ?
Comment 17•10 years ago
|
||
http://jsfiddle.net/V3XyK/202/ <== Found my solution here
Comment 18•10 years ago
|
||
http://jsfiddle.net/V3XyK/203/ <== More expressive
Comment 19•10 years ago
|
||
@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.
Updated•9 years ago
|
blocking-b2g: --- → 2.2r?
Updated•9 years ago
|
blocking-b2g: 2.2r? → ---
Updated•9 years ago
|
blocking-b2g: --- → 2.2r?
Updated•9 years ago
|
blocking-b2g: 2.2r? → ---
tracking-b2g:
backlog → ---
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Product: Core Graveyard → Core
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•