Commit c9899a74 authored by Brandon Aaron's avatar Brandon Aaron

offset: do not add borders for table cells

parent d5999be9
...@@ -43,7 +43,7 @@ jQuery.fn.offset = function() { ...@@ -43,7 +43,7 @@ jQuery.fn.offset = function() {
// Mozilla and Safari > 2 does not include the border on offset parents // Mozilla and Safari > 2 does not include the border on offset parents
// However Mozilla adds the border for table cells // However Mozilla adds the border for table cells
if ( mozilla && /^t[d|h]$/i.test(parent.tagName) || !safari2 ) if ( mozilla && !/^t[d|h]$/i.test(offsetParent.tagName) || safari && parseInt(version) >= 522 )
border( offsetParent ); border( offsetParent );
// Safari <= 2 doubles body offsets with an absolutely positioned element or parent // Safari <= 2 doubles body offsets with an absolutely positioned element or parent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment