Opened 10 years ago

Closed 6 years ago

#13745 closed defect (patchwelcome)

dojo.marginBox wrong result when margin negative percentage in safari 5

Reported by: minobun Owned by: Eugene Lazutkin
Priority: high Milestone: 1.13
Component: HTML Version: 1.6.1
Keywords: safari, marginbox Cc:
Blocked By: Blocking:

Description (last modified by bill)

The dojo.marginBox function returns a wrong values if the margin is negative AND a defined by percentage. So a marginBox call on the #marginTestFail in this code results in a negative left value:

<div style="width: 300px;">
    <div id="marginTestFail" style="margin-left:-100%;"></div>

If you call the marginBox on #marginTestPass this code returns the expected value.

<div style="width: 300px;">
    <div id="marginTestPass" style="margin-left:-300px;"></div>

Tested with Safari 5.1 (Win32) but may occur in other Versions.

Attachments (1)

marginbox.html (1.1 KB) - added by minobun 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by minobun

Attachment: marginbox.html added

comment:1 Changed 10 years ago by bill

Component: GeneralHTML
Description: modified (diff)
Owner: set to Eugene Lazutkin
Summary: dojo.marginBox wron calculation in safari 5dojo.marginBox wrong result when margin negative percentage in safari 5

comment:2 Changed 6 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 4+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.