Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#7148 closed defect (fixed)

Safari margin handling on Button tags confuses setMarginBox

Reported by: sjmiles Owned by: sjmiles
Priority: high Milestone: 1.2
Component: HTML Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

On Safari (3.1.2) button nodes with no explicit size have a default margin.

Setting explicit sizes (width/height) causes Safari to (silently) eliminate the default margin.

setMarginBox queries the margin size in order to adjust the dimensions correctly and (if no size was previously set) operates on bogus values.

It seems possible to detect this condition and swizzle the sizes before querying margins.

Change History (3)

comment:1 Changed 11 years ago by sjmiles

Milestone: tbd1.2

comment:2 Changed 11 years ago by sjmiles

Resolution: fixed
Status: newclosed

(In [14386]) On Safari, fix "button" edge case in "setMarginBox". Fixes #7148. See also #5518. !strict

comment:3 Changed 11 years ago by sjmiles

(In [14387]) Fix variable name typo, refs #7148. !strict

Note: See TracTickets for help on using tickets.