#3296 closed defect (fixed)
html.js: adjust _setMarginBox for TABLE and BUTTON which are border-box
Reported by: | sjmiles | Owned by: | sjmiles |
---|---|---|---|
Priority: | high | Milestone: | 0.9beta |
Component: | General | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Change History (4)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 14 years ago by
(In [9065]) Safari: add a null test and return a golem object from getComputedStyle if necessary. Refs #2686.
Adjust _setContentBox for TABLE and BUTTON, refs #3296.
Move left/top margin box adjustments out of _set and into _get. Refs #3297 and #3320.
Let _getContentBox fall back to offsetWidth/Height if clientWidth/Height are 0. Refs #3378.
Note: See
TracTickets for help on using
tickets.
Generally, non-DIV elements can have special margin, padding, or box handling in browsers which we cannot always detect via computedStyle.
In particular, TABLE and BUTTON elements use border-box even in strict (content-box) mode.
_setMarginBox is the only box function that depends on box model, add some simple checks to handle TABLE and BUTTON as border-box.
On FF 2.0, margins on TABLE appear to be completely undetectable (not available in style or computedStyle at all). To use a TABLE with box functions, it should be set to margin: 0.