Page MenuHomePhabricator

Scaled imagemap coordinates not rounded to integers, breaking Opera
Closed, ResolvedPublic

Description

Author: mr.heat

Description:
For example, this:

<imagemap>
Bild:Karte Deutschland.png|140px|right|Deutschland
circle 149 122 31 [[Sachsen]]
</imagemap>

outputs this:

<area href="/wiki/Sachsen" shape="circle" coords="110.957446809,90.8510638298,23.085106383"
alt="Sachsen" title="Sachsen" />

This does not work in the Opera browser. According to the HTML specification only "pixel values" are
allowed. "Fractions" of pixels are useless anyway. Please add round() to the code.


Version: unspecified
Severity: normal
URL: http://www.w3.org/TR/html4/struct/objects.html#adef-coords

Details

Reference
bz8635

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:29 PM
bzimport added a project: ImageMap.
bzimport set Reference to bz8635.
bzimport added a subscriber: Unknown Object (MLST).
Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:21 AM