Opened 9 years ago
Closed 5 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 )
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> </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> </div>
Tested with Safari 5.1 (Win32) but may occur in other Versions.
Attachments (1)
Change History (3)
Changed 9 years ago by
Attachment: | marginbox.html added |
---|
comment:1 Changed 9 years ago by
Component: | General → HTML |
---|---|
Description: | modified (diff) |
Owner: | set to Eugene Lazutkin |
Summary: | dojo.marginBox wron calculation in safari 5 → dojo.marginBox wrong result when margin negative percentage in safari 5 |
comment:2 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Given that no one has shown interest in creating a patch in the past 4+ years, I'm closing this as patchwelcome.